Search results for query: *

  • Users: Jnox
  • Order by date
  1. J

    Sending a command to an IP

    Here is the send command: For1_load Send("WD_START") end sub Private Sub Send(ByVal Command As String) Dim Writer As New IO.StreamWriter(TCP.GetStream) Writer.Write(Command) Writer.Flush() End Sub Here is the read command: Private Sub DoRead(ByVal...
  2. J

    Sending a command to an IP

    you should not be using a writeline extension to send the commands. ".writeline" is usually used to display commands in a command prompt. You should be just sending "WD_START" without vbcrlf
  3. J

    Child form enables menu toolbar on main form?

    I figured it out! I've been strugling with this all day! Here is the solution for anyone that cares: Main form code: Friend Sub LoadMenus(ByVal MenuPermissive As Boolean) Dim Blah As Boolean Blah = MenuPermissive If Blah = True Then MessageBox.Show("Test! IT WORKS!", Me.Text...
  4. J

    Child form enables menu toolbar on main form?

    Well, this is a little hard to explain, but I'll do my best --------------- Main form holds the menu strip Child form holds the log in information. When you log in with a specific account, the child form sends information back to the main form. That information will tell the main form to...
  5. J

    Child form enables menu toolbar on main form?

    Oh yeah, I have also noticed that you have it set up to use form 2 as the startup form. Form1 is the Main form Form2 is the child form
  6. J

    Child form enables menu toolbar on main form?

    I see how you did it. You are reopening the main form after you change the setting. The way I need it to work is by having the main and child forms open, then controling the toolbar on the main form from the child form without reopening it. I'm sure if you try that, it wont work!
  7. J

    Child form enables menu toolbar on main form?

    How is that possible!!!!!!!!! are you using two seperate forms. Can you compile the project on your computer and send me the file? jnoxforall@hotmail.com I'll open it up on my machine to see if it works. THANK YOU!
  8. J

    Child form enables menu toolbar on main form?

    JohnH, I have just created seperate application from everything else. It still doesnt work. Can you pase in your code. Are you using VS2005 or VS2005 Express(what I'm using)
  9. J

    Child form enables menu toolbar on main form?

    I am using VS2005 Express. Thats very strange! I'm still very puzzled by this, and I have to get this done today. Any ideas?
  10. J

    Child form enables menu toolbar on main form?

    Here is my main form code: Friend Sub LoadMenus(ByVal MenuPermissive As Boolean) Dim Blah As Boolean Blah = MenuPermissive If Blah = True Then MessageBox.Show("Test! IT WORKS!", Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Information) Me.ToolBar1.Visible = True End If End Sub Here is my...
  11. J

    Child form enables menu toolbar on main form?

    Yes I did. I can display for example a message box in the main form, but I am unable to execute "ToolBar1.Visible = True"
  12. J

    Child form enables menu toolbar on main form?

    Solved, Scroll for solution! Originial Question: Is this possible to do. Here is how my program is set up. user logs in on the child form. If log in is correct, the child form enables two menu bars on the main form then closes. How do I send a command from child form to main form to...
  13. J

    Problem With "DELETE FROM"

    I have this following code. It looks okay, but it doesnt work. Could someone be able to help me solve the problem? Dim dbComm As SqlCommand Dim DbCommand As SqlDataAdapter Dim DbFill As New DataSet Dim DbConn As...
  14. J

    Problems with Insert Command

    You are correct. Now I am trying to figure out how to use the UPDATE and DELETE commands. I'm having tons of issues and I do need some help!!!!!! Jnox
  15. J

    Updating SQL server database from a dataset

    I am very new at this. Here is my dataset code: <?xml version="1.0" standalone="yes" ?> <xs:schema id="DataSet1" targetNamespace="http://www.tempuri.org/DataSet1.xsd" xmlns:mstns="http://www.tempuri.org/DataSet1.xsd" xmlns="http://www.tempuri.org/DataSet1.xsd"...
  16. J

    Updating SQL server database from a dataset

    Any idea why this code doesnt work? no errors SqlDataAdapter1.Update(DataSet11.GetChanges, "Users") myConnection = New SqlConnection("uid=xxxxx;pwd=xxxxx;data source=LAPTOP\SQLEXPRESS;initial catalog=CheckWeigher") 'myCommand = New...
  17. J

    Problems with Insert Command

    Thank you for your replies guys, I will give it a try! Jnox
  18. J

    Problems with Insert Command

    Here is the updated code. Now it gives me an error saying : An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll Additional information: Exception has been thrown by the target of an invocation. Private Sub Button1_Click(ByVal sender As...
  19. J

    Problems with Insert Command

    I am having huge problems with my code. I am trying to insert 1,2,3,4,5 for testing purposes into my SQL server table. It is not working and I am pulling my hair out trying to figure it out!!!! HELPPPPPPPPPPPP!!!!!!!!! Here is my code: Private Sub Button1_Click(ByVal sender As...
  20. J

    Sending a command to an IP

    Found some good info on there. Anyone know anything on how to create a .csv file? Or maybe a place where I can find info on it? I can probably find it, but if there is a really good example out there, please let me know. THANK YOU!
Back
Top