Blame | Last modification | View Log
VERSION 5.00Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"Begin VB.Form frmMainWindowCaption = "VNC Viewer Starter"ClientHeight = 3195ClientLeft = 5115ClientTop = 4500ClientWidth = 4650Icon = "frmMainWindow.frx":0000LinkTopic = "Form1"ScaleHeight = 213ScaleMode = 3 'PixelScaleWidth = 310Begin MSComctlLib.ListView ListView1Height = 1350Left = 0TabIndex = 5Top = 465Width = 1395_ExtentX = 2461_ExtentY = 2381View = 3LabelEdit = 1LabelWrap = -1 'TrueHideSelection = -1 'TrueFullRowSelect = -1 'True_Version = 393217ForeColor = -2147483640BackColor = -2147483643BorderStyle = 1Appearance = 1NumItems = 2BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}Text = "Comments"Object.Width = 5292EndPropertyBeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}SubItemIndex = 1Text = "IP-address"Object.Width = 2778EndPropertyEndBegin VNCstarter.jjShadeBox jjShadeBox1Align = 1 'Align TopHeight = 465Left = 0TabIndex = 0Top = 0Width = 4650_ExtentX = 8202_ExtentY = 820ColorA = 12632256ColorB = 12632256BorderColor = -2147483632MakeRegionLines = -1 'TrueBeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyBegin VNCstarter.jjButton jjButton1Height = 375Index = 6Left = 2610TabIndex = 8Top = 45Width = 375_ExtentX = 661_ExtentY = 661BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyjjButtonStyle = 2FocusRectangle = 0 'FalseIconDefault = "frmMainWindow.frx":0442Tooltip = "Quit"EndBegin VNCstarter.jjButton jjButton1Height = 375Index = 5Left = 2205TabIndex = 7Top = 45Width = 375_ExtentX = 661_ExtentY = 661BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyjjButtonStyle = 2FocusRectangle = 0 'FalseIconDefault = "frmMainWindow.frx":059CTooltip = "About"EndBegin VNCstarter.jjButton jjButton1Height = 375Index = 4Left = 1755TabIndex = 6Top = 45Width = 375_ExtentX = 661_ExtentY = 661BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyjjButtonStyle = 2FocusRectangle = 0 'FalseIconDefault = "frmMainWindow.frx":06F6Tooltip = "Configure VNC Viewer"EndBegin VNCstarter.jjButton jjButton1Height = 375Index = 3Left = 1305TabIndex = 4Top = 45Width = 375_ExtentX = 661_ExtentY = 661Enabled = 0 'FalseBeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyjjButtonStyle = 2FocusRectangle = 0 'FalseIconDefault = "frmMainWindow.frx":0850Tooltip = "Click to delete the selected connection"EndBegin VNCstarter.jjButton jjButton1Height = 375Index = 2Left = 900TabIndex = 3Top = 45Width = 375_ExtentX = 661_ExtentY = 661Enabled = 0 'FalseBeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyjjButtonStyle = 2FocusRectangle = 0 'FalseIconDefault = "frmMainWindow.frx":09AATooltip = "Click to edit the selected connection"EndBegin VNCstarter.jjButton jjButton1Height = 375Index = 1Left = 495TabIndex = 2Top = 45Width = 375_ExtentX = 661_ExtentY = 661BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyjjButtonStyle = 2FocusRectangle = 0 'FalseIconDefault = "frmMainWindow.frx":0B04Tooltip = "Click to add a connection"EndBegin VNCstarter.jjButton jjButton1Height = 375Index = 0Left = 45TabIndex = 1Top = 45Width = 375_ExtentX = 661_ExtentY = 661BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}Name = "MS Sans Serif"Size = 8.25Charset = 0Weight = 400Underline = 0 'FalseItalic = 0 'FalseStrikethrough = 0 'FalseEndPropertyjjButtonStyle = 2FocusRectangle = 0 'FalseIconDefault = "frmMainWindow.frx":0C5ETooltip = "Click to start the selected connection"EndBegin VB.Line Line3BorderColor = &H8000000C&X1 = 2160X2 = 2160Y1 = 45Y2 = 420EndBegin VB.Line Line2BorderColor = &H8000000C&X1 = 1710X2 = 1710Y1 = 45Y2 = 420EndBegin VB.Line Line1BorderColor = &H8000000C&X1 = 450X2 = 450Y1 = 45Y2 = 420EndEndEndAttribute VB_Name = "frmMainWindow"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseOption ExplicitPrivate Sub Form_Load()jjShadeBox1.ColorA = &H8000000FjjShadeBox1.ColorB = &H8000000FCall LesFavoritterEnd SubPrivate Sub Form_Resize()Dim I As IntegerI = frmMainWindow.WindowStateIf I <> 1 ThenListView1.Width = frmMainWindow.ScaleWidthListView1.Height = Me.ScaleHeight - 31End IfEnd SubPrivate Sub jjButton1_Click(Index As Integer)On Error GoTo PROC_ERRSelect Case IndexCase 0Shell App.Path & "\vncviewer.exe " & ListView1.SelectedItem.SubItems(1), vbNormalFocus'Shell "explorer.exe", vbNormalFocusCase 1gNyAdresse = TruefrmAddEdit.Show vbModalCase 2gNyAdresse = FalsefrmAddEdit.Show vbModalCase 3Dim f As IntegerDim ret As Integerret = MsgBox("Are you sure you want to remove the addresse?", vbQuestion + vbYesNo + vbDefaultButton2)If ret = vbNo Then Exit SubFor f = ListView1.ListItems.Count To 1 Step -1If ListView1.ListItems(f).Selected = True Then ListView1.ListItems.Remove (f)Next fjjButton1(2).Enabled = FalsejjButton1(3).Enabled = FalseCall LagreFavoritterCase 4Shell App.Path & "\vncviewer.exe", vbNormalFocusCase 5frmAbout.Show vbModalCase 6EndCase ElseExit SubEnd SelectPROC_ERR:If Err.Number = 53 Then MsgBox "Could not open the VNC viewer program.", vbCriticalResume NextEnd SubPrivate Sub ListView1_DblClick()On Error GoTo PROC_ERRShell App.Path & "\vncviewer.exe " & ListView1.SelectedItem.SubItems(1), vbNormalFocusPROC_ERR:If Err.Number = 53 Then MsgBox "Could not open the VNC viewer program.", vbCriticalResume NextEnd SubPrivate Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)If ListView1.ListItems.Count > 0 ThenjjButton1(2).Enabled = TruejjButton1(3).Enabled = TrueEnd IfEnd SubPrivate Sub ListView1_KeyDown(KeyCode As Integer, Shift As Integer)If KeyCode = vbKeyDelete Then jjButton1_Click (3)End Sub