Search results

  1. dynamic sysop

    Programmatically create a progressbar

    you need to change this line ... remove the form1.Left & form1.Top , they reffer to the current screen position of your form, so the Left could already be larger than your Form's width. to this ... progress.Location = New Point((form1.Width) / 2, (form1.Height) / 2) :)
  2. dynamic sysop

    Form.BringToFront() with NotifyIcon DblClick

    why don't you set your Form's WindowState to minimized on form_load & ShowInTaskBar = False , then you change it's state on DoubleClick of the NotifyIcon. like this ... Private WithEvents nIcon As NotifyIcon Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
  3. dynamic sysop

    A simple question..how do I load another form

    Hi Dan :) if you wanna open a form from your main form ( eg : open Form2 from Form1 ) & them to ' talk ' to each other etc... you need to modify the constructor of the other forms ( not the main form you open, just the others ) eg: '/// modify the constructor of the other form ( in this case...
  4. dynamic sysop

    richtextbox vertical scroll problem

    set the Richtextbox's HideSelection property to False
  5. dynamic sysop

    Problem w/Function.. PLEASE HELP

    you are multiplying 1 by 1 ( intFac = intFac * 1 ) is the same as ( 1 = 1 * 1 ) ;) shouldn't it be intFac = i * 1
  6. dynamic sysop

    GUID conversion

    here's a quick thing i knocked together , not sure if it's exactly how you want it, but give it a go ... Dim gu As Guid = Me.GetType.GUID Dim bt() As Byte = gu.ToByteArray For x As Integer = 0 To bt.Length - 2 Dim temp1 As Byte = bt(x) Dim temp2 As Byte = bt(x + 1) Dim str As String =...
  7. dynamic sysop

    how to shutdown computer using vb.net

    you need to use the ExitWindowsEX api , first you will need to check the OS version ( if it's NT based , which XP is anyway ) , here's an example i put together quite some time ago, just dug it up for you. Private Declare Function GetCurrentProcess Lib "kernel32.dll" () As IntPtr Private...
  8. dynamic sysop

    Make form's title bar & taskbar Blink

    use the FlashWindowEx API , here's a quick example i put together for you ... Public Structure FLASHWINFO Public cbSize As Int32 Public hwnd As IntPtr Public dwFlags As Int32 Public uCount As Int32 Public dwTimeout As Int32 End Structure Private Declare Function FlashWindowEx Lib...
  9. dynamic sysop

    winform activate sound recorder

    you can use the mciSendString Api to record sound via a microphone , the api is like this ... Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As Int32, ByVal hwndCallback As Int32)...
  10. dynamic sysop

    Converting from Byte Array

    here's a quick example i knocked together for you ... Dim strtext As String = "some text" Dim bytes As Byte() = System.Text.Encoding.Default.GetBytes(strtext) Dim fStream As New IO.FileStream("C:\testing.txt", IO.FileMode.OpenOrCreate) Dim sStream As IO.Stream = DirectCast(fStream...
Top Bottom