|
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.
|
|
|
|
|
Yes, there is a way. You may not like it though!
You can patch notes.exe, such as to modify the entrypoint to a different location, which, obviously, launches your application and then forwards the execution to the original entrypoint of notes.exe! That's how some viruses work, isn't it?
Cheers,
|
|
|
|
|
I want to watch a file and update a list with the data in the file. I want my program to call a method in another class to go out and get the data from the file. I place my method call in the OnChanged Sub routine. But, I get and error about Object reference not set to an instance of an object. I put in this code, but I still get the same error. Do you know what I am missing?
Dim currentList As frminYardTrucks = CType(currentList, frminYardTrucks)
currentList.updateList()
Am I doing something wrong?
|
|
|
|
|
Not sure why you're trying to initialise it to be itself within the definition. If you're trying to do what I think, try:
<br />
Dim currentList as new frminYardTrucks<br />
currentList.updateList()<br />
|
|
|
|
|
hi everyone,
i use reportviewer to display my .rdlc report. this report contains multiple column. so i want to change the orientation of this report to "Landscape". How can i perform this task at runtime.
any help will be appreciated.
thanks in advance.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
System.Drawing.Printing.PageSettings pg = new System.Drawing.Printing.PageSettings();
pg.Landscape = true;
Sandeep S. Loray
|
|
|
|
|
Hello
How can I replace the origin of coordinate system in VB.Net want to st it in the center of form. Can you send me the code of this program.
Thank you,
Reza12
|
|
|
|
|
Hi,
if you need this in your paint handler, the PaintEventArgs offers you a Graphics
object, and that has a TranslateTransform() method that basically adds some offset
to all subsequent coordinates you pass to DrawRectangle(), DrawString()
and the like.
BTW it offers some other interesting Transform methods too.
|
|
|
|
|
Does anyone have an example on how to use the binding navigator control on a Visual Basic 2005 .NET form and make it behave like an Access data bound form?
Thanks,
Quecumber256
|
|
|
|
|
Bind the data source to the navigator control, then bind your textboxes and labels to the individual fields
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|