Search results for query: *

  • Users: nismo
  • Order by date
  1. N

    Question Web service shares the same public variables during simultaneous requests

    I have a web service, and it contains a module containing public datasets. These datasets are populated when a request comes into the <WebMethod> function, and the execution then follows a lengthy process in order to build up a class which is ultimately returned by the web service. Along the...
  2. N

    Question Change the url of a web service

    This sound easy, just set the .Url property, but its not that easy. Dim WSInst As New FareService.FareServices In order to change the .Url property, i need an instance of the web service. Upon instantiation of the web service, it tries to connect to it, which may cause a runtime error if the...
  3. N

    Is this a good idea? (copying an object without implementing clone)

    I cant remember where, but somebody gave me this peice of code to copy an instance of a class which does not have a clone method. It works, but since i dont really understand it, i just want to know whether this is going to have any negative effects before i start using it more often... Also...
  4. N

    Turning off asp.net compiler warnings

    In VB.NET windows, its easy to turn off the compiler messages such as "Variable 'DS2' is used before it has been assigned a value. A null reference exception could result at runtime." You just go to the project properties and you can see them under the compile tab. How do you do the same in...
  5. N

    Overwriting a class reference

    Thats not what im trying to do... I know i can easily update each member of a class that is passed to a function, but i want to overwrite the source of that passed instance with a new instance, so that in the calling function (caller) the instance of x is replaced by the new instance created in...
  6. N

    Overwriting a class reference

    But some of the class members are instances of other classes... and i dont want to have to maintain hoardes of code that just duplicates a class (because then i have to remember to go back and change it if i add members to it)
  7. N

    Overwriting a class reference

    Thanks for the reply. I dont think you understand what im trying to do though... I have form A. When a user presses "Select Flight" on form A, it loads form B (which is the flight select screen). It passes an instance of the Search class which contains a number of different peices of...
  8. N

    Overwriting a class reference

    I have a problem. I have an instance of a class that has been passed to my form. What happens is, i create a copy of the class and the changes the user makes is applied to the copy. If the user cancels, i just abandon the copied class, but if they want to save, then i want to overwrite the...
  9. N

    Managing settings

    The problem with this solution is the same as my original problem with option #1 - I'd still need to maintain 30 control containers (whether they are usercontrols or group boxes doesnt matter) on my form which contain all the controls. Thats my biggest issue. If i need to go back and change or...
  10. N

    Managing settings

    Heres what im trying to do. I have hundreds of settings in my application, and i want a settings editor for my form. Theres going to be about 30 categories of settings and i think i know how to go about it. Option 1# Have a treeview with each category. Then create 30 group boxes (one for...
  11. N

    Looping through variables

    Well, the stack trace rarely ever helps me because it doesnt contain a line number and my functions are large. Since the user can rarely explain what they were doing very well, having a snapshot of the variables would be incredibly useful. I appreciate the reply, but are you able to help me...
  12. N

    Looping through variables

    In order to provide the ultimate in error reporting for our application, is there any way in VB.NET that i can do a loop which loops around every variable currently in memory and be able to return the name and its value?
  13. N

    Getting sheet names from an excel spreadsheet

    Can anyone help me on this? I'd really appreciate it...
  14. N

    Getting sheet names from an excel spreadsheet

    Dim MyCommand As System.Data.OleDb.OleDbDataAdapter Dim MyConnection As System.Data.OleDb.OleDbConnection Dim DS As DataSet MyConnection = New System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; data source=" & txtFile.Text & "; Extended Properties=Excel 8.0;") MyCommand = New...
  15. N

    Windows App and Web services

    Ok thanks. I was kinda hoping i wouldn't have to modify my entire project and add additional functions to every occurrence of a date - it would be alot easier to just somehow change my web service to state the date values should not have any offset's applied on the target machine
  16. N

    Windows App and Web services

    How do i do that exactly? Is that something i do in sql server or in vb.net ?
  17. N

    Windows App and Web services

    I have a windows app which is used in australia and uses web services to communicate with the database located in new zealand. I have a problem where dates that are returned from SQL are automatically modified to suit the timezone and i dont know how to turn it off. For example, i insert the...
  18. N

    Anyone else think the designer sucks?

    Im getting extremely frustrated with a few things to do with the designer. It seems like they have purposely downgraded it... The main one is, wheres the selection rectangle? How can i select multiple controls without having to hold down Ctrl and select them all manually? Ctrl+A doesnt even...
Back
Top