Answer Questions
FreddieCode (NEWB) Null exceptions
Ok, I should know this, but I don't. I'll swallow my pride and ask anyways. Sorry for the inconvience, but I have no good documentation on this simple stuff :). Why am I getting Nullexceptions with this code Why, and How, do I need to initialize a string array I have not used yet Dim path() As String ListBox1.Items.CopyTo(path, 0) In VBe '05 b2 I'm getting the green underline thats warni ...Show All
Kenneth LeFebvre Am i correct, red highlight area is vc++ bit function...am trying to convert to vb, pls help
'// write data stream into 'void WriteBits(BYTE* p_buff, int pos, int len, unsigned long value) '{ ' int start_byte, end_byte; ' int start_bit, end_bit; ' int byte_pos; ' BYTE width_mask, or_mask, and_mask; ' BYTE byte_value; ' ' start_byte = pos / 8; ' start_bit = pos % 8; ' start_bit = 7 - start_bit; ' ...Show All
Noelle Loading Notepad as a Process
Hi, The code below is for a service that fires every 10 seconds. If it doesn't find an instance of Notepad running, it loads it up. Please note that Notepad is only for a test, the final version of the software will run a program once at 22:00. The problem I have is that Notepad isn't loading fully. I get a Notepad.exe in the task-manager, but despite setting the properties, the actual Notepad application doesn't load for user-interaction! Can ...Show All
kebabbert question about Long data type in VB 2005 Express
Why is (2^63) - 1 not a constant expression not representable in type Long. I think is a type conversion thing or how math operations are carried out in the computer. It's zero-based in the count, so the bits are zero through 63 for a total of sixty-four bits. Can I interest you in a Uint64 datatype Thats an unsigned long. It's my favorite. ;) Renee Isn't bit count diffe ...Show All
Chrutil Click Once Deployment
After seeing Jamie Cool's video on Click Once deployment, I am now experimenting with it - on VS2005 Beta 1 (Beta 2 is on order!) It looks really neat.... However, how do you put other files such as a text file and help file into the deployed application folder. With other forms of deployment you can simply add them to the folder. I can't seem to find something similar through the Click Once method. I have tried adding the help file ...Show All
trggr_happy_jack Button State "Hanging"
I'm a newbie to VB 2005 converting from VB6 and I've run into a problem I don't understand! (I'm using VS2005). I'm using a "While" loop to detect when a Button has been clicked before the user can progress in the flow of the program. But when I call the code, the button whose event calls it seems to hang in the down state. To reproduce (slightly different but demonstrates the problem), set up a new project and add a button and a ...Show All
Black Virus Pointers In VB?
Is there anyway of converting the following C# code to VB Vector3* myVector3 = (Vector3*)&someMatrix.M31; Thanks To avoid the wading through a, rather mild, flame war; look at: Marshal.StructureToPtr and Marshal.PtrToStructure And an particular the other Marshal members in the System.Runtime.InteropServices . where With managed code these days...there are very few reasons to utilize pointers up ...Show All
Hal Styli Me <Keyword>
No matter how hard I try to understand I am not clear about Visual Basic Keyworkd Me From MSDN Me <Keyword> provides a way to refer to the specific instance of a class or structure in which the code is currently executing For simple windows application I know Me refers to current form object but any further explanation apologize this is a very basic question The Me keyword is used any time w ...Show All
DROSCOE Help: Visual basic program
Hi i am making a program with a listbox named (lst) and picturebox named (pic) and i put the following code into the listbox selectedindexchanged sub so as the user clicks on the picture name from the listbox it displays in the picturebox Note: the listbox contains the paths of the images as there is openfiledialog in the program Private Sub lst_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles lst.SelectedI ...Show All
krish_sathish Custom Action -EXE how to abort install
Hi All, I am experimenting with deployment of a VB solution and specifically with a custom action in the deployment project. The custom action EXE works with SSE 2005 databases and verify special encrypted files required by the solution. Every thing works fine but I would like to be able to abort and reverse the installation from within the custom action EXE. I guess the question is simple but here it is : Can we abort ...Show All
gilstav Find Values in a Row
I've been learning Visual Basic in highschool for the past nine weeks and I've been struggling with this problem for a while. If anyone could help me, I would greatly appreciate it: I'm trying to create a form that searches for a value in a table under a certain column and give feedback of whether the command found the value or not. Does it have to do anything with the Find method If so how do you use it Or is it a Query If anyone could help ...Show All
Bhaskar Vasudevan VB.Net help - Various Issues
In our point of sale system, we can export various reports as a csv file. The problem is that when we open them in Excel, some of the fields (which contain a number 20 digits long) show incorrectly as Excel can only recognize 15 unique digits and changes the last 5 to zero's. I have written a VB program that will allow the user to open teh csv file in a datagrid, adn the numbers show up correct. Now I am having a problem figuring ...Show All
Bozogg Socket Encoding and Decoding using Ascii Encoding
Hi All fairly new to VB .Net and have been trying to port code from vb6. I have picked up the sample application for sockets and my problem is I have a string which come come in with binary data packed as bytes i.e 10101010101001 and the bytes would appear as .>D.... .. .B..." compressed bitmap. It would now appear that I cannot see the full string I have some characters missing and when I read through the data and build a response I can ...Show All
flo ben Database saving
I'm using VS 2005 and I'm having trouble with the data connectiong. When I use the wizard to create the connection and create a binded form, everything is binded as it should be. However, as you know there is a navagation bar that is also inserted. When I run the application, the navagation works, as well as the delete, add, and save buttons. They work during runtime. But, when I close the application, and reopen it, the data is not ch ...Show All
ags2886 display time
in the timer_tick event i wrote the following to display time lbltime.Text = Now.Hour & " :" & Now.Minute & ": " & Now.Second the problem is it is displaying the time like 17:15: 56 It want the time to be displayed in 12 hrs like 2:30 PM or 10:30 AM how can i implement this Try Now.ToString("HH:mm:ss") The uppercase H gives you 0-23 lower case is ...Show All
