Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Could you show hte code you are using? Just tried the following in a button click event and it worked without any problems. Dim t As New TextBox t.BackColor = Color.Beige t.Visible = True Me.Controls.Add(t)
  2. System.IO.File.Delete("c:\test.rtf") should do the trick - just replace the filename with the name of the file you want to delete.
  3. ASP.Net code does get compiled to MSIL which is compiled to actual machine code the first time the page is accessed. The raw source code does not need to be deployed to the server.
  4. Just as a quickie in C# (2003 anyway) if you start to type a variable or classname hit CTRL+space to autocomplete the word.
  5. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=77745&highlight=network+permissions
  6. Password protected screensavers don't really work under XP (or any NT based OS) - when the screensaver kicks in it simply locks the workstation - they will just need to provide their name and password to unlock. Not sure if you can intercept CTRL+ALT+DEL under NT anyway (or at least not without creating very low level kernel handlers).
  7. Code behind seperates the code from the interface - makes it easier for different teams to work on both parts, easier to work with source code control as well. Also the IDE supports code-behind much better (auto-complete, tooltips etc.) I personally can't think of many reasons to go with inline code rather than code behind.
  8. Keeping the layers seperate can definately have it's advantages - easier maintenance for one. Could you not put the CBrowserDetection class into it's own DLL and just reference that from both the Data Layer and the business layer?
  9. The problem is what order should they be built in. If the business layer depends on the data layer then the data layer needs to be built first. If the data layer depends on the business layer then the business layer needs to be built first. If they depend on each other - problem. What are the dependencies between the two layers and could this not be seperated out into a classlibrary of it's own?
  10. BDEV\IWAM_CORPDEV1 - Domain = BDEV, IWAM_CORPDEV1 - usser account NTLM - Logged on via NT LanManager authentication. 2808 - The token for the logon session.
  11. Any chance you could post the code?
  12. Very minor changes indeed - does have a certain 'similarity'.
  13. As Robby said - the function is expecting 2 parameters obj and e - you are providing neither. Then again the Sub doesn't seem to need them - just change the declaration to sub CheckUser()
  14. You could use a grid control. 13,000 items in a listbox does seem a bit excesive though. Could the list not be structured another way? Maybe a couple of listboxes one for category allowing for drill down.
  15. Is this a Web control?
  16. Dim s as string = "test String" MessageBox.Show (s.Substring(1,2)) would be the equivalent of Left$ - by using different parameters for the .SubString method you can acheive the same as Left$, Right$, mid$ etc.
  17. When you are restoring the database does Enterprise manager have any part of the Database open? Also if you are restoring from Query Analyzer - are you in the database itself?
  18. try MediaPlayer.settings.setMode("loop", True)
  19. You would need to port the code. There is a migration wizard as part of VB.Net but it is almost useless. A redesign and rewrite of the code is nearly always the best solution.
  20. Afraid not, VB only supports the ' or REM command both of which comment to the end of the line. Then again VB still doesn't have multi line comments either
  21. Personally I found that when I first started to learn VB.Net I was always thinking VB6, I approached problems with a VB6 mentality and my code ended up sprinkled with Format$ , Left$ , Chr$ , MsgBox etc. Switching to C# just made me think in a more .Net way. Now I find either language pretty similar and once you know your way round the framework the differences are almost negligible.
  22. Quick re-hash of mutans suggestion follows.... Private Overloads Sub createNew(ByVal text As String, ByVal number As Integer, ByVal buttonSelected As System.Windows.Form.Button) 'do whatever you need to when the button is instance is passed in End Sub Private Overloads Sub createNew(ByVal text As String, ByVal number As Integer) 'Call the full method but provide a default button parameter createNew (text, number, new button) 'Replace the last parameter with whatever the default should be End Sub
  23. Nothing to do with Group policy but installing a Proxy server would cover both issues. The Proxy could have a list of acceptable / banned sites and would log all access (attempted or succesful).
  24. PlausiblyDamp

    Ping

    As Derek pointed out above (more correctly than I did ;) ) the System.Net stuff is part of System.DLL you only need to reference System.dll. There is no need to reference System.Net.dll. Just remove the ;System.Net.Dll bit from your command line call to the compiler.
  25. When it raises the error what are the values of the variables grade1 and grade2?
×
×
  • Create New...