Jump to content
Xtreme .Net Talk

IcingDeath

Avatar/Signature
  • Posts

    32
  • Joined

  • Last visited

Everything posted by IcingDeath

  1. Dim DS As DataSet Dim Table As DataTable Dim R As System.Data.DataRow Dim DV As DataView Table = New DataTable("My Table") Table.BeginLoadData() With Table.Columns.Add("String Column", GetType(String)) .DefaultValue = "" .ReadOnly = False ' Optional... had it to true End With With Table.Columns.Add("Integer Column", GetType(Integer)) .DefaultValue = 0 .ReadOnly = False End With Dim i As Integer For i = 1 To 10 R = Table.NewRow R(0) = "Bla bla bla" R(1) = i Table.Rows.Add(R) Next Table.EndLoadData() DV = New DataView(Table) DataGrid1.DataSource = DV This works....
  2. Are you calling base class events after you are done painting things? ---- Edit Yep, you are...
  3. Private Sub CheckDate(ByVal MyDate As Date, ByRef MyVar As Double) If MyDate.Hour >= 15 And MyDate.Hour <= 18 Then MyVar = 1.5 End If If MyDate.Hour > 18 And MyDate.Hour <= 21 Then MyVar = 0.09 End If End Sub Usage: Dim D As Date = #1/1/2005 4:53:00 PM# Dim TestVar As Double CheckDate(D, TestVar) Debug.WriteLine(TestVar) Dont worry I wont bite :)
  4. Right click on the toolbox (thingie on the left usually) and click add/remove items. Select the COM Components property page and somewhere in the list find Microsoft Web Browser and Check it. Press ok and a globe like icon should be added at the bottom of your toolbox. Just click on it and place it on a form. BTW, I think web browsers tend to be a bit cliche :P
  5. I would also like to say that this: is totally stupid (I took it from MSDN). I was never using the file listbox thing in VB6 since it was very ugly but i was hoping to find an improved equivallent in .NET Oh and I have .NET 2003 :)
  6. Here is the thing... I need some sort of control to display files and folders as they are displayed in explorer. I tested the web browser control like this AxWebBrowser1.Navigate2("C:\") and it works fine. I am just wondering if there is a way to make the control display its toolbar (explorer like) or if not, how can i make it change its view to details (I can do this by right clicking on empty space and going to View-> Details, but i need to do it programmaticaly). I searched the internet for related articles but came up with nothing and that makes me curious as to why noone has written anything about this yet. I am developping for XP pro. Thanks for your time guys....
×
×
  • Create New...