Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. I think you meant to say Derek and Divil are geniuses, I help out with the easy stuff. I'll test a few thing out regarding you question.
  2. funny thing, before posting this thread, I did exactly the same thing, except that I had placed Dim btn As New Button() inside the loop. thanks divil.
  3. open the IIS Manager (in Admin Tools > Control panel)... click on your server name > Default Web site > right-click on the folder (your project name) > Properties next to Application name, click on Create
  4. but it would still be btn1, btn2 etc... I was thinking something like... btn & i i being an integer
  5. I'm bored and fooling around, anyway.... There have been a few questions today about creating controls at runtime, hence the fooling around. (Did I mention I was bored) The following code creates 3 buttons, but is still hard-coded, there must be a way of making this more dynamic. Any ideas? Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim btn1 As New Button() Dim btn2 As New Button() Dim btn3 As New Button() With btn1 AddHandler .Click, AddressOf btnClick .Text = "button 1" .Location = New Point(0, 50) .Size = New Size(100, 50) End With With btn2 AddHandler .Click, AddressOf btnClick .Text = "button 2" .Location = New Point(0, 150) .Size = New Size(100, 50) End With With btn3 AddHandler .Click, AddressOf btnClick .Text = "button 3" .Location = New Point(0, 250) .Size = New Size(100, 50) End With Controls.Add(btn1) Controls.Add(btn2) Controls.Add(btn3) 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
  6. I would go with SQL Server 2000. Here's some pricing http://www.microsoft.com/sql/howtobuy/production.asp BTW, you should have the MSDE included with .NET, it's a limited version but it's free.
  7. Only "ASP.Net debugging " should be checked, the rest unchecked. Also, open the Web.config file and make sure this line is True... <compilation defaultLanguage="vb" debug="true" /> And are you using CodeBehind?
  8. Do you get an error message?
  9. here's one method... Private Function SetFileValue(ByVal path As String, ByVal fileName As String, ByVal value As String) As Boolean Try Dim sb As New System.IO.FileStream(path & "\" & fileName, System.IO.FileMode.OpenOrCreate) Dim sw As New System.IO.StreamWriter(sb) sw.Write(value) sw.Close() Return True Catch Return False End Try End Function
  10. I hope so. :)
  11. A couple of years ago I read the White Paper that MS released, and yes, I agreed with that statement. I was under the impression that they kept the name just to entice VBers to pickup this new language. If they named it something else, how many of us would've jumped on it. Well I picked it up earlier this year, and I haven't looked back since. Ok I have a used Java and C++ many years ago but never professionally and nothing I can remember. I don't know what that is. I find ASP.NET the easiest thing, I re-code my entire web-site last week. It took less than a week, I made one aspx page and one vb class. The classic ASP version took a month, it had 20 asp files and 20 html files. Once you get the hang of it, you will find it easier and faster as I do.
  12. It took a while but at least now you know a bit more about .net. :)
  13. If you use variables or controls you need to seperate them with the & And notice that Derek and I used single quotes around the strings. 'pruebens' But don't use single quotes with numeric values strSql = "INSERT INTO mytable (column1, column2, column3) VALUE ('" & Textbox1.text & "','" & SomeStringVar & "'," & SomeNumericVar & ")"
  14. Oh, I just realized that you're using COM, just use .. If Not .Fields(.Fields(i).Name).Value = "" Then
  15. Without aspnet_wp.exe .NET cannot attach to the IIS. Is the IIS running?
  16. It's not that there is no data, it's because it's casting during this line... If Not .Fields(.Fields(i).Name).Value Is DBNull.Value Then see if you can get the Length > 0 property instead.
  17. Cool. I think I missunderstood the whole thing.
  18. Not at all, that's all I use. As long as you're able to Handle the click event of the button, the function will run.
  19. A Splash Screen is just a form, create a new form and show it . (ShowDialog)
  20. or open (in .NET) menu item Tools > Options > Projects and Solutions > and change the project location.
  21. Right-click on the shorcut you use to open .NET, > properties > Start In. Place the path of the folder on the server into Start in.
  22. You can map a drive to the server, but you won't be able to view/modify the Solution on 2 PCs at the same time unless you use Source Safe (Source Control).
  23. I didn't suggest any of that because I thought you had apsx file working in the past. Hope it works. The easiest first-step measure is to Uninstall the Framework then re-install it. Not .NET, only the Frmework. And make sure that that IIS is fully functional before you do this.
  24. Name=Psy 123... Is this some text coming for the file? Do you want the Name to be seen as a variable and the Psy 123 to be seen as a value?
  25. There a couple of ways to do this, here's one.... You can place a Timer on the form and set its' Interval to 300000 (5 minutes), each time there is activity by the user, reset the Interval to 300000. If the Timer_Tick event ever occurs that means it hasn't been reset for 5 minutes. When to reset the Timer? Your choice, you can use the mouse move of the form and/or any of the controls.
×
×
  • Create New...