|
|
I think it's to late to use a different collection, i'll iterate.
thanks anyway!
Cheers
Fuel2Run
|
|
|
|
|
how can i create a new table via sql command in vb recall my database is SQL Server 2000
|
|
|
|
|
|
i have two forms. FORM1 and FORM2. Form1 has a datagrid with columns that reads from an xml file. form2 has 4 textboxes. how do I get these textboxes writen to the xml file so they will show in the datagrid on form1. My datagrid has 4 columns.
|
|
|
|
|
Look into the system.IO namespace.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am building a vb.net app that needs to be able to receive notification if a link is clicked in IE. specificly a speceal link like <'a href="test://testtesttest">Test
where the protocol is actually the function that gets fired in my app.
please help
Thanks in advance
Tim
|
|
|
|
|
how can i create a relationship beween scanner and a form in vb
|
|
|
|
|
Buy them both movie tickets, I guess.....
What do you want to do - get the form to always show what's on the scanner ? There's no way for the code to know that the contents of the scanner have changed. Do you have TWAIN drivers in VB.NET already ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i want to scan a paper via a vb form and save it in a database therefore vb from must be enbale to detect if scanner is connect to computer
|
|
|
|
|
Try to read this article.[^]
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
how can i create a relationship beween scaner and a form in vb
|
|
|
|
|
Hi, in vb6 in the code windows if i want to delete a single line of code at a time, I could press the shortcut key Ctrl + Y
But in vb.net this method is not working. Does anyone know how to delete a single line of code at a time by using shortcut key in vb.net?
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
i have a medical application. once the doctor selects a patient for consultation. there are a list of differnt diagnosis which can be selected multiple for a single patient at a time.Now each diagnosis has differnt findings and surgerys booked for the diagnosis.These findings are 40% common in all diagnosis and rest are differnt. Now there are around 20 diagnosis. my clinet wants to see the selected diagnosis findingson a findings form and surgery information for all selected in surgery form. i cannot make all the controls for differnt findingds on the same form a make visisble true false according to the selected. and making controls at runtime will be cumbersome.can any body tell me the flow to do this. any further information needed will be provided.
Thanks
Monica
|
|
|
|
|
monica2k wrote:
i cannot make all the controls for differnt findingds on the same form a make visisble true false according to the selected.
I am not sure what this means.
monica2k wrote:
making controls at runtime will be cumbersome
Why ?
monica2k wrote:
can any body tell me the flow to do this
You have two options - one is fill the form with all options and hide some. This is ugly. Two is create the controls dynamically. That is what you should do, that way you control how many controls you have, as well as what's on tehm
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
I've developed a home winform application and I want execute it from another computer connected. But it make an security exception "This application is running in a partially trusted context..."
Anyone can help me to solve this problem. I dont need any security. I just want to remove this validation in order to test my application.
Thank you.
Regards
German
german
|
|
|
|
|
If you were to have a VB project with several forms included. Is there a way to programmatically check which form is the active one without checking each form individually. I am implementing some error checking code and I trying to programmatically trace back in my code to the point of the user button click. In order to generate a useful error message. Does anyone have any ideas?
|
|
|
|
|
If your form has try ... catch statements then in the catch you can log the exception data which contains the stack of all methods called including the line number where error ocurred.
Look into Exception.Stacktrace to get the list of methods called, and also look at Exception.TargetSite.DeclaringType to get the method name where error ocurred.
|
|
|
|
|
I have a windows form that contains a tab control that contains a single tab page. The autoscroll property is set to True. I'm adding controls, labels in this case. If I set the top property before I add it to the tab page everything works fine. But if I set the top property after adding the label to the tab page and I'm trying to set it to anyting larger than 32676, it simply sets it to 32676 but with no errors. The following is the code I used.
Dim _worksurface As System.Windows.Forms.TabControl
_Worksurface = New System.Windows.Forms.TabControl
_Worksurface.Dock = DockStyle.Fill
_Worksurface.Appearance = TabAppearance.Normal
Dim tp As New System.Windows.Forms.TabPage
tp.AutoScroll = True
tp.Text = "Tab Page"
_Worksurface.TabPages.Add(tp)
Me.Controls.Add(_Worksurface)
Dim l As System.Windows.Forms.Label
Dim OffSet As Integer = 0
For i As Integer = 1 To 10
l = New System.Windows.Forms.Label
l.Text = "Steve-" & i
'l.Top = 32700 + OffSet
tp.Controls.Add(l)
l.Top = 32700 + OffSet
OffSet += 1000
Next
'TRY TO REPOSITION THE LABELS
For Each lab As System.Windows.Forms.Label In tp.Controls
lab.Top = lab.Top + 1
Next
|
|
|
|
|
Your mistake is while using the loop to change the position,
For..Each is ---> READ ONLY LOOP
use For..Next instead
bye
|
|
|
|
|
I get the same results with a FOR NEXT loop. You can actually get the same reults simply by setting the Top property after the control is added to the TabPage where all values greater than 32767 are simply set to 32767.
|
|
|
|
|
Hi everyone:
Im setting up a datagrid control with some special functionality; i mean i need special functionality :
A)
I need to add a new record throw the action of an adding Buttom [This is Done]
B)
After the User Imput Data the only way to save it its throw another save button..
These are the question :
- How can i set the datagrid to be available to edit only one row , in order to edit just the current row i mean if the user navigates to other row the datagrid must back its readonly mode. Just the row been added must allow to modify .
- How does VB.NET cancel and adding Table adding Row Event .. i mean wich its the event that the Table or Datagrid fires when the user tryes to add a new Row . in order to cancel to add a new row until the last user click saves the current row been adde,
Regards
Josue Avila ..
|
|
|
|
|
It is best to specify a datatable such as a datasource. Reason is that you can capture the datatable events when rows are added/modified/deleted.
As far as changing the readonly, I guess you could capture the "CurrentCellChanged" event of the datagrid then you can get the "CurrentRowIndex" property and if it's a different row set the datagrid mode to Readonly.
|
|
|
|
|
Hi,
I'm making an app to get some information from a text file.
The delimiter I have to find the data I want is a "/", but I need to go back from the delimiter until I get one of these caracheters (; , <).
For example, the text line is like this:
<8342342/005.001>
I need the 8342342/005.001 without everything else.
How can I do that?
Thanks in advance.
|
|
|
|
|
Hi!
Why don't you search for something inside <> or ;; and then split with the "/" delimiter?
Never say never
|
|
|
|