|
|
looking some1 who can help me in printing reports in landscape(size A4) in vb6
|
|
|
|
|
Hi has some1 ever done a uni project on the subject on vb.net, need some help urgent thanx........
|
|
|
|
|
hi can some1 help me in getting some codes concerning portability of vb.net programs to different computers thanx
Shai
|
|
|
|
|
A .NET program can be run on any computer that has a compatible framework installed. The Mono project[^] supports Linux, Mac OS X, Sun Solaris, BSD and Windows.
---
b { font-weight: normal; }
|
|
|
|
|
I have a problem how to get the current screen resolution
pls help me immmidiately
|
|
|
|
|
Hi,
You can simply get it like this
Dim Resolution As String<br />
Resolution = My.Computer.Screen.WorkingArea.ToString()
Or
Dim x As Integer<br />
Dim y As Integer<br />
x = My.Computer.Screen.WorkingArea.Width<br />
y = My.Computer.Screen.WorkingArea.Height
but note that This property is new in the .NET Framework version 2.0.
Regards,
Chatura Dilan
|
|
|
|
|
vb.net - winforms
MessageBox.Show(Screen.PrimaryScreen.Bounds.Size.ToString())
vb
wid = Screen.Width \ Screen.TwipsPerPixelX
hgt = Screen.Height \ Screen.TwipsPerPixelY
|
|
|
|
|
Sathish, I found another way by your code
I think this support both frameworks 1.1 & 2
wid = Screen.PrimaryScreen.WorkingArea.Width<br />
hgt = Screen.PrimaryScreen.WorkingArea.Height
Regards,
Chatura Dilan
|
|
|
|
|
Thanks alot man!!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
|
Visual basic 2005 Express Edition:
I have a PrintDocument:
Private WithEvents mDoc As New PrintDocument()
I would like to convert it to a Bitmap, so that I can write it out to disk as a JPEG.
How do I convert a PrintDocument to a Bitmap?
|
|
|
|
|
At the end of each "PrintPage()" event you could save the graphics object passes in as a bitmap.
Bear in mind that the bitmap will be paper size (i.e. much bigger than a screen)
Alternatively allow it to print to pdf (using a pdf driver) or take the EMF spool file and preview that with the article/code I submitted to this site last year.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
I can open word document like this
Dim WordApp As New Word.Application<br />
WordApp.Documents.Add()<br />
WordApp.Visible = True
Does anyone know to get or create word documents’s TextChanged event.
Thank you
Regards,
Chatura Dilan
|
|
|
|
|
I am not sure. but I think there is not direct event available.
the only option is to get the file write date&Time (and will occur only when the file is saved) for this two ways
1 is FileSystemWatcher.. check that
2. is to get the lastwrite time .. put this in timer
'
BeforeTime = System.IO.File.GetLastWriteTime(FileName with fullpath)
msgbox (beforeTime)
Rizwan Bashir
|
|
|
|
|
Thanks Rizwan, I'll try
Regards,
Chatura Dilan
|
|
|
|
|
Hi,
Is there any way in .NET language to create a user control which I can use as a Image Editing Canvas? I want a page like canvas on which I can add Text, image, rotate it, resize it and then crop, etc. And finally save the contents of the canvas as an image. Could you please suggest me the approach or any source code?
Thanks
Regards
Anil
|
|
|
|
|
|
Thanks Rizwan. I will check out the information.
|
|
|
|
|
Hi,
I am trying to create a form builder similar to this
http://www.formassembly.com/form-builder.php
First it creates a form. And then it creates sections which are added to the form. And then it creates form elements (Questions) to the sections. I am thinking of doing this using object oriented approach. Is there a specific design pattern that I can follow to code this hierarchy. Please let me know.
Thanks,
Sridhar.
|
|
|
|
|
hi...i hav just one question to ask..
1. how to populate a repeater from array?
2. i had already tried to populate a repeater using arraylist but the prblem is the latest data will overlap the previous data which means in the repeater, it only shows one row of data that is the latest data inserted...
my Question is...how to let the previous data in the repeater remains and the new inserted data will not overlap the previous data and will be displayed below the previous data in the repeater
i hope dat i will get the example of coding..tq so much...
mada mada dane
|
|
|
|
|
Hello:
For past two weeks I am struggling with an issue.
I wrote a VB console application [VB 2005 express]
Every thing is working fine expect the last part
At the end the code suppose to restrict access to a registry key to the “SYSTEM” user
i.e HKEY_LOCAL_MACHINE\Software\ABC_application
DWORD value is “GO”
Data is 3 in hex
I want to restrict “SYSTEM” to ABC_application key, in another words deny access explicitly.
I am referring to ACL permission to registry key, [regedit -> rightclick on regkey…]
Appreciate you help
|
|
|
|
|
Why on earth would you want to do this??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
This is to enforce security of the application. I don’t want any one to change the permission [except Administrator, domain or local].
Especially to prevent abuse from half smart users...
Thanks
|
|
|
|
|
That's nice... Your application won't be able to change anything under that key. This is because the app runs under the security context of the user that launched it.
If you restrict access to that key to only SYSTEM, noone else, including Admins and Domain Admins, will be able to change anything under that key. You will restrict access to the Kernel and only the Kernel! This is of course, unless you change the default restrictions on the Admin accounts.
Does that REALLY sound like a good idea to you?? And does your app's security REALLY need to be that tight?? I doubt it...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|