Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. for number 2 - let is no longer needed when doing assignments anymore, all classes inherit from object now so only a property set is required.
  2. You will need to pass a reference to formA to FormB and then get formB to pass the formA reference to FormC - then formC can access FormA Hope that makes a bit of sense.
  3. same thing really change the StringMaker method to public void StringMaker() { X = new string[2,2]; }
  4. The folder on the web server needs to be configured as an application under the IIS admin tools.
  5. change your form load to private void Form1_Load(object sender, System.EventArgs e) { DS1 = new DataStore(); } and all should be well. Your current form load is declaring and instantiating a new variable called DS1 rather than referencing the form level one. if you want button2 to work the same change will be needed.
  6. Just had a quick look (with a compiler handy yipee!!!) Application.Run(you) does indeed display the form. the following may be of some help though... Dim you As New frmSomeForm If someRegValue = 0 Then you.show() ElseIf someRegValue = 1 Then you.someicon.visible = True 'with someicon being a notifyicon component of form1 declared public End If application.run() the only problem is that the app doesn't exit when you close the form - either add a handler for the Form close event or deal with it in you're exit routine.
  7. Not sure if it will help in this case but if you set the IsBackground property of a thread to true then it should be killed off when the app closes.
  8. http://ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/enu_kbwin32sdk/win32sdk/99261.htm gives you a sample in C, could be converted to C# or VB I suppose
  9. try something like Dim you As New frmSomeForm If someRegValue = 0 Then you.show() ElseIf someRegValue = 1 Then someicon.visible = True End If application.run(you) not near a compiler so I haven't tested it though...
  10. There is a VBComment add-in on http://www.gotdotnet.com (search for the power toys and you'll find it)
  11. have you tried System.Text.Encoding.BigEndianUnicode as the encoding type?
  12. Also you get a more Hierarchical structure, gives more scope for nesting of related items.
  13. richtextbox1.appendtext (environment.newline) richtextbox1.appendtext("Text here")
  14. What is the line of code that is causing the problem?
  15. You may want to look at the WebProxy class, it will allow you to specify a proxyserver for the web request to use the following link may help - otherwisr look for HttpRequest.Proxy in MSDN http://ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpref/html/frlrfsystemnethttpwebrequestclassproxytopic.htm by the way it is pretty bad form to post the same question to nearly every list on the board, people will be more helpful if you don't abuse the forums.
  16. have a look at System.IO.FileStream and System.IO.StreamWriter as good starting points.
  17. IIRC you can use a double & (so && Not) should display as & Not
  18. What exactly where you using the control for? If you just want to drive IE you can reference the SHDOCVW.DLL, if you are trying to access network servers then have a look under System.Net for several useful classes. e.g. WebClient, TCPClient
  19. Do you get the performance difference from VB.Net and VB 6 running from the same machine? Can't see any obvious reason why it should be so slow - also never experienced any delays in using the connect method myself though.
  20. If you are using a dataset for the grid's datasource then it will prompt you with all the datatables it contains. Just point it to the table you want to display i.e. Datagrid1.datasource = ds.Tables("Customers")
  21. ASCX files are designed to be placed within ASPX pages, they are missing several vital HTML tags (, , , ) and as such cannot be rendered by browsers. Using them is a form of code / UI reuse and quite a good practice. Is there any particular reason why you desire to change how things are currently being done?
  22. Only noticed it 'cos it's one of my favorite swear words - handy in all situations
  23. Look at the missing letters - could be a profanity filter on the board
  24. Hashtables don't store the data in an encrypted form, the original data is still there. They are more of a performance thing when searching. Best place to look is System.Security.Cryptography and it's related classes. A good one to look at would be System.Security.Cryptography.RSACryptoServiceProvider http://ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemsecuritycryptographyrsacryptoserviceproviderclassencrypttopic.htm has a little example of how to use it
×
×
  • Create New...