Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. You will need to look at the Clipboard class, specifically the SetDataObject and GetDataObject methods.
  2. If you are getting build errors then it will not be building the executable - you will still be running the original one. Once the errors are removed then you should see the changes.
  3. Not 100% sure what you mean by a 'form procedure' but you can put any sub or function in a module and call it from a form. It may help if you posted a bit of code.... Also you may want to look at using a class with a shared method rather than a module just to keep things a bit more OO
  4. The articles seem to give a good explanation of what n-tier architectures are and some good methods of implementing them with .Net. I'm not sure the authors is doing anything other than trying to explain the concepts - nowhere did he seem to be taking credit for inventing this approach himself. They seemed a good read and n-tier as several well known benefits and should generally be considered an option over the more traditional client / server model IMHO.
  5. VS 2002 compiles against the 1.0 framework, 2003 against the 1.1 framework.
  6. clicky might be of some help
  7. If you are using the .Net string data type then a lot of the 'old' functionality is available through the variable itself. e.g. Dim userInfo() as String userInfo = sData.Split( ";") '''''''''''''''''''''''''' Dim userName as String userName = "r-S" MessageBox.Show(userName.Lengh) C++ isn't my strongest subject but I think you can declare a string without requiring a pointer.
  8. If you are creating a relationship between a parent and a child table then all the child entries must have a valid parent. i.e. Every entry found in id_opisDM must have a matching value in id
  9. you can access the parameters via e. e.g. you should be able to use e.sSender etc.
  10. You need to look at the AddHandler and RemoveHandler keywords, if you search these forums you should find some examples.
  11. You would probably find it easiest using something like System.Net.TcpClient and a simple StreamReader / StreamWriter to send and receive data.
  12. change the server=localhost bit to reflect the name of the server hosting the database.
  13. Could you not load the login form 1st, and if the correct credentials are entered then load the main form? Or failing that display the login form with .ShowDialog to prevent access to the main form.
  14. Any chance you could post the code you have so far? Is there a reason you are using late binding as this will greatly increase the complexity involved?
  15. Strings need to be enclosed in single quotes, or even better use a stored procedure with parameters.
  16. How are you implementing ISerializable in each of the classes? If the MyPicBox implements ISerializable then you should be able to call it's implementation from the MyPanel's implementation to simply delegate the task down to the nested members.
  17. By default VB 'hides' certain things from the intellisense because they are 'advanced', if you lok under the options you can get it to display everything.
  18. try if((this.DataSource) is System.Data.DataSet) { ... } instead. Under C# the is operator compares and instance of a variable to a datatype rather than comparing two data types to see if they are the same.
  19. Are you doing this within an ASP.Net application and require the path to the web application's folder? If so then Server.MapPath is probably what you are after.
  20. Could you jnot just store the current time when the app starts and subtract that from the calculated value?
  21. I don't have the winsock control installed on this pc so I can't test the above project, you may want to check the documentation (or msdn) for the control though to make sure you are using the event and the sckIRC.GetData method correctly....
  22. If the error occurs on the line you stated above Dim surveyNum As Decimal = Decimal.Parse(txtSurveyNum.Text, Globalization.NumberStyles.Number) then it is failing before the insert statement is being run (also you don't have to put single quotes around numbers during an insert). In the debugger what does it display as the value for txtSurveyNum.Text - is it actually displaying what you enter in the webpage?
  23. and that is definately what the debugger says as well?
  24. and the value of txtSurveyNum.Text was.....
  25. If you step through the code in a debugger which line actually throws the error? also what is the value of txtSurveyNum.Text when the error occurs?
×
×
  • Create New...