Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Passing custom object to web service Pin
BobsAfro14-May-07 3:53
BobsAfro14-May-07 3:53 
GeneralRe: Passing custom object to web service Pin
nlarson1114-May-07 3:54
nlarson1114-May-07 3:54 
GeneralRe: Passing custom object to web service Pin
BobsAfro14-May-07 3:59
BobsAfro14-May-07 3:59 
QuestionDatagrid dropdownlist, populated from Access database. [modified] Pin
robw188810-May-07 1:06
robw188810-May-07 1:06 
Questionexlude from column ordering a field Pin
sal219-May-07 23:53
sal219-May-07 23:53 
AnswerRe: exlude from column ordering a field Pin
nlarson1110-May-07 4:14
nlarson1110-May-07 4:14 
QuestionTray Icon Pin
nitin_ion9-May-07 22:32
nitin_ion9-May-07 22:32 
AnswerRe: Tray Icon Pin
Sonia Gupta9-May-07 23:35
Sonia Gupta9-May-07 23:35 
Public Class MinimizeInTray<br />
    Public TrayMenu As New ContextMenu<br />
    Public Restorewindowstate As FormWindowState = <br />
FormWindowState.Normal<br />
    Public trayicon As New NotifyIcon<br />
    Public mainform As New Form<br />
    Public visible As Boolean = False<br />
    Sub New(ByVal form As Form, Optional ByVal icontext As String = "", <br />
Optional ByVal icon As Icon = Nothing)<br />
        TrayMenu.MenuItems.Clear()<br />
        mainform = form<br />
        TrayMenu.MenuItems.Add("Restore", AddressOf restore)<br />
        TrayMenu.MenuItems.Add("Close", AddressOf close)<br />
        AddHandler trayicon.DoubleClick, AddressOf restore<br />
        With trayicon<br />
            .Visible = False<br />
            If IsNothing(icon) Then<br />
                .Icon = mainform.Icon<br />
            Else<br />
                .Icon = icon<br />
            End If<br />
            .Text = icontext<br />
            .ContextMenu = TrayMenu<br />
        End With<br />
    End Sub<br />
    Private Sub restore(ByVal sender As System.Object, ByVal e As <br />
System.EventArgs)<br />
        mainform.ShowInTaskbar = True<br />
        visible = True<br />
        trayicon.Visible = False<br />
        mainform.WindowState = Restorewindowstate<br />
    End Sub<br />
    Private Sub close(ByVal sender As System.Object, ByVal e As <br />
System.EventArgs)<br />
        trayicon.Visible = False<br />
        mainform.Close()<br />
    End Sub<br />
End Class

GeneralRe: Tray Icon Pin
nitin_ion9-May-07 23:57
nitin_ion9-May-07 23:57 
GeneralRe: Tray Icon Pin
Sonia Gupta10-May-07 0:10
Sonia Gupta10-May-07 0:10 
AnswerRe: Tray Icon Pin
P P Vilsad10-May-07 17:51
P P Vilsad10-May-07 17:51 
AnswerRe: Tray Icon Pin
kubben10-May-07 4:40
kubben10-May-07 4:40 
GeneralRe: Tray Icon Pin
Sonia Gupta10-May-07 18:05
Sonia Gupta10-May-07 18:05 
QuestionWorkflow Pin
s.a.Rahman9-May-07 21:33
s.a.Rahman9-May-07 21:33 
AnswerRe: Workflow Pin
Christian Graus10-May-07 2:20
protectorChristian Graus10-May-07 2:20 
Questiontotal days in three months [modified] Pin
Sonia Gupta9-May-07 21:32
Sonia Gupta9-May-07 21:32 
AnswerRe: total days in three months Pin
Arun.Immanuel9-May-07 22:51
Arun.Immanuel9-May-07 22:51 
GeneralRe: total days in three months Pin
andyharman9-May-07 23:23
professionalandyharman9-May-07 23:23 
GeneralRe: total days in three months Pin
Arun.Immanuel10-May-07 1:32
Arun.Immanuel10-May-07 1:32 
AnswerRe: total days in three months Pin
Christian Graus10-May-07 2:19
protectorChristian Graus10-May-07 2:19 
AnswerRe: total days in three months Pin
klaydze10-May-07 17:15
klaydze10-May-07 17:15 
QuestionHow to open pdf-file with button Pin
porsti9-May-07 21:30
porsti9-May-07 21:30 
AnswerRe: How to open pdf-file with button Pin
Christian Graus10-May-07 2:21
protectorChristian Graus10-May-07 2:21 
AnswerRe: How to open pdf-file with button Pin
koolprasad200310-May-07 21:21
professionalkoolprasad200310-May-07 21:21 
Questioncrystal reports Pin
Sonia Gupta9-May-07 20:40
Sonia Gupta9-May-07 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.