473,657 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send to VB.NET program?

I have a program that I can drag and drop files to. I would also like to
add this to the sendto menu so that users could right click a file and
choose to "send to" my program. My only problem is I have no idea what
event to handle in my program to accept the "send to" action.

Any help, suggested reading or examples is greatly appreciated!

Thanks,
Ben
Nov 21 '05 #1
6 2384
On Tue, 26 Oct 2004 15:16:41 -0500, Becker wrote:
I have a program that I can drag and drop files to. I would also like to
add this to the sendto menu so that users could right click a file and
choose to "send to" my program. My only problem is I have no idea what
event to handle in my program to accept the "send to" action.

Any help, suggested reading or examples is greatly appreciated!

Thanks,
Ben


When a file is "sent to" your application, your application is just started
with the name of the file passed into the command line. The only thing you
need to do is to check the command line when the app is started for the
name of the file to process. The other step is to add a shortcut to your
app to the Send To folder of the user in question.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #2
On Tue, 26 Oct 2004 15:16:41 -0500, Becker wrote:
I have a program that I can drag and drop files to. I would also like to
add this to the sendto menu so that users could right click a file and
choose to "send to" my program. My only problem is I have no idea what
event to handle in my program to accept the "send to" action.

Any help, suggested reading or examples is greatly appreciated!

Thanks,
Ben


When a file is "sent to" your application, your application is just started
with the name of the file passed into the command line. The only thing you
need to do is to check the command line when the app is started for the
name of the file to process. The other step is to add a shortcut to your
app to the Send To folder of the user in question.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #3
Chris,

That is what I'm not sure how to do. Do I do that on the form load event?
and if so, what class am I checking?

Thanks,
Ben

"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcg lobal[dot]]net"> wrote in
message news:1t******** *************** *******@40tude. net...
On Tue, 26 Oct 2004 15:16:41 -0500, Becker wrote:
I have a program that I can drag and drop files to. I would also like to
add this to the sendto menu so that users could right click a file and
choose to "send to" my program. My only problem is I have no idea what
event to handle in my program to accept the "send to" action.

Any help, suggested reading or examples is greatly appreciated!

Thanks,
Ben


When a file is "sent to" your application, your application is just
started
with the name of the file passed into the command line. The only thing
you
need to do is to check the command line when the app is started for the
name of the file to process. The other step is to add a shortcut to your
app to the Send To folder of the user in question.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Nov 21 '05 #4
Chris,

That is what I'm not sure how to do. Do I do that on the form load event?
and if so, what class am I checking?

Thanks,
Ben

"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcg lobal[dot]]net"> wrote in
message news:1t******** *************** *******@40tude. net...
On Tue, 26 Oct 2004 15:16:41 -0500, Becker wrote:
I have a program that I can drag and drop files to. I would also like to
add this to the sendto menu so that users could right click a file and
choose to "send to" my program. My only problem is I have no idea what
event to handle in my program to accept the "send to" action.

Any help, suggested reading or examples is greatly appreciated!

Thanks,
Ben


When a file is "sent to" your application, your application is just
started
with the name of the file passed into the command line. The only thing
you
need to do is to check the command line when the app is started for the
name of the file to process. The other step is to add a shortcut to your
app to the Send To folder of the user in question.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Nov 21 '05 #5
VJ
you should check the arguments in the SubMain function... Then call your
program.. See below for a template..This should work...

Private strArg1 As String

Public Sub Main(ByVal agrs1 As String)
Application.Run (New Form1(agrs1))
End Sub
#Region " Windows Form Designer generated code "

Public Sub New(ByVal arg1 As String)
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeCompo nent()

'Add any initialization after the InitializeCompo nent() call

End Sub

#end region
Private Sub Button1_Click(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Button1.Click

MsgBox(strArg1)

End Sub

VJ
(please do check for syntax and typos!!)

"Becker" <be*@benbecker. net> wrote in message
news:up******** *****@TK2MSFTNG P15.phx.gbl...
I have a program that I can drag and drop files to. I would also like to
add this to the sendto menu so that users could right click a file and
choose to "send to" my program. My only problem is I have no idea what
event to handle in my program to accept the "send to" action.

Any help, suggested reading or examples is greatly appreciated!

Thanks,
Ben

Nov 21 '05 #6
VJ
you should check the arguments in the SubMain function... Then call your
program.. See below for a template..This should work...

Private strArg1 As String

Public Sub Main(ByVal agrs1 As String)
Application.Run (New Form1(agrs1))
End Sub
#Region " Windows Form Designer generated code "

Public Sub New(ByVal arg1 As String)
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeCompo nent()

'Add any initialization after the InitializeCompo nent() call

End Sub

#end region
Private Sub Button1_Click(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Button1.Click

MsgBox(strArg1)

End Sub

VJ
(please do check for syntax and typos!!)

"Becker" <be*@benbecker. net> wrote in message
news:up******** *****@TK2MSFTNG P15.phx.gbl...
I have a program that I can drag and drop files to. I would also like to
add this to the sendto menu so that users could right click a file and
choose to "send to" my program. My only problem is I have no idea what
event to handle in my program to accept the "send to" action.

Any help, suggested reading or examples is greatly appreciated!

Thanks,
Ben

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
32630
by: BadOmen | last post by:
I want my program to send a mouse click to the window at the current mouse position, how do I do that? Example: I have my mouse over a button in Word and then my program is sending the left mouse click and the button under the mouse is clicked. Yours, Jonas
0
913
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it has data send to server. 2. Client send the buffer block size. 3. Client send the actual buffer to the server. 4. Server send a flag 1 to client indicating that the buffer has been successfully receeived. 5. The next loop until all data of the...
3
9112
by: Sara | last post by:
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could anyone help me and guide me, I wrote a program which could open COM port but still couldn't detect mobile phone and send SMS through it. I searched internet and I didn't find right answer to my question. please if anyone could guide me. the...
15
8584
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows Explorer? I want the user to click a button and it lunch the users default email client and put the contents of a multi line text box in the body of the message and the contents of another text box in the title box and be sitting there read for...
3
2661
by: growse | last post by:
Right, I've got a 2 c# programs here. Lets call them A and B. My aim is to send a simple string from B to A. A is always running. I've overridden the WndProc method to give me messages that are sent to it. B is a program that loads, sends a message and then quits. Let me give you the code to B (bits are missed out, but I've got the important stuff there): private const uint WM_USER_SENDTEXT = 0x8001;
3
4291
by: BuddyWork | last post by:
Hello, Could someone please explain why the Socket.Send is slow to send to the same process it sending from. Eg. Process1 calls Socket.Send which sends to the same IP address and port, the receiver is running within Process1. If I move the receiver into Process2 then its fast. Please can someone explain.
0
3248
by: Atenza | last post by:
Hi all, I develop an VB6 program to send email by using CDOSYS.DLL. It works fine as follow: Dim iMsg As New CDO.Message Dim iDsrc As CDO.IDataSource Set iDsrc = iMsg ' (QueryInterface) Dim iConf As New CDO.Configuration Dim Flds As ADODB.Fields
14
2282
by: Professor Yonce | last post by:
I have made form for E-Mail. I have entered code but the Import system does not work. It has squiggly line underneath it showing it is not communicating. It Will not build. Public Class Form3Bio1 System.Net.Mail.SmtpClient Imports System.Net.Mail ' This line before ' does not work. I have the rest of code to try if and when I am able to get System working. ' I XXX out certain entrys below just for this publication.
5
4954
by: Mirxon | last post by:
Hello, I'm working on a C program under Ubuntu. It's basd on socket. Browser calls a client cgi (C program), and send some parameters to server (C program). Server runs another program (ooimpress, open office ppt), and translate the commands from client to a key event, and send it to child process. For example.
6
6650
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send '%' to serial port and make sure it reached the serial port. 2. Once confirmed, send another character.
0
8384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.