Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. If you go to the form designer and select a control, the property browser has a button like a yellow zig zag, click that and you get the events. Just double click the event to create it with a default name
  2. Have a look under System.IO and the StreamReader class. It's ReadLine method should do what you want.
  3. What exception does it throw? What error message does it give?
  4. you could check if the page load is being called as a result of a PostBack to prevent it firing the code every time, and put the button click code itno the relevant event handler Sub Page_Load(Sender As Object, E As EventArgs) if Page.IsPostBack = false then 'non-button click code goes here end if End sub
  5. Sounds about right. Probably not the most memory efficient way of doing things though ;)
  6. dim f as new Form1 f.Text = "New Form Title"
  7. If it's 2G of memory then it's half as many characters.
  8. Environment.NewLine should give you what you need.
  9. I'm guessing here but is PERSONNEL' a view based on a table 'NetGestion'? (my grasp of languages other than english is very poor) If so who owns the PERSONNEL view and what permissions do they have to the table?
  10. Have you given the account you created permissions to the table?
  11. You could provide your own .ShowDialog Method in your own form and accept a parameter - then just call the real ShowDialog in your form add something like Public Overloads Sub ShowDialog(ByVal i As Integer) 'Do something with i here ShowDialog() End Sub
  12. Does it ever return 0 bytes? If not it will never execute the else portion of the code (as far as I can see)
  13. Probably Microsoft.VisualBasic.Compatability
  14. you could pass the information as a command line parameter.
  15. If this is a windows application add a tooltip control to the form and the other controls will get a 'Tool Tip on Tooltip1' property. Add the text you want to appear there.
  16. Are you using a datareader or a dataset / datatable?
  17. listboxname.Items.Clear
  18. forms are now classes and need to be treated as such dim f as new frmOptions f.txtFields = "New Text" f.Show()
  19. If the textbox is public that should work. Does it give any errors?
  20. if the server is sending a string you could use a StreamReader to read a line at a time. I think the problem is you are trying to read 100 bytes but only sending 6 or 7, the client is waiting for the remaining data before it returns.
  21. would just deleting the file before saving not work?
  22. probably just do the array the other way round.
  23. What happens if you set the datasource to dataset.Tables("Tablename") Also what is the relation relating to?
  24. What are you using as a mail server?
  25. Looking at the code the problem seems to be that you haven't declared a variable FieldName anywhere in the form, you will need to reference the structure containing the FieldName member. Something like Dim f As FieldRecord f.FieldName = txtFieldName.Text
×
×
  • Create New...