473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

save window form as file on local C drive

All,

I present some data on the window form, then I try to save window form as
file on the local C drive, like save word file, can anyone know how?

Thanks,
Martin
Dec 6 '07 #1
4 1927
On Dec 6, 9:30 am, martin1 <mart...@discussions.microsoft.comwrote:
All,

I present some data on the window form, then I try to save window form as
file on the local C drive, like save word file, can anyone know how?

Thanks,
Martin
"Save the window form as a file"? Not sure what you mean by that. Do
you mean a visual representation of the form along with all of the
control's current contents? Or save the contents of all of the
controls?
Dec 6 '07 #2
save a visual representation of the form along with all of the control's
current contents.

Thanks

"za***@construction-imaging.com" wrote:
On Dec 6, 9:30 am, martin1 <mart...@discussions.microsoft.comwrote:
All,

I present some data on the window form, then I try to save window form as
file on the local C drive, like save word file, can anyone know how?

Thanks,
Martin

"Save the window form as a file"? Not sure what you mean by that. Do
you mean a visual representation of the form along with all of the
control's current contents? Or save the contents of all of the
controls?
Dec 6 '07 #3
"martin1" <ma*****@discussions.microsoft.comschrieb
save a visual representation of the form along with all of the
control's current contents.
Framework 2.0 and above: use the control's (Form's) DrawToBitmap methood:

Dim bmp As New Bitmap(Me.Width, Me.Height)

Me.DrawToBitmap(bmp, New Rectangle(Point.Empty, bmp.Size))

bmp.Save(...)
Armin
Dec 6 '07 #4
Thank you so much.

Martin

"Armin Zingler" wrote:
"martin1" <ma*****@discussions.microsoft.comschrieb
save a visual representation of the form along with all of the
control's current contents.

Framework 2.0 and above: use the control's (Form's) DrawToBitmap methood:

Dim bmp As New Bitmap(Me.Width, Me.Height)

Me.DrawToBitmap(bmp, New Rectangle(Point.Empty, bmp.Size))

bmp.Save(...)
Armin
Dec 6 '07 #5

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

Similar topics

1
by: Tommy | last post by:
Is it possible to write asp file which create some text file and then save in local drive automatically without human interaction? I haven't any idea. Thx.
2
by: gnv | last post by:
Hi all, I am writing a cross-browser(i.e. 6 and netscape 7.1) javascript program to save an XML file to local file system. I have an xml string like below: var xmlStr = "<?xml version="1.0"...
7
by: Stan Sainte-Rose | last post by:
Hi, How can I save a page loaded with AxWebBrowser into a winform as an htm page ? Stan
11
by: Thomas Magma | last post by:
I have a simple JavaScript application that will generate some text type data for the end user. Is it possible to have a button that will allow them to save this information to a text file? ...
0
by: Hexman | last post by:
Hello All, Its a bit more complicated than the subject line implies. A website that I use for information allows me to click on a link and their .PDF displays in IE's browser window.. Since...
0
by: Hexman | last post by:
Hello All, Its a bit more complicated than the subject line implies. A website that I use for information allows me to click on a link and their .PDF displays in IE's browser window.. Since...
6
by: greg_e | last post by:
Is there a way to create a form in a local html file where the contents of the form are written to a local file when a 'save' button is selected? It would be nice if it was as easy as changing...
3
by: S_K | last post by:
Hi, I have a problem when I try to save a .CSV file from an ASP.NET web page and the client has Excel open already. The symptoms are: 1) The web page is currently displaying the Excel...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.