|
If after a couple of weeks/years/whatever you run out of buffer space to
prefix the new data to existing data, then read this article.[^]
|
|
|
|
|
I have an Access data table configured to accept null values. I have a table adapter that allows null values. When I try to INSERT a null value into a field, I get a type conversion error. It doesn't matter whether the type of the field is string or numeric.
This test will give the error:
tableAdapter.Insert(DBNull.Value,...)
It would be best to allow null values in the table, and not have to convert to empty strings and zeroes.
|
|
|
|
|
Have you figured it out or is it still a problem?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hi there,
Is there a way to determine if windows are shutting down in a VB application?
Thanks, Werries
A programmer's life is good... or is it?? Ek dink nie so nie!
|
|
|
|
|
i believe windows executes a batch file to initialise shutdown sequence, perhaps you could use the filewatcher to monitor this file for changes, then if something happens with it, check if the shutdown process in is started through system.diagnostics.process.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
Have a look at SystemEvents class.
|
|
|
|
|
hi
you can use ghedit.msc and scrip to determine when windows are shutting down.
goto :
Run -> gpedit.msc -> computer configuration -> windows setting -> scripts ->shutdown.
and then add your vb script that you want to run at shutdown.
|
|
|
|
|
Hi everybody
the situation is that an application contains many richtextbox objects and user enters rich text data in them which is stored into sql database (contants from rt1.rtf).
Now my task is to display that data into a crystal report. when i drag this field (type of this field is text) onto the report it displays all rtf header information as well instead of formating the actual data
Please give me any suggestion you have about it
Regards
Salman Sheikh
|
|
|
|
|
Hi,
I've managed to connect to an Informix database to display the contents of a specific table in a DataGridView.
What I am struggling with is getting the table and fields names from the database, and putting the information into a TreeView so that the user can select the table in the tree, and update the grid with that selected table - but I can't seem to get it to collect the schema information.
Ideally, I'd like to have the first node on the tree as the database name, followed by nodes for the table name, and then nodes for the field names.
Could anybody point me in the right direction?
|
|
|
|
|
Hi
I'm busy with an app that interfaces with the Parallel Port.
I want to create a graphic sort of display on my form that looks similar to the actual layout of the DB-25 connector.
I thought of using Radio Button to either display the input condition, or to toggle the condition of the outputs (Data Pins)
Is there a way to make these buttons independent of each other (i.e. so that clicking one of them does not turn the others off)
I though I may be able able to use something like e.handled in the 'Click Event', to prevent the others from tuning off when I click one of them, but no such luck.
Basically I want to be able to set or clear any combination of these buttons for the output pins, and also control the appearance of them depending on the port's input conditions.
Any other way I can do this? I could use panels, and toggle the pin and the color when clicked, but don't like the rectangles.
|
|
|
|
|
RadioButtons work together, unless you put them in different Containers;
keeping them apart is the primary purpose of the GroupBox.
|
|
|
|
|
Hi
Yep I get that, what I'm asking is:
If I can do something to make them independent
OR
What else can I use that will look SIMILAR...
|
|
|
|
|
if you have two radiobuttons rb1 and rb2 both on panel0,
you could create two more panels (panel1 and panel2), put rb1 on panel1,
put rb2 on panel2, put both panel1 and panel2 on panel0, and arrange it
such that it looks exactly as before.
rb1 and rb2 now should word independently (you better have more RadioButtons then!)
|
|
|
|
|
Hi Luc
That makes them independent... But you cannot toggle them anymore since there is now only one.
Basically I want it to LOOK like a Radio Button, and FUNCTION like a check box
|
|
|
|
|
Set AutoCheck to false and implement a click handler to toggle the checked status.
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
Thank You SOOOOO Much!!!!!!!
Everyone has offered lots of reasons why not to use Radio buttons, but no solution.
AutoCheck to false does exactly what I want it to do
Thanks again
|
|
|
|
|
It's generally a bad idea to make an interface look like it should work in one way, and make it actually work in a completely different way.
You can for example use images to show the status.
---
single minded; short sighted; long gone;
|
|
|
|
|
I agree; conventions exist for a reason.
|
|
|
|
|
I too agree
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Me Four.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
Hi
Ok Point taken, but I tried using little square panels and it just looks like scrap.
That is the ONLY reason I wanted to use something like a radio button - I want something that looks NICE, and also looks like the pins on the connector that I can arrange in the same way as the DB-25 connector for the parallel port.
As far as functionality, all I need is to be able to set the pin when the object is clicked, and I need to be able to toggle the colour to indicate the logic state of the pin
I guess even 'circular panels' would be ok.
|
|
|
|
|
have you tried developing your own checkbox that overrieds the paint event and replaces it with your circular functionality, i think that's what you need to do.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|
|
Is there a way to launch my program at the same time when I open, lets say, notes.exe?
|
|
|
|
|
hi,
you can use
process.start("notes.exe")
All The Best
Sathesh Pandian
|
|
|
|
|
There's no way to hook into the launch of notes.exe to know that it has launched.
You have two options:
1) Use a batch file to launch notes.exe that will also launch your app.
2) Have a boostrap app permanently running (at startup, or as a service) that scans the running processes, then launches your app when it sees notes.exe is running.
|
|
|
|