Click here to Skip to main content
15,895,884 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Object variable or With block variable not set. Pin
thedom27-Jan-07 18:23
thedom27-Jan-07 18:23 
GeneralRe: Object variable or With block variable not set. Pin
Christian Graus7-Jan-07 20:22
protectorChristian Graus7-Jan-07 20:22 
GeneralRe: Object variable or With block variable not set. Pin
CPallini7-Jan-07 20:50
mveCPallini7-Jan-07 20:50 
AnswerRe: Object variable or With block variable not set. [modified] Pin
Walter_H8-Jan-07 1:55
Walter_H8-Jan-07 1:55 
GeneralRe: Object variable or With block variable not set. Pin
thedom28-Jan-07 20:41
thedom28-Jan-07 20:41 
Questionabout Stream and seek operations! Pin
dSolariuM7-Jan-07 9:59
dSolariuM7-Jan-07 9:59 
AnswerRe: about Stream and seek operations! Pin
Ed.Poore7-Jan-07 12:08
Ed.Poore7-Jan-07 12:08 
QuestionLaunch a vb.net application from “Windows Explorer” context menu. Pin
R Britz7-Jan-07 9:08
R Britz7-Jan-07 9:08 
I created an application and require the application to be launched from the “Windows Explorer” context menu. I created the context menu with the following code below “Sub AddToContextMenu”

I added the following code into “Sub Main” and “Sub New” (below). I set the start up object to sub main. The good news is that the application does launch from the context menu but it does not pass in the name of the file I want to open with my application.

Please Help.


Private Sub AddToContextMenu(ByVal V_Name As String, ByVal V_Path As String)
Dim regmenu As RegistryKey = Nothing
Dim regcmd As RegistryKey = Nothing

Try

regmenu = Registry.ClassesRoot.CreateSubKey(MenuName)
If Not regmenu Is Nothing Then
regmenu.SetValue("", V_Name)
regcmd = Registry.ClassesRoot.CreateSubKey(Command)
End If
If Not regcmd Is Nothing Then
regcmd.SetValue("", V_Path)
End If

Catch ex As Exception
MessageBox.Show(ex.Message)

End Try


End Sub


#Region "Startup Application"

'The main entry point for the application.
<stathread()> Public Shared Sub Main(ByVal Args() As String)
Dim str_In As String = vbNullString
Try
str_In = Args(0).ToString
Catch ex As Exception
str_In = vbNullString
str_In = "C:\Temp\Error.xls"
End Try

Application.Run(New frm_Main(str_In))

End Sub

Public Sub New(ByVal vals As String)

MyBase.New()

'This call is required by the Windows Forms Designer.
InitializeComponent()

If Not vals = vbNullString Then
Dim frmFileAdd As New frm_FileAdd(vals)

Try
frmFileAdd.ShowDialog()
Catch ex As Exception

End Try

End If

End Sub

#End Region


Veghead
Questiondata is not saved to sql2005 in vb.net2005 Pin
ramugaru7-Jan-07 4:55
ramugaru7-Jan-07 4:55 
AnswerRe: data is not saved to sql2005 in vb.net2005 Pin
Ed.Poore7-Jan-07 6:12
Ed.Poore7-Jan-07 6:12 
QuestionWebBrowser VB.NET Pin
imatureStudent7-Jan-07 1:01
imatureStudent7-Jan-07 1:01 
AnswerRe: WebBrowser VB.NET Pin
MatrixCoder7-Jan-07 6:24
MatrixCoder7-Jan-07 6:24 
AnswerRe: WebBrowser VB.NET Pin
tmaxwell077-Jan-07 6:51
tmaxwell077-Jan-07 6:51 
GeneralRe: WebBrowser VB.NET Pin
imatureStudent8-Jan-07 3:15
imatureStudent8-Jan-07 3:15 
QuestionVisual Basic declaring of Variables Pin
Cereel6-Jan-07 20:56
Cereel6-Jan-07 20:56 
AnswerRe: Visual Basic declaring of Variables Pin
CPallini6-Jan-07 22:16
mveCPallini6-Jan-07 22:16 
AnswerRe: Visual Basic declaring of Variables Pin
Christian Graus6-Jan-07 22:39
protectorChristian Graus6-Jan-07 22:39 
AnswerRe: Visual Basic declaring of Variables Pin
WillemM8-Jan-07 7:35
WillemM8-Jan-07 7:35 
QuestionDifference b/w VB.NET & C# Pin
Rahithi6-Jan-07 17:46
Rahithi6-Jan-07 17:46 
AnswerRe: Difference b/w VB.NET & C# Pin
MatrixCoder6-Jan-07 18:04
MatrixCoder6-Jan-07 18:04 
AnswerRe: Difference b/w VB.NET & C# Pin
Christian Graus6-Jan-07 20:03
protectorChristian Graus6-Jan-07 20:03 
AnswerRe: Difference b/w VB.NET & C# Pin
CPallini6-Jan-07 22:13
mveCPallini6-Jan-07 22:13 
GeneralRe: Difference b/w VB.NET & C# Pin
Christian Graus6-Jan-07 22:55
protectorChristian Graus6-Jan-07 22:55 
GeneralRe: Difference b/w VB.NET & C# Pin
CPallini7-Jan-07 0:33
mveCPallini7-Jan-07 0:33 
GeneralRe: Difference b/w VB.NET & C# Pin
Christian Graus7-Jan-07 9:08
protectorChristian Graus7-Jan-07 9:08 

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.