|
Try checking the current value in the ComboBox with the FindStringExact() method in the Lost focus event of the Combo.
|
|
|
|
|
Hi,
I am writing a program to set up a serial port communication.
I'm doing this with SerialPort sp = new SerialPort (); and then SP.Write();
But I can only write a string format to the port. But I want to write a byte to the port. does anyone knows if this is posible and how to do this?
thanks.
|
|
|
|
|
-=gix=- wrote: does anyone knows if this is posible
Yes
-=gix=- wrote: and how to do this?
This's long to be posted here, try searching articles instead.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Method write is overloaded.
Write(string text);
Write(byte[] buffer, int offset, int count);
Write(char[] buffer, int offset, int count);
|
|
|
|
|
I made a byte[] array in stead of a normal byte and is seems like its working!
|
|
|
|
|
In the ITypeDescriptorContext object passed to the EditValue method of UITypeEditor (i.e. the first parameter - nominally referred to as "context") there's a method member called GetService.
This is NOT to be confused with the GetService method available from the second parameter which is of Type IServiceProvider, it's parameter name being nominally "provider".
My question is twofold a) where is the ServiceCollection that presumably lies behind this method and b) how do I put things in it - Component & IComponent don't seem to provide a ServiceCollection, and if I endow my component with IServiceCollection it doesn't seem to connect with the ITypeDescriptorContext.GetService method, which never seems to be anything but null.
NB : As far as I can tell the only thing one can get from the provider.GetService is an IWindowsFormsEditorService object.
I'm working around this by putting an extra object into the attribute collection that provides yet another GetService that IS backed up by a ServiceCollection, the class also exposes the AddService and RemoveService methods.
|
|
|
|
|
Hi all,
i need to select a node in a treeview after selecting from a combobox
i.e. the treeview displays the same information as the combobox and i need to check the corresponding node selected from the combo into the treeview
thanx alot
|
|
|
|
|
switch (YourTreeView.SelectedNode.Name.ToString())
{
case "FirstNodeName":
...
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
hye
i already use portaccess.output in my program
but now,i try to use portaccess.input in my program
unfortunately,i dont know how i can use portaccess.input
please help me guys
thanx
|
|
|
|
|
Please don't ask again, edit/reply on your existing thread.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i am creating a C# application,the main form has a background image.
i want to put another panel on top but it should be trasparent.
i want to see the back ground image.
how can i make the panel trasparent?
My small attempt...
|
|
|
|
|
Set the panel background color to transparent should do the trick
|
|
|
|
|
but i tried that. but i didnt work
My small attempt...
|
|
|
|
|
i removed the panel and added the label
but the samething happening i cant change it to transparent.
there is an option in backcolour to set transparent but it shows a gray colour only
My small attempt...
|
|
|
|
|
Hello,
I have made a little test project, where it works just fine with the transparent color set to the panel and label!
I know that there a problems with transparency in multiple cases (TransparencyKey, Transparent Color, ...).
If you search the web you will find a lot off peaple sharing the same problem.
One hint could be, that there are some graphic cards (processors) who have problems with transparency in compination with 32 bit Color quality.
So as a quick test you could set Color Quality to 16 bit.
Hope it helps,
Martin
|
|
|
|
|
Change the opacity value.
If your Panel does not support Transparent background (try changing background color to transparent from the properties window ), then you should implement your custom panel using :
this.SetStyle(ControlStyles.SupportsTransparentBackColor | Opaque, true); in your constructor.
Then playing with the opacity value of your control, you can make it as much transparent as you want.
Hope this helps...
|
|
|
|
|
both didnt work
how can i chage the transparency with Opaque?
My small attempt...
|
|
|
|
|
Check this out:
http://www.c-sharpcorner.com/UploadFile/ShrutiShrivastava/TransparentPanelinCSharp11232005015233AM/TransparentPanelinCSharp.aspx
Alpha blending may also help.
Blumen
|
|
|
|
|
its not showing the bacg ground image
My small attempt...
|
|
|
|
|
Hi all,
I have used skmmenu 2.2 version in my sharepoint(2003)project. now when i view the same page in netscape browser 8.1 or Mozilla firefox, the look & feel of the browser drastically changes & the menu seems distorted,in terms of the alignment & css applied to it. The menu works fine for IE 5.5/6.
Went thro the skmmenu documentation as well, but did not come across any mention of browser compatibility.
Would appreciate any kind of help on this issue.
Regards,
Yogesh J.
|
|
|
|
|
hye everybody
i'm beginner in c#
wanna ask u all how to use
PORTACCESS.INPUT in C#
thanx
|
|
|
|
|
This could be a good start.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hello All,
I have a datagridview control to display information like the file name and file path. The file paths displayed are all long strings and i want them to wrap to the column. To achieve this i have set the follwinf properties:
1) DefaultCellStyle.WrapMode = DataGridViewTriState.True
2) AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
3) AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders
Here i find that the text gets wrapped only if space is provided in the text. I have almost all the file paths with no space and hence the text is not getting wrapped. Please help me out to solve this issue.
Thanks in advance
Thanks and Regards
Madhu
|
|
|
|
|
Hi
I have problem in clearing the grid view. It is binding the old values every time i try to bind any values to the grid.
This is the code i have written to clear the grid view
Private void clearGridView(DataGridView gView)
{
gView.SelectAll();
if(gView.SelectedRows.Count== gView.Rows.Count)
{
gView.Rowsl.Clear();
}
foreach(DataGridViewRow dvConnRow in gView.SelectedRows)
{
gView.Rows.Remove(dvConnRow);
}
dgView.DataSource=null;
}
Can any one help me to solve my problem please
kesavan
-- modified at 3:36 Wednesday 9th May, 2007
|
|
|
|
|
gView.Rows.clear();
Hope this helps...
|
|
|
|