|
Hello every body, I want to do a library wich has to conect throw rs232 port, but I need to made it conection with code, because as I said, is a library, and i can´t use any component.I know is posible using delegate methods and events, but I have no idea of how i can do it. If somebody can help me with some code I will be very gratefull.
|
|
|
|
|
Delegate methods really have little to do with RS232, do you know what delegates are ?
I googled C# RS232 and got tons of information, including articles here on CP. VS2005 has a serial port class as far as I know. Perhaps it uses delegates to hook up to events on the port.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: VS2005 has a serial port class as far as I know.
Yes it's there. just drag-and-drop serialPort from toolbox to a form and start playing with it...
|
|
|
|
|
hi there,
i m trying to add a CMS in listview component class,
steps i did:
1. add a class and inherit listview
2. add CMS and add a menu item in it
3. add this line in InitializeComponent()
this.ContextMenuStrip = contextMenuStrip1;
4. add this listview in form
5. run but nothing appear when right clicked on listview
anyone know how to solve it?
thanks
Becoming Programmer...
|
|
|
|
|
xmen,
Does contextMenuStrip1 have any items?
Regards,
Gareth.
|
|
|
|
|
yup!!!
Becoming Programmer...
|
|
|
|
|
xmen,
You could try listening to the ContextMenuStrip.Opening event and then you'll find out if its actually being opened.
Regards,
Gareth.
|
|
|
|
|
nothing happend
Becoming Programmer...
|
|
|
|
|
i have done it
Becoming Programmer...
|
|
|
|
|
Hello,
I'm making a GUI for an image capture program. When the user captures an image a new form is created which displays the image. Once the user has captured several images they can then look through the image-forms and decide which to save. I have a main form which contains the main controls and a large panel which takes up about half it's area.
I would like:
1 the image-forms to appear within this panel and to be confined to its boundaries.
2 the image-forms to always be on top of the panel and hence always be visible.
3 the image-forms should not take control(focus) away from the main application window.
Is it possible to do this ?
Thanks
|
|
|
|
|
Hello,
Apart from that I don't see why you want to use Forms to show images (waste of performance):
Ylno wrote: 1 the image-forms to appear within this panel and to be confined to its boundaries
If you want to add a Form in the Controls Container of a Panel, you have to set the TopLevel[^] property of the Form to "false".
Ylno wrote: 2 the image-forms to always be on top of the panel and hence always be
If you add it inside the panels container, it is automaticaly in front of the panel.
Ylno wrote: 3 the image-forms should not take control(focus) away from the main application window
Maybe Enabled[^] does what you want.
But again, you should think of other solutions, like painting the images directely on the MainForm or the panel.
Therefor you need:
OnPaint
DrawImage[^]
All the best,
Martin
|
|
|
|
|
The scenario you're describing is MDI. In fact, it's EXACTLY what MDI was invented for. If you have a sub form, for example, that contains a PictureBox set to Dock = Fill, you can then set the MdiParent of each form to your main form before showing it.
Make sure to set the IsMdiContainer to true for the main form.
The MDI area of the main form will occupy whatever leftover space is left in the main form. That is, if you have controls that you dock right, top, left, etc., the MDI area will only take up the space that is left. This means you don't need to worry about where the MDI forms will show up.
It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein
|
|
|
|
|
is there any runtime environment required to open a crystal report in a c# application
|
|
|
|
|
Hi shabonaa
Are u try to opendevelopment PC or deployment PC?
thanks
Cheers,Earn and Enjoy
RRave
MCTS,MCPD
|
|
|
|
|
all I want to do is to transfer the application and reports to the user machine.
the application itself is running but when try to open the report it gives an error
|
|
|
|
|
Hi Shabonaa
Can you give post full error details in this post?
when you deploy ur report in suer PC u must install report comp.
pelase give a more details regard errors.
|
|
|
|
|
Hey guys and girls...
I'm having trouble making a chart in excel through c# that uses information from 2 different worksheets . I can't seem to find a way to specify 2 ranges for one chart. Any help would be greatly appreciated...
|
|
|
|
|
Ok, I'm struggling trying to solve this problem.
I've got two forms, one is inside an MDI and the other isn't. I want to get the panel, and it's content into the form that isn't in the MDI.
How can I do this?
|
|
|
|
|
DSdragondude,
When you create the form, store it somewhere. Then you can do:
Control[] controlArray = Controls.Find("nameOfPanel", true);
Panel formPanel = controlArray[0] as Panel;
Regards,
Gareth.
|
|
|
|
|
i need to make hard code in initialize of control or new method. but my code not execute at desgin time and execute in runtime
123
|
|
|
|
|
SVb.net,
Sorry, don't understand what your asking.
Regards,
Gareth.
|
|
|
|
|
Yes
PUT like this
#DESIGN
..................
#ENDDESIGN
may be name is incorrect, but syntax is correct.
just use this and define ur code two flow.
Cheers,Earn and Enjoy
RRave
MCTS,MCPD
|
|
|
|
|
If the above is correct, you want regions.
Regards,
Gareth.
|
|
|
|
|
have a look at Control.DesignMode property then.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- 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 PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi all,
Thanks in advance ,
I m developing a software for MLM company any i have to calculate member in the left and member in right every month so, please help me to find the total number of member of a specific member let it be "1001".
help as a alias.
Be happy and make others happy.Cheer up...........
modified on Sunday, February 17, 2008 10:44 PM
|
|
|
|