Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. I heard it's going to cost $25. ??
  2. Are any of you gonna pick it up?
  3. Yeah, and it will only tell you when you try and compile, and as I said earlier, the blue error line will still be there after you have fixed it.
  4. I barely use design-time controls (I mostly do everything at runtime). Can you Zip the entire solution and post it here?
  5. Are you placing the controls (buttons) at design-time or run-time? Are any of them displayed?(which ones)
  6. Yeah, Ctrl-Space will complete the word, but at least in VB when you move off the line, it will correct the case as well as the indents, C# does not. Also, if you have compile errors in C#, then as you fix those errors, the blue line is still there (until you recompile). Oh, one thing I do prefer in C# is that it will point out (blue line) unused variables.
  7. I just tried it and it worked, can you post your routine.
  8. The Intellisense in C# is not as intelligent as in VB.NET. You need to pay more attention as you type.
  9. Try...(no casting needed) ListBox1.SelectedValue
  10. Datahighway, Your solution was correct, you forgot to include the Imports. If you look closely, I copy/pasted your code.
  11. I think so.
  12. Without any facts, I would guess the compiled .NET DLL would be faster.
  13. The easiest/fasted thing you can do is Uninstall the Framework, then re-install it. (not .NET only the Framework). It only takes a couple of minutes. (20 megs) If that doesn't work, let us know.
  14. In case you're not sure of which libraries to import... Dim tcpClient As New System.Net.Sockets.TcpClient() Dim myIP As System.Net.IPAddress = System.Net.IPAddress.Parse("192.168.0.254") Try 'You can change the Port 80 to whatever port you wish to hit (i.e.8080) tcpClient.Connect(myIP, 80) MessageBox.Show("Ping is OK") Catch err As Exception 'Do what you want in here if the ping is unsuccessful MessageBox.Show("Ping is not OK") End Try
  15. Place a Try/Catch in your function and see what the Exception is.
  16. You can do this... PlaceHolder1.Controls.Add(New LiteralControl("<body bgcolor=#F8FFBF>")) or just send any HTML tag within a control... Label1.text = "<table width=600 style='color: #000080'><tr><td><b>Some Text</b></td></tr><table>"
  17. http://www.asp.net also has some articles and samples. (mostly novice though)
  18. Did you run the apps more than once? Because the first time it's run it will recompile. The second time should be faster.
  19. For ASP... 'top of page, inside your class... Private Panel1 As New System.Web.UI.WebControls.Panel() Private PlaceHolder1 As New System.Web.UI.WebControls.PlaceHolder() Private button1 As New System.Web.UI.WebControls.Button() Private label1 As New System.Web.UI.WebControls.Label() 'inside your Page_Load event... Controls.Add(PlaceHolder1) PlaceHolder1.Controls.Add(Panel1) Panel1.Controls.Add(label1) Panel1.Controls.Add(button1) 'then you can format the controls once they are added to the form
  20. Since this was in Windows Forms, here's an example.... Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim btn As New Button() Dim i As Integer For i = 1 To 10 btn = New Button() With btn AddHandler .Click, AddressOf btnClick .Text = "button " & i .Location = New Point(0, i * 60) .Size = New Size(100, 50) End With Controls.Add(btn) Next End Sub Private Sub btnClick(ByVal sender As Object, ByVal e As EventArgs) MessageBox.Show("You clicked ... " & DirectCast(DirectCast(sender, Button).Text, String)) End Sub
  21. "Compare with ASP (not ASP.NET), I still can use DLL in ASP." It is very easy in ASP.NET. " For code behind, we need to use Web Control, it definitely slower than HTML Form control." Code-Behind and Web Controls don't go hand-in-hand, you can use one without the other.
  22. Or even a choke spot on the network.
  23. Wouldn't it run better and faster if the exe was installed locally in each machine?
  24. Well, start by commenting the code in chuncks and find the lines causing the errors.
  25. I'm guessing that most of the controls are placed on your form in the aspx page.
×
×
  • Create New...