Answer Questions
Kestutis ON Close OF IDE i Get "an unhandled win32 exception occurred in devenv.exe"
I am getting the following error when I close down the dot net IDE. "an unhandled win32 exception occurred in devenv.exe [2420]" I have tracked it down to when I have a form open in the Designer & then I close the IDE. No run or compile done. All forms are inherited from our own base forms. My solution has 14 projects, hundreds of forms/classes. PC Configuration Brand new HP PC Pentium d 3.4ghx 2.5gm Ram, 80gm HD (51gb Free) Dual Monitor XP with SP2, Office 2003, Toad, etc.. Visual Studio 2005, Component One Controls for Vs2005 I have installed the hotfix that fixes most fo the IDE bugs!. I am NOT using any addins, just a set of third party controls by Co ...Show All
Talyrond Compare speed of reading random(binary file) in VB6 and VB2005
I ever created one project to read a random file(binary, not text) in VB6. It takes only 5 seconds to get all records(structure as below) and store these records in an array, but now i upgraded it to VB2005. I also use the handle-base method(fileget). Very miserable, it takes more then 30 seconds. I do not know why !!!!No any error, but i do not know why so slow!!!! Module1: Public dataarray(50000) as rec_info Public datacount as long Public Structure rec_info <VBFixedString(8)> Public Data1 as string Public Data2 as integer Public Data3 as single End Structure Code: Dim i as long Dim file_num as integer = FreeFile() FileOpen(file_num,"xxx.dat",OpenMode.Random, O ...Show All
Winks Help with subclassing
Was hoping someone might be able to spare a link or two about refining classes. Working on a newbie program and have a class set up but need to refine it and possibly add a sub class. Any links to good reads would be greatly appreciated. Thanks Mike You could create an array of Class Cards in your person class. Try this article and see if it helps you out. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndotnet/html/Classinherit.asp frame=true Best bet is probably here on MSDN. Have a look at a few keywords like: implements, extends and inherits. That ought to get you started. Thank you Jared and weirdbeardmt, for the links. I should have been a little more sp ...Show All
Rainadaman User input
Is it possible for console applications to accept user input If so, what code do I need to include in my console application to do that Here's some sample code for getting user input, which must be a string. If a number variable is needed, it must be converted from the string using the TryParse method. Dim nom, sage As String , age As Integer Console.WriteLine( "Get user's input for name and age as string values." ) Console.Write( "Enter your name: " ) 'cursor stays on the same line snom = Console.ReadLine() Console.Write( "Enter your age: " ) 'cursor stays on the same line sage = Console.ReadLine() Integer .TryParse(sage, age) Console.WriteLine( "Hello, {0 ...Show All
Robert Shurbet Could you tell me the type of your applications?
Hello. I have a question on user settings. When I install another version of my application on a customer PC I lost old users settings. Could anyone say me how could I retrieve them when I install a new version of my application Thanks... I am assuming that you are using the built in "My.Settings" type of thing with the application properties. I'm curious as well, because it seems that each time you make a 'version change' VB wants to make a new configuration file. It would be nice if there was a "use old version" setting. I also await an answer to this part. :) Hello. The type of my applicacion is framework 2.0 visual 2005. I don't need to uninst ...Show All
jenjen13 Update DB/Please review my code
I have an XML file that I have put into a datagrid. (The grid is loading the XML perfectly!) I am now looping through my datagrid to update my SQL 2005 DB. Can someone please tell me what I am doing wrong here (One thing that may look odd is that I am querying the Inventory record first to count the current inventory then adding the column total to that count. That is because the XML file shows inventory at 3 different locations and I only need to know the TOTAL) Thanks in advance! visual basic code: Private Sub btnGetData_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles btnGetData.Click dsAvailableBatch. Clear () dgBatch.Refresh() txtStatus.Text = DateTime. Now & " - Getting batch please wait..." ...Show All
Andrew Mercer combo box using table field as the source (beginner)
i had set an outlook table using adodb.recordset. The table have 2 field : 'ID' and 'ITEM_NAME'. I would like to set my COMBO BOX with all the 'ITEM_NAME' values from the table without using combo.additem method, because the recordcount is to many. how to set the 'Item_name' table fields into the combo box you would do a databind in this case so..... Me.theComboBox.DataSource = theDataSet.Tables(0).DefaultView Me.theComboBox.DisplayMember = "ITEM_NAME" this will automatically bind the field "ITEM_NAME" to the combobox from the datasource, being the datatable/dataset in my example does this help i couldn't find the .tables(0).defaultview property on my records ...Show All
zariusan Controlling IHttpHandler for thumbnails
Hi, Hope to get some help on the following issue: I need to display some photos on an ASP.NET page. These photos will first be displayed as a thumbnail (in a thumbnail gallery). When the user clicks on it, it will display the actual size photo in a new window. So far, these has been done. I've implemented a ihttphandler to get the thumbnail of the photos for display in the thumbnail gallery. However, because some of the photos are partially corrupted, the thumbnail of these photos will not be displayed. Hence, my question is: In the case of a partially corrupted photo, how in the world should I tell the iHttpHandler to NOT attempt to extract the thumbnail and instead return the original photo for display ...Show All
John R. Garrett Addhandler cause error even the event signature is the same
Hi, I was a VB6 user and kind of new in delegate. I try to create a delegated sub that will validate all the controls bind with the bindingsource. Somehow, myValidating at the addhander procedure will be underlined and said "...cannot be converted to system.componentmodel.CancelEventHandler". I can't figure out the reason. Appreciate for any suggestion... Here is my code. Delegate Sub CustomValidating( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Private Sub SetupValidation( ByVal _bindingsource As BindingSource, ByVal myValidating As CustomValidating) For Each b As Binding In _bindingsource.CurrencyManager.Bindings AddHandler b.Control.Validating, my ...Show All
RichLeyshon How i can create a Start Menu Icon with VBS??
Hello, I need to create a Start Menu icons with VBS but i don't accomplish. I successfully create a Desktop icon to the next article and he function correctly. I don't see the way to reach this task. Any idea http://support.microsoft.com/kb/197425/es Thanks Many thanks. I test this solution. Guillermo_bcn, There is an example is exactly what you want, please download the sample project in VB6: http://vb-helper.com/HowTo/shortcut.zip Option Explicit On Private Declare Function fCreateShellLink Lib "Vb5stkit.dll" ( ByVal lpstrFolderName As String , ByVal lpstrLinkName As String , ByVal lpstrLinkPath As String , ByVal ...Show All
GBC143 Binding keys within the form
Anyone know how to bind for say the "esc" key to a function Code Snippet 'make sure you set your forms keypreview property to true. Me .keypreview=true Private Sub frmMain_KeyDown( ByVal sender As Object , ByVal EventArgs As System.Windows.Forms.KeyEventArgs) Handles Me .KeyDown Select Case EventArgs.KeyCode Case Keys.Escape me .close 'function to call End Select End Sub Thanks... THat works great! ...Show All
anisxahmed how to make the dropdownlist box auto fill according to the text typed on it
hello, can we make the dropdown listbox in the asp.net web page to auto select the text. that is it should accept the text from the user as a textbox and then if the same text is there make it available(auto fill). please help me urgent These questions are referred to www.asp.net . ...Show All
p0lar_bear how to Convert String to code?
Greetings, I'm trying to convert a string from a textbox to actual visual basic code like this: If (string from textbox) Then (another string from another textbox) End If I'm new to vb so dont ask me questions I wont have a clue about Thanks, and may the force ...Show All
Darren Tao convert to vb.net - System.IntPtr* ptr = &handle;
Dim handle As System.IntPtr System.IntPtr* ptr = &handle; <<-- in vb.net How do I convert this Thank you. -Greg Use the Marshal Class http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemRuntimeInteropServicesMarshalClassTopic.asp or create a separate c# dll (to be referenced as needed in the vb project) that would take as an argument the panel control and let this code segment (which works in c#) send the ptr (the address of the panel control) onto the unmanged c++ dll. does this sound o.k. thx. -greg unsafe { System. IntPtr handle = panel1.Handle; System. IntP ...Show All
Jubber Problems with Process class
Hi, I am trying to use media player classic to open certain songs in my program and close it after some period of time. Here are the source codes: dim myProcess as Process = new Process() myProcess.start("mplayer2.exe", "C:\My Song.mp3") myProcess.WaitForExit(60000) myProcess.CloseMainWindow() As the program runs, it can open windows media player and play the song. However, it keeps on displaying exception like this "The process is not associated with certain object" (i don't quite remember the name) when it reaches waitforexit method. anyone can help me thanks a lot. Thanks a lot for your suggestion. Supress the error message and then use Process.Kill DMan1 wrote: ...Show All
