|
I would think that you just pass the Graphics object in the print event args to the Sub that's going to render that particular page. You just have to check for which page your printing to know which Sub to call.
|
|
|
|
|
Thanks Dave, I've tried this in just about everyway that I can think, the problem is that each section could be a number of pages long and it seems that when I pass it as Printing.PrintPageEventArgs so that each sub routine can check to see if there are any more pages using HasMorePages, the event is fired from both within the subroutine and the main PrintPage routine! if I pass it as a Graphics object than there's no way of checking to see if it will fit on one page or how to add one if it needs more (the old VB6 way was easy)
|
|
|
|
|
|
Thanks Duncan - Its taken a while to sort out the logic, but like most things in VB once you have, you wonder why you didn't think of it before. Anyway its all sorted now so thnks for your help.
|
|
|
|
|
does anyone know where i can find a vertical progress bar control or better yet a thermostat control
|
|
|
|
|
See if this helps MSDN[^]
|
|
|
|
|
Graphics Server .NET (GSNetWin Widget)
http://www.graphicsserver.com/[^]
I don't speak Idiot - please talk slowly and clearly
I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury
|
|
|
|
|
ok so im a beginner just started taking classes. but i dont know how to install vb files for controls that ive downloaded.
|
|
|
|
|
Are you wanting to reference the control's DLLs or are you wanting to include the control's source code in your project?
If you want to reference the control, the from the Solution Explorer, Right-click on the Project, select Properties and go to the References tab. There is an add button there, the rest is self-explanitory.
If you have source code, the you can add the control's project (assuming it is in a project of its own), to your solution. Select the File - Add - Existing Project.
If you have only the .VB source code file, I believe you can simply drag the file into your project in the Solution Explorer.
Hope this helps
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
i appreciate the help but im a beginner so i dont understand half the things you said. the file i have is an ocx file what should i do with it
|
|
|
|
|
Delete it?
Regards
David R
|
|
|
|
|
Are you using VB.NET or VB6. OCX files are old technology and would not be a .NET control. If you are using .NET the find an equivent .NET control. If you are learning VB^, don't, it been obsolete since 2002.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
ok thanks i am using vb.net that relives alot of frustration
|
|
|
|
|
Hi all...
I have used a tabcontrol with several tabpages.Each tabpage contains several buttons and textboxes.Buttons are drawn at run-time.
I want to know that how can I access a button drawn on tabpage6 so that I can use a handler for its working.
Suggest me how can I do this.
Thanks.
Gagan
|
|
|
|
|
If you are adding the control at run-time then you must have Dimensioned the control already, so add a handler to the Dimensioned reference of the control. Also see TabControl.TabPages(index).Controls , where index is the number refering to the required tab page.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
how to create the interface between my Smartcard and omnikey card reader in VB
|
|
|
|
|
Creating another account and asking the same question doesn't change the answer.
|
|
|
|
|
i have some code withe winscards dll file .i will like to know how to reference that file in v.b and after referencing it can it help me write and read from the smart card. i am using ominikey reader.Thank you
|
|
|
|
|
You already found the class library someone wrote to work with smart cards. If you can use that library, great. If not, you're going to have to write your own, probably using the library you found as a bit of a guide to doing it.
|
|
|
|
|
hi , how to do the custom deployment of vb.net windows applications project . for example after completing deployment project application , when we install .exe file i want to show two options .custom install
.typical install
please send me step by step how to custom install deployment of vb.net windows application.
|
|
|
|
|
I'd recommend using a more professional Windows Installer creation package, like InnoSetup, or Wise Package Studio, or something else. You're starting to get into customaizations that are either beyond the capabilities of the basic installer project in Visual Studio, or are just too much of a pain to implement in it.
|
|
|
|
|
i cont get correct information , please give how to deploying in windows applications
|
|
|
|
|
In Visual Studio, you'd have to crete the custom form, add it to the dialogs, then write all the code behind deciding what to do and how to do it, then write the Installer script that's going to do the actual file copy and setup.
I can't give you a step-by-step on how to do this in a forum post, because, frankly, it would take up a small book.
I highly suggest picking up a professional install generation package, where most of this stuff is going to be done for you.
|
|
|
|
|
Hi
In my project i will have a progress bar form and then show the new form with out loading time of the new form.Anybody send me a coding or any suggestions to me(The new form loading time is long so will show the progress bar)
Thanks in Advance.
|
|
|
|
|
how about typing "progress bar" in Google's search box? or CodeProject's?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|