Jump to content
Xtreme .Net Talk

Derek Stone

*Gurus*
  • Posts

    1910
  • Joined

  • Last visited

Everything posted by Derek Stone

  1. You're either not providing the correct arguments or providing too many. Why are you using COM anyway?
  2. Man... woman... dog... what's the difference... ;)
  3. And "grouped text" is... ?
  4. I've never read a book or tutorial on programming before, as I learn quite differently than most. I'm going to be of no help.
  5. Add the Windows Media Player control to your toolbox.
  6. Make a call to Marshal.AllocHGlobal which will return an IntPtr to a memory location. Call Marshal.Copy to transfer the managed byte array to unmanaged memory. Then call .ToInt32 on the IntPtr to convert the pointer to an integer that GetJob will recognize. Finally unallocate the memory using Marshal.FreeHGlobal. Catch all that? ;)
  7. Microsoft can call it whatever they want. That's partly what it's there for (it obviously also serves as the runtime).
  8. System.Runtime.InteropServices.Marshal.GetLastWin32Error
  9. We all grew to like the cheap crap VB6 gave to us. I stress "cheap crap". :)
  10. The Add method of the Items collection takes an Object type, in other words anything. Create a class that is able to hold the data that you need for each item and add that to the Items collection instead of a string. Just make sure the class overrides ToString, as that is what will be displayed in the ListBox/ComboBox.
  11. Dim dtNow As DateTime = DateTime.Now Dim dtLater As DateTime = dtNow.AddDays(1) Dim tsDiff As TimeSpan = dtLater.Subtract(dtNow) MessageBox.Show(tsDiff.ToString(), "")
  12. The easiest method would consist of reading the file in line by line and calling String.Split(). You could easily produce a 2-dimensional array using this method.
  13. TextBox1.Text = Result.ToString()
  14. Dim i As Int32 = 32000, ii As Int32, c As Int32 Dim b As Byte() = System.BitConverter.GetBytes(i), bb As Byte() : ReDim bb(3) bb(0) = b(3) bb(1) = b(2) bb(2) = b(1) bb(3) = b(0) ii = System.BitConverter.ToInt32(bb, 0)
  15. In the words of divil, can you be less vague?
  16. I have to ask, what are you using this for? It's rare to see a value in big-endian format.
  17. Public Sub ShowMyDialogBox() Dim testDialog As New Form2() ' Show testDialog as a modal dialog and determine if DialogResult = OK. If testDialog.ShowDialog(Me) = System.Windows.Forms.DialogResult.OK Then ' Read the contents of testDialog's TextBox. result.Text = testDialog.TextBox1.Text Else result.Text = "Cancelled" End If testDialog.Dispose() End Sub 'ShowMyDialogBox You can set the value of DialogResult in the properties of each of the dialog's buttons.
  18. Build equates to the number of days since Janurary 1, 2000 and revision the number of seconds since midnight. Since you want a strict "up by one" increment you could code a simple function that keeps track of the number of builds in a text file or the registry by increasing the counter in Sub Main or the form's load event. Of course this would require an addition to each project.
  19. You either need to set the FormBorderStyle property to None or set ShowInTaskbar to False.
  20. Microsoft didn't get rid of it. You just didn't look hard enough. Open the project's AssemblyInfo.vb file and look towards the bottom.
  21. Make sure you have the build configuration set to release.
  22. In cross-page links anchors don't work as they should (at least in IE). The best suggestion I can offer to you is to keep the page-length relatively short, so the user doesn't have to scroll.
  23. http://www.fawcette.com/vsm/2002_03/magazine/columns/qa/list2.asp
  24. Dim s As Socket If server.Pending = True Then s = server.AcceptSocket() End If Put that in a loop.
  25. The OnChanged method of the System.IO.FileSystemWatcher class might also be a big help to you.
×
×
  • Create New...