<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Visual Basic Code Snippets</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Visual Basic Code Snippets : Last 10 Posts]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 02:56:02 +0000</pubDate>
  <lastBuildDate>Thu, 01 Oct 2020 07:22:04 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_topic_feed.asp?FID=160</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Visual Basic Code Snippets : Class Not RegistereD]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24078&amp;PID=77886&amp;title=class-not-registered#77886</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9446">geeyess</a><br /><strong>Subject:</strong> Class Not RegistereD<br /><strong>Posted:</strong> 01 October 2020 at 7:22am<br /><br />We are having some issue on the existing software which was developed on VB &amp; Sql Server Platform.<div>All of the sudden, it shows Class Not registered (Exception from HRESULT:0x80040154</div><div>(REGDB_E_CLASSNOTREG)).</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 01 Oct 2020 07:22:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24078&amp;PID=77886&amp;title=class-not-registered#77886</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : Need the flag of Solomon Islands in your applicati]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18337&amp;PID=72263&amp;title=need-the-flag-of-solomon-islands-in-your-applicati#72263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2278">markp.uk</a><br /><strong>Subject:</strong> Need the flag of Solomon Islands in your applicati<br /><strong>Posted:</strong> 15 February 2014 at 11:39am<br /><br />Any chance i could get a copy of the code for the DLL, i'm trying to accomplish the same end result but with quite a few more images, would be much appreciated.]]>
   </description>
   <pubDate>Sat, 15 Feb 2014 11:39:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18337&amp;PID=72263&amp;title=need-the-flag-of-solomon-islands-in-your-applicati#72263</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : MarkupLabel - capture image]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15125&amp;PID=71574&amp;title=markuplabel-capture-image#71574</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8209">arronlee</a><br /><strong>Subject:</strong> MarkupLabel - capture image<br /><strong>Posted:</strong> 04 September 2013 at 11:26pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by drimage" alt="Originally posted by drimage" style="vertical-align: text-bottom;" /> <strong>drimage wrote:</strong><br /><br /><span ="kwrd"=""></span>the following are some codes about how to <a href="http://www.rasteredge.com/how-to/vb-net-imaging/twain-scanning/" target="_blank" rel="nofollow">capture images in vb</a>.<br><pre ="csharpcode"=""><span ="kwrd"="">Public</span> <span ="kwrd"="">Function</span> TwainAcquireToRasterEdgeImageImage(<span ="kwrd"="">ByVal</span> HANDLE <span ="kwrd"="">As</span> <span ="kwrd"="">Integer</span>) <span ="kwrd"="">As</span> <span ="kwrd"="">Integer</span><br><span ="rem"="">' Acquire a single image, from the currently selected Data Source to a DIB handle</span><br><span ="kwrd"="">Public</span> <span ="kwrd"="">Function</span> TwainAcquireToDib(<span ="kwrd"="">ByVal</span> HANDLE <span ="kwrd"="">As</span> IntPtr) <span ="kwrd"="">As</span> IntPtr<br><span ="rem"="">' Acquire a single image, from the currently selected Data Source to a file</span><br><span ="kwrd"="">Public</span> <span ="kwrd"="">Function</span> TwainAcquireToFile(<span ="kwrd"="">ByVal</span> FilePath <span ="kwrd"="">As</span> <span ="kwrd"="">String</span>, <span ="kwrd"="">ByVal</span> HANDLE <span ="kwrd"="">As</span> <span ="kwrd"="">Integer</span>) <span ="kwrd"="">As</span> RasterEdgeImageStatus</pre><br></td></tr></table><br>Hi, thanks for your sharing.<br>Becayse I am not so familiar with VB.NET processing, I focus more on capturing images using <a href="http://www.rasteredge.com/how-to/csharp-imaging/twain-scanning/" target="_blank" rel="nofollow"><font color="#000000">Twain Scanning</font></a> in C#.NET. Can you offer some more tutorials about that?Thanks in advance.<br><br><br><br>Best regards,<br>Arron<br><h1><br></h1>]]>
   </description>
   <pubDate>Wed, 04 Sep 2013 23:26:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15125&amp;PID=71574&amp;title=markuplabel-capture-image#71574</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : MarkupLabel - capture image]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15125&amp;PID=71066&amp;title=markuplabel-capture-image#71066</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8093">drimage</a><br /><strong>Subject:</strong> MarkupLabel - capture image<br /><strong>Posted:</strong> 05 June 2013 at 10:57pm<br /><br /><span ="kwrd"></span>the following are some codes about how to <a href="http://www.rasteredge.com/how-to/vb-net-imaging/twain-scanning/" target="_blank" rel="nofollow">capture images in vb</a>.<br><pre ="csharpcode"><span ="kwrd">Public</span> <span ="kwrd">Function</span> TwainAcquireToRasterEdgeImageImage(<span ="kwrd">ByVal</span> HANDLE <span ="kwrd">As</span> <span ="kwrd">Integer</span>) <span ="kwrd">As</span> <span ="kwrd">Integer</span><br><span ="rem">' Acquire a single image, from the currently selected Data Source to a DIB handle</span><br><span ="kwrd">Public</span> <span ="kwrd">Function</span> TwainAcquireToDib(<span ="kwrd">ByVal</span> HANDLE <span ="kwrd">As</span> IntPtr) <span ="kwrd">As</span> IntPtr<br><span ="rem">' Acquire a single image, from the currently selected Data Source to a file</span><br><span ="kwrd">Public</span> <span ="kwrd">Function</span> TwainAcquireToFile(<span ="kwrd">ByVal</span> FilePath <span ="kwrd">As</span> <span ="kwrd">String</span>, <span ="kwrd">ByVal</span> HANDLE <span ="kwrd">As</span> <span ="kwrd">Integer</span>) <span ="kwrd">As</span> RasterEdgeImageStatus</pre><br>]]>
   </description>
   <pubDate>Wed, 05 Jun 2013 22:57:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15125&amp;PID=71066&amp;title=markuplabel-capture-image#71066</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : Chart Axis X Value]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20094&amp;PID=68846&amp;title=chart-axis-x-value#68846</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7624">wellford</a><br /><strong>Subject:</strong> Chart Axis X Value<br /><strong>Posted:</strong> 30 August 2012 at 3:53am<br /><br /><div>Hi guys.</div><div>I am having a problem in displaying my Chart X Axis Value using Vb6. I have millions of amounts to display in chart however when display in codejock chart it displays 5e+600 for 1 million. &nbsp;How can i Display it as 1000000 and not in scientific value.</div><div><br></div><div>Please Help...</div>]]>
   </description>
   <pubDate>Thu, 30 Aug 2012 03:53:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20094&amp;PID=68846&amp;title=chart-axis-x-value#68846</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : MDI Tabs -- improve functionality]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13185&amp;PID=66936&amp;title=mdi-tabs-improve-functionality#66936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6196">faakher</a><br /><strong>Subject:</strong> MDI Tabs -- improve functionality<br /><strong>Posted:</strong> 28 November 2011 at 10:34am<br /><br />nice tip&nbsp;<img src="http://forum.codejock.com/smileys/smiley36.gif" border="0" alt="LOL" title="LOL" />]]>
   </description>
   <pubDate>Mon, 28 Nov 2011 10:34:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13185&amp;PID=66936&amp;title=mdi-tabs-improve-functionality#66936</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : Need the flag of Solomon Islands in your applicati]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18337&amp;PID=64250&amp;title=need-the-flag-of-solomon-islands-in-your-applicati#64250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6704">ceesverburg</a><br /><strong>Subject:</strong> Need the flag of Solomon Islands in your applicati<br /><strong>Posted:</strong> 07 May 2011 at 8:06am<br /><br />I stumbled upon problems using LoadBitmapFromResource while writing a Skype VB6 application which uses 238 (!) flags in PNG format. As I didn't want them as separate PNG files nor I wanted to load them in an ImageManager control I created an activeX dll that did the job. Well, you can use the 238 flags very easily in any application now.&nbsp; The only downside is that you probably need to have Xtreme ControlBars ver. 15.0.1 installed (I used it creating the dll server, on the client side no compatibility problems as far as I can see). Have fun with the attachment!<br><br><a href="uploads/6704/flags.zip" target="_blank">uploads/6704/flags.zip</a>]]>
   </description>
   <pubDate>Sat, 07 May 2011 08:06:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18337&amp;PID=64250&amp;title=need-the-flag-of-solomon-islands-in-your-applicati#64250</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : How To Show Week Numbers in DateTimePicker]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17826&amp;PID=62397&amp;title=how-to-show-week-numbers-in-datetimepicker#62397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> How To Show Week Numbers in DateTimePicker<br /><strong>Posted:</strong> 02 February 2011 at 8:38am<br /><br />Hi,<br><br>I know some people have asked for Codejock to implement this in their DateTimePicker control so I thought I would add the code here on how to show week numbers until they implement it as an option. This also works with the Microsoft DatePicker control.<br><br><img src="uploads/2960/WeekNumbers.png" height="238" width="317" border="0" /><br><br>Add the code snippet below to a module:<br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long<br>Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long<br><br>Public Const GWL_STYLE = (-16)<br><br>' MonthCalendar specific constants. Requires comctl32.dll ver. 4.70<br>Public Const MCM_FIRST = &amp;H1000<br>Public Const MCM_GETMINREQRECT = (MCM_FIRST + 9)<br>Public Const MCS_WEEKNUMBERS = &amp;H4<br><br>' DateTime Picker specific constants. Requires comctl32.dll ver. 4.70<br>Public Const DTM_FIRST = &amp;H1000<br>Public Const DTM_GETMONTHCAL = (DTM_FIRST + 8)<br><br>Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<br>Public Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long<br><br>Public Type RECT<br>&nbsp;&nbsp; Left As Long<br>&nbsp;&nbsp; Top As Long<br>&nbsp;&nbsp; Right As Long<br>&nbsp;&nbsp; Bottom As Long<br>End Type<br></pre></td></tr></table><br><br>Then add the following into the DropDown event of the DateTimePicker control:<br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub DateTimePicker_DropDown()<br>&nbsp;&nbsp; Dim objStyle As Long<br>&nbsp;&nbsp; Dim objRect As RECT<br>&nbsp;&nbsp; Dim hCal As Long<br><br>&nbsp;&nbsp; ' Get the handle to the DropDown Calendar<br>&nbsp;&nbsp; hCal = SendMessage(DateTimePicker.hwnd, DTM_GETMONTHCAL, 0, 0)<br>&nbsp;&nbsp; ' If hCal is greater than zero then the MonthCalendar exists<br>&nbsp;&nbsp; If hCal &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Get the current style of the DropDown Calendar:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objStyle = GetWindowLong(hCal, GWL_STYLE)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' ..and add the WeekNumber style..<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; objStyle = objStyle Or MCS_WEEKNUMBERS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Set the new style in the DropDown Calendar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call SetWindowLong(hCal, GWL_STYLE, objStyle)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Get the minimum size of the DropDown calendar that will show all<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' of the calendar.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SendMessage hCal, MCM_GETMINREQRECT, 0, objRect<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' ..and size the DropDown calendar to the size required.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MoveWindow hCal, 0, 0, objRect.Right + 2, objRect.Bottom, True<br>&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Wed, 02 Feb 2011 08:38:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17826&amp;PID=62397&amp;title=how-to-show-week-numbers-in-datetimepicker#62397</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : Listview background image]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15165&amp;PID=61982&amp;title=listview-background-image#61982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6467">menegrete</a><br /><strong>Subject:</strong> Listview background image<br /><strong>Posted:</strong> 23 December 2010 at 1:21pm<br /><br />Hello! great example!<div><br></div><div>I'm having only one issue here: I want the background not tiled and with the image at the lower right corner of the listview. This can be done with the offset parameters, but... when I scroll the listview, the image scrolls too!!!! Is there any way to avoid this?</div><div><br></div><div>Thanks in advance.</div><div>Martin</div>]]>
   </description>
   <pubDate>Thu, 23 Dec 2010 13:21:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15165&amp;PID=61982&amp;title=listview-background-image#61982</guid>
  </item> 
  <item>
   <title><![CDATA[Visual Basic Code Snippets : Number Edit Usercontrol]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11326&amp;PID=59553&amp;title=number-edit-usercontrol#59553</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> Number Edit Usercontrol<br /><strong>Posted:</strong> 31 July 2010 at 11:06am<br /><br />Hi,<br /><br />I don't hang around here much now so didn't see your post before.<br /><br />CJ said in another thread that they're not interested in this.<br /><br />Timosoft do free components including an updown edit control which might have something of interest:<br /><a href=" " target="_blank">http://www.timosoft-software.de</a>]]>
   </description>
   <pubDate>Sat, 31 Jul 2010 11:06:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11326&amp;PID=59553&amp;title=number-edit-usercontrol#59553</guid>
  </item> 
 </channel>
</rss>