You could try a simple loop, if outparam.value isn't empty then output value, if it is, then output a simple message..
thecommand.ExecuteNonQuery()
if outparam.value is not nothing then
MsgBox(outparam.Value)
TextBox1.Text = Trim(outparam.Value)
else
msgbox("There was no...
My problem is very simple, i have 4 columns at the moment, this code is supposed to add the column name, and then the details to a listview. Sounds easy, but what i am getting is that all the row details are being listed in column 1. Can anyone tell me why the rows are not been added to the...
This is a quick fix for you, but I'd recommend looking up special ascii characters
Dim mychar As String
mychar = Convert.ToChar(227)
Dim teststring As String = "c:\0TEST\David Bollot Jo" & mychar & "o Morales\newa1.txt"
MsgBox(teststring)
Hope this helps
Redmo
FrmMain button code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Hide() 'This hides frmMain
Dim frm2 As New Form2 'You have to make a new instance of frm2
frm2.Show() 'Show's frm2
End Sub
frm2...
Here is a translation of the c# code. Gotten from http://www.dotnetspider.com/Convert/Csharp-To-Vb.aspx
Dim hwnd As Integer = 0
Dim hwndChild As IntPtr = IntPtr.Zero
'Get a handle for the Calculator Application main window
hwnd=FindWindow(Nothing,"Calculator")
If hwnd = 0 Then
If...
what your saying is that you have a method within form1 that chooses the deck, and you want to pass the selection to form2
the easiest way to do it, is on frm2 call the variable your storing the selection in say strMydeck = frm1.strDeckselect just make sure it's not set as private
you can set it up where ever you want, either set up a button called exit, or a menu item called exit, so it's fired when when the user clicks it, but in doing that, having a msgbox appear might be a little silly
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.