Hello,
I'm writing a procedure to print a text using PrintDocument class. If a line exceeds paper width, I would like a text to continue in the next line, which doestn't happen by default. How can I achieve this?
Thank you
Mangro
Hi!
If UseSystemPasswordChar property is set to True on the TextBox and CapsLock is on, then the balloon with CapsLock warning is displayed when the textbox receives focus. Is there a way to stop showing this warning?
Thank you
Mangro
Hi!
I created a control that I will use as keys for keyboard for touch screen. The problem I have is how not to take focus away from for instance textbox, when this control is clicked (like label control).
Thank you
Mangro
Hello!
This is my problem:
If I execute command like this from shell:
shell>mysql -uuser -ppassword < c:\MyFile.sql
it executes ok, but if I put such command into a desktop shortcut on a windows machine, it does not (instead help is displayed for command-line arguments).
How do I make it...
Hi!
I'm developing my first app in VB.NET using VS2005. I'm using the Settings designer feature for saving some settings. As I understad, these setting are saved into a .config file. User can then change some of these settings.
For deployment I created a Setup project. When testing deployment...
I'm trying to create a procedure to search DataGridView. I would like a program to select all rows, where search string is found.
Is it possible to select multiple rows in datagridview through code since the SelectedRows property is read only?
Thank you, Mangro
Hi!
I need to write a procedure that will query a large txt file. I found out that this can be done using ADO, but I only found a way of doing this with delimited file. Is there a way to achieve the same with fixed length txt file. The problem is obviously how to tell the recordset where one...
Hi, all!
In my app a user can import a file from a specific location using Save As common dialog. If a file selected is on floppy drive, then when a program tries (later in time) to open ado connection to a mdb, which is on a local hard disk, it tries to access floppy drive. If a diskette is...
Hi!
With the DrawText API one can draw a text inside a rectangle but it can only be centered vertically if printed in single line (DT_SINGLELINE Or DT_VCENTER). If the text is wrapped into multiple lines, it gets displayed at the top of the rectangle no matter what value is assigned to wFormat...
Hi,
I would like to change the number of characters the field in Access table can accept. Now it is set to 30, I want to set it to 200. I tried
Dim cat as new adox.catalog
dim tbl as adox.table
dim col as adox.column
set cat.ActiveConnection=MyConn
set tbl=cat.Tables("MyTable")
set...
Hi!
Is it possible (and how) to change the folder, the PDW suggests by default when installing VB app? Now it defaults Program files\AppName, but I would like to change that.
Thank you
Mangro
Hi
I'm printing some text on POS printer using batch program (copy File.txt LPT1 or COM1 (if serial printer) or NetworkPrinter). It works fine but I don't know how to detect if printer is ready (turned on, has paper,...). Is it possible to get this info prior to send data to printer?
Thank you...
Hi,
is it possible to determine the number of pages to be printed before using DataReport.PrintReport?
Namely, what I need to do is I need to set the top margin for the first page to some value and top margin for the remaining pages to another value. I was thinking I could first print page 1...
Hi,
this is driving me nuts. I have a bound datagrid. The record source is a query with 4 tables included. User should be allowed to change data in some fields (all from only one of those 4 tables). At first, I got error message saying Insufficient key information for updating or refreshing...
Hi,
how can I tell the printer which font to use when printing text in a rich textbox control? I need to print with one of those fonts, where all the characters have the same width. When using the SelPrint method, the printer font isn't the same as in the rich textbox control. Any ideas?
Thank...
Hi all,
I've found a few threads about this but they were not answered, so I hope I will have more luck. When printing longer .txt files (longer means 30 lines of text) to a serial pos printer, only few lines of text are printed correctly then it all gets messed up and not everything is even...
Dear friends,
is it possible to know, whith which mouse button the column header of a data grid was clicked (in the HeadClick event). Or, if someone has a better idea to achieve sorting in a grid. My idea is, if a user clicks left button it means ascending order, and if clicks right button, it...
Hi,
how do I set the required property of a text field in Access database to false. I found info in another thread that suggests using
Column.Attributes=adColNullable
but I get an error message saying "The parameter is incorrect."
I need it when appending a new field to a table...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.