Some .net Develop Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, all

I hope somebody can help me on these, i'm now at dead end in my project. =

1. I'm writing a Windows application, and assume that there are a button and a textbox in the form. Now i hope i can use that button send the text in the textbox to another application, such as word, notepad. Is it possible that to send other object, for example, Bitmap?

2. Now i have my application AllowDrop on form. Can i drag the some object from Word, let's say a Bitmap Object, how should i handle my code to accept the object and show the Bitmap on my application?

3. I got read some article said that it is possible to put Windows Form(.exe), which written in .net, to the browser and allow user to execute it using activeX, can i know how to archieve this?

4. Maybe i should not put this question here, but may i know if i would like to create an object which is able to recognized by MS Word, let say a Microsoft Equation 3.0 Object, can i know how is that object being construct, or maybe when i copy my object from my application, how can i set this object as a Microsoft Equation 3.0 Object, so that MS Word will use the equation editor to open it

Thanks in Advanced

Regards
KL
 
I think you should focus on moving data around instead of moving objects. It
is conceptually easier that way and much cleaner to program. For example, if
you want to drag and drop something on a form, then you trap the appropriate
events (ondragenter,ondragend etc) and you read the data and write the data
to your target. It makes no difference what the object is once you have a
clean way of extracting the data out of the object for the start operation
and reconstructing it back at the end.

To move data around, you have a variety of options. You can use the system
clipboard or a webservice, textfile or remoting to get data from one place
to another

The technique of automating a windows control in a webform is called
hosting. This week I've written some code in the aspnet framework group to
do just that. Have a look

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
KL said:
Hi, all.

I hope somebody can help me on these, i'm now at dead end in my project. =(

1. I'm writing a Windows application, and assume that there are a button
and a textbox in the form. Now i hope i can use that button send the text in
the textbox to another application, such as word, notepad. Is it possible
that to send other object, for example, Bitmap?
2. Now i have my application AllowDrop on form. Can i drag the some object
from Word, let's say a Bitmap Object, how should i handle my code to accept
the object and show the Bitmap on my application?
3. I got read some article said that it is possible to put Windows
Form(.exe), which written in .net, to the browser and allow user to execute
it using activeX, can i know how to archieve this?
4. Maybe i should not put this question here, but may i know if i would
like to create an object which is able to recognized by MS Word, let say a
Microsoft Equation 3.0 Object, can i know how is that object being
construct, or maybe when i copy my object from my application, how can i set
this object as a Microsoft Equation 3.0 Object, so that MS Word will use the
equation editor to open it.
 
Hi, Alvin
Thank A Lot for your advices
But may i know what format is the most common used to copy to clipboard?
Can i, for example, this is a BitMap object, and i copy to clipboard as a Encode Tex object or what? But if i drag back from Word to my Application, is it also work?? Thanks

By The Way, any idea on converting the exe file to an ActiveX control
Thanks

Regards
KL
 
the clipboard is actually an OLE object left over from the win32 world,
there are functions in there to convert to text.

you will need to build an activex control and port the code into the
control. I am not aware of any tool which can do this conversion

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
KL said:
Hi, Alvin.
Thank A Lot for your advices.
But may i know what format is the most common used to copy to clipboard??
Can i, for example, this is a BitMap object, and i copy to clipboard as a
Encode Tex object or what? But if i drag back from Word to my Application,
is it also work?? Thanks.
 
Back
Top