Answer Questions
caribou Error message ''Library not registered'' when using Masked Edit control (I m using VB2003 with Windows2003)
Hi dear, I m using VB2003 and windows 2003. I add reference to the Masked Edit control through the menu: Projetc --> Add reference --> COM. But when I try to drag the control from my Windows Form Toolbox to the target form, I get the error message: ''Library not registered'' . I did teh ''regsvr32 C:\windows\system32\msmask32.ocx'', but It didn t work Please if you could assist, I appreciate your help, Happy new year. ...Show All
blars Where are those bitmaps?
I'm trying to find the bitmap image files that come with VB 2005 for you to use in your applications, but I can't seem to find them. Littl help here I have an e-mail. It is qianli99@gmail.com . Wait a minute... Could you make it appear You are running the regular VB 2005 and not the Express version I'm not sure if the bitmaps come with Express I checked for mine, and they are installed (same as Blair Allen Stark' ...Show All
Booojan KeyASCII
Can someone help me on how to declare the keyASCII in VB2005 If anyone is interested.. I have a snippet for this. Oddly enough it's become simpler.... My . Computer . Keyboard . SendKeys (string ) So it would be My . Computer . Keyboard . SendKeys ("A" ) Private Sub Textbox1_KeyPress( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Textbox1.KeyPress 'The following properties ...Show All
davilafon Bug?: Accessing array of objects in a function
When I try to use an array of objects through a function or certain types of subs, I get a NullReferenceException and a TypeInitialization exception. Any subs tied to a button do not cause this. This code explains better: This is in a module: Public checkBoxes() As CheckBox = {frmLaunch.uiCheckBoxDeveloper, frmLaunch.uiCheckBoxDebugFile, frmLaunch.uiCheckBoxAltDeath} This sub will use the checkbox array with ...Show All
Blerus Cannot save my.settings if one of the setting fields is a sortedList
The following gives me a null reference error. Setting: name = Recipe, type = SortedList, scope = User Code: my.settings.Recipe = new SortedList my.settings.Recipe.Add("aKey", "aString") my.settings.Save() < Null reference error occurrs here. I have tried (and failed) with many different approaches to use a sorted list in my.settings. I would love to know the correct way to do this. Try pr ...Show All
John Weldon Try...Catch statement Question
I have a Try...Catch statement that contains 12 Operations inside it. On the catch I want to display a msgbox that tells exactly which operations failed. I was looking through the exception methods and couldn't find one that worked. All of the methods provided relative information but nothing specific. The reason I want to pinpoint exactly which operations failed is so that the user can email the error message to me and when I get it I will kn ...Show All
Oxie ATTACHING CODE SNIPPET
How do I attach a code snippet to a thread so that it can be viewed by the members of the forum yes. When you say post it , does that mean typing the snippet into the thread Thanks Post it. You can't attach anything. You can copy and paste it though, rather than typing it from scratch. HTH ...Show All
willmacs File timestamp
I have the following code to rename a file with a timestamp: ren G:\excel\reporting\2006\Planning\DataLoads\DatabaseExports\AcctVar.txt AcctVar%date:~4,2%-%date:~7,2%-%date:~10%.txt It changes the filename to: AcctVar11-04-2005.txt. What does "%date:~4,2%-%date:~7,2%-%date:~10%" mean and where could I find the definitions I'd appreciate any help. Thanks. Can you tell ...Show All
Bryan Yoo the new class and object
what's the difference between these codes -dim variable as button -dim variable as new button -dim variable as button = new button please describe the "NEW" and how it works , in simple word. in defenition a variable as object , what's the difference between these codes -dim variable as object -dim variable as system.object Let me try this...... I'm not sure I'll get it right but attempting to do so is a growth process. I think it's i ...Show All
Alfred LOK20932 Vb2005 - ReleaseCapture
Might anyone have working VB2005 code for ReleaseCapture Can you provide more information What is ReleaseCapture After a lot of playing with this and looking at many different methods, I decided that following would work best for me. I did not use the vb2005 cursor.position because it's a shared method and requires a lot of agony. As much as I dislike it I resorted to an API routine GetCursorPos and a keydown sampling interval of 2 ...Show All
dev_kh Load Gif on Key Press up
How do I load a gif I want to load from specific gif on my computer... I have an empty picture box and I want a transperant Gif to load (and play) when i press key up. I also want to know how to move a picture with key up, my background picture down 1 pixel. when i press and hold key up. Easy stuff but i don't have the knowledge 'Keycode' is not a member of 'System.EventArgs'. and if i take off the "e." infront of "Keycode" ...Show All
GN Clearing combobox dropdown history
I have a button to check the available cars on certain dates. When they check and the dates are ok..then it fills a combobox with "sports, utility, family, etc. categories) Lets say the user changes the dates and they dont work, aka. return date is before pickup date. How do i clear the items from the combobox cbFilter.items.clear() doesnt seem to work :( you want to clear a class or you want t ...Show All
Rutger van der Vleuten ListItem unavailable
I am not able to use the ListItem Class in my VB 2003. When I try to declare an instance of ListItem as follows, it is not recognized. Dim objListItem As ListItem Is there something I am missing Thanx a lot. I have added the reference and imports. Now its ok. Error message is: "Type ListItem is not defined". In any case, when I am declaring, ListItem does not appear as one of the types. I tried to import th ...Show All
Dany_Vohl month difference
hi, how can i get the month difference between 2 variables of DateTime type and - is it possible to know how many days are in a specific month if yes, how thanks in advanced does any one know of an available function to calculate the difference between two dates on a 30/360 day calendar as is common in financial calculations. That is assuming each month is 30 days exactly and each yr is 12 mon ...Show All
SquireToad Pointers : Converting to VB
Is there anyway of converting the following C# code to VB Vector3* myVector3 = (Vector3*)&someMatrix.M31; Thanks what about code marked as unsafe in c# (ALL managed C# can be converted) Thanks Hmmm, without knowing exactly what a 'vector3' is, or what someMatrix is, it's not really convertable to anything meaningful. It'd probably translate to: Dim myVector3 as Vector3 with Vector3 as some kind ...Show All
