Answer Questions
DenisG Next NewBee question (Icons and TreeView)
I am working with a treeview control and I want to be able to display the icons next to each node depending on the file type. First I want to say that I am not working with a Windows File System files. I am working on files that are referenced through a proprietary file system that enables the revision history’s and other file attributes. It is for a Engineering software similar to Solidworks. Anyway my first problem is extracting ...Show All
John Bristowe Midi file to binary file
Good day How do I save the contents of a midi file to a property bag and then read the contents of the pb and save it to a midi file. No success with - Dim FF as long, vartemp as variant Dim ByteArr() as byte FF= freefile Open "c:\town.mid" For Binary As FF Get FF, , vartemp Close FF bytearr= vartemp -------------------------- vartemp shows empty. Appreciate any feed back Jdsouza Thank You Dustin for the reply ...Show All
Arnon Rotem Gal Oz Getting the last number of a column
How can I get the last number of a column in a certain table of my database.I had a form that was bounded to this table that has an autonumber field.To be able to add another record and automatically add the autonumber, I want to get the last value in the table to be able to increment it by one when i click the add new button.thanks.... MAX is standard SQL, I'd expect it to work with Access. SQL is the lan ...Show All
B.Brown Root Namespace
Hi, My questions is: how do I get the root namespace of an assembly (loaded by Reflection) I hope this is a simple enough question... I do need it for accessing types within the assembly. Thanks in advance, Alex Hi Sammy, It kind of appends the root in the class file in the namespace declaration itself. So, the developer has the option to still write the namespace as he wants it to be and override it. So whate ...Show All
PAsp Locked property
Why am I able to change the locked property for my combo box or text box in the property window but not in the code I thought maybe if you put the combobox in a container and disabled the containter it would do what you want, but it looks like .NET will disable all controls in the container for you. The only way I can see to do it would be to store the selected index in the .tag property of the item an ...Show All
Dimitris Sv Migration of x-y graphs from VB6 to VB 2005
How do I migrate a VB6 program detail concerning making an X-Y graph of 100 XY points to VB 2005 (Express edition) Note: the "migration engine" makes a mess of this, even with the simplest VB6 example. Can anyone give an example of connecting 2 points in a picturebox in VB 2005 How do I make the grid for such a graph I used to do that at run time using hLines and vLines at the proper locations. ...Show All
ashwin_k_s Most wanted code snippets and resources
Hi Everyone, We'd like to hear your ideas and opinions on Intellisense Code Snippets . - Which new code snippets would be most useful - Which code-snippet categories already in Visual Studio would need additional code snippets - What new snippet categories would you add to the ones already in Visual Studio - Which code snippet resources would you find most useful in your everyday experience using, authorin ...Show All
WWG filter a stirng
hi !! i wish someone can help!!! i have string that i receive as returend value.....something like that ID: f002107a8af2b525e7765ece To: 447949606666 ID: 9e821d477915fe5d7a10c5c To: 447949606663 i want to filter this string so i do not need ID: and the To: because i need to save these values in database so basically .... each ID: followed by a number To: belongs to one data entry ....... Can you help me please how to write this !!!! i a ...Show All
archimed Console textbox
What is the best way to make a textbox behave like a console (command prompt) I have a System.IO.StringWriter that gets text appended to it. I can display the output of this in a textbox but the string grows bigger and bigger (i don't care about old stuff just a couple screens of the recent stuff) and anytime the textbox changes it is scrolled to the top, not at the bottom where the new text is located. This is what I have now but it's te ...Show All
Sander3 Storing a form in a dll
In my project I have four forms. Is there a way to store a form in a dll file instead of storing it in the exe file. I want to be able to call the form to show just like I would normally. If there are any links on how to do this in vb.net that would be great also. Thanks. Is there a way I could add a reference through code. So, when my form loads it can scan it's directory and if a dll exists then it will add an item to it's menustrip. ...Show All
bbJosh Control over mouse buttons
Hi again people of MSDN! I'm making a program which makes controlling a computer that little bit easier by enabling "Gestures" from the mouse, so if you hold the right mouse button and slide the mouse to the left, and then release the button, it will use internet explorer's back function. Now the problem I am having is with handling the mouse clicks... I cannot use the click event of some component on a form as I want the program to work w ...Show All
mohamed505080 Waiting between commands
Hi Is it possible to let vb wait a few seconds before it wil excecute the next command That looks like a job for a timer object. Check out the Timer class. You can tell the application to wait until all pending actions have completed by using Application.DoEvents() . Otherwise, you could force the entire application to pause for a certain amount of time by using Threading.Thread.Sleep(pauseLengthI ...Show All
YuriyB Declare and Call A Fortran DLL from VB 2005
If I have a Fortran DLL "CNDBC.dll" (compiled in version 6.6) with a subroutine: CNDBC_CURR(ICURMX,ICNDRMX) INTEGER*2 ICURMX INTEGER*2 ICNDRMX ... (i believe INTEGER*2 is 16 bits and i think SHORT is 16 bits in VB.net) How do I declare the subroutine and how do I make a call to this DLL Are there any other things i need to do to use this DLL thanks, gareth I don't recall if Fortan passes parameters ...Show All
Jordan A Using threads
I would like to have some code snippets that demonstrate MS's prescribed methodologies for using threads with delegates. Specifically, how to use worker threads safely. ...Show All
Anando_Paul_edc3ee Naming a DOS (cmd.exe) window in VB.net 2003
I have a dos window (application) that is launched as a process from a windows app, but i can't for the life of me work out to title the window how i want to Currently is just comes up "C:\windows\system\cmd.exe" etc I want it to be "My Application is no good" or any other text string. Can anyone help me Cheers, Mc I tried this out for a little while, and I could not find a way to make it work. I found s ...Show All
