By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,685 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

save window form as file on local C drive

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.