|
have you tried making the data bindable and then the form's label simply binds to the instance value. When the datNext changes the label is updated for free.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi,
I am trying to implement a functionality which will allow users to select rows by checking into the check boxes in the datagrid view and displaying the checked item in a new form. Can any1 help me out in this.
Many Thanks,
|
|
|
|
|
|
Hi everyone.
I want to make an application that has one Main Window Form.
From this main form I want to open new forms. Each newly opened form is showed in Taskbar and can be individually closed. But I want main window form to be Owner of all newly opened form.
In the above case I want single instance of Main Form running as an application and if i close the main form all other opened forms should be closed.
I cannot used this.AddOwnedForms(newForm) because there are few restrictions of minimize and focusing main form.
What is best way to achieve this functionality?
Thanks.
Good Day.
|
|
|
|
|
Just create and show all your 'child forms' inside your main form and you should automatically get all the functionality you have asked for
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Thank you for reply.
I want Main Form as a separate window. Not like MDI container. Is that possible to have Main Form invoking new windows and works as parent to all new windows?
|
|
|
|
|
Hi!
I want to get the file path hosted by a certain excel process. I have its Process object only.
Thanks in advance.
|
|
|
|
|
Hi,
How to skip the single line from the graph while plotting the number.
consider the numbers from 0 to 9 it will be as;( in the For Loop)
Working format:
|||||||||| ---> Graph lines
0123456789 ----> X axis numbers
I need to have the format like;
||||||||||||||||||| ---> Graph lines
0 1 2 3 4 5 6 7 8 9 ----> X axis numbers..
Thanks,
Subbu
|
|
|
|
|
0. It is considered rather bad maners to have multiple unanswered questions.
1. Have you considered using a graph library, zGraph is very good.
2. Format your code, this is a pile of pants:
|||||||||||||||||||
0 1 2 3 4 5 6 7 8 9
But this is purdy:
|||||||||||||||||||
0 1 2 3 4 5 6 7 8 9
[Highlight the code block and click 'code block'
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi,
I am new to C#.I have to develop an MDI apps in C#.
Can anyone give me a sample C# MDI Application, If you have any?
Regards,
Sateesh.
|
|
|
|
|
sateesh villa wrote: Can anyone give me a sample C# MDI Application, If you have any?
Here [^]is one article on MDI Apps in CP.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thank you..
I read it.
Can I get any sample projects anywhere in web?
|
|
|
|
|
Look into msdn sample applications for C#
|
|
|
|
|
Hi,
I need to plot the wave format on the usercontrol screen with the use of text file(having input values about 2gig). Horizontal Scrollbar is placed on the panel and if I move the scroll bar the panel should move for certain amount values.
Is it optimal to use the lazy loading technique here.How? Is there any other way to accomplish this task?
Consider the screen width is 300 and wave columnwidth of wave is 30 and the total numbers to plot wave is 3000.
Then 300/30 = 10 waves can be drawn.
How to set the Largechange and Smallchage in the Horizontal Scroll event?
Thanks,
Vel
|
|
|
|
|
I would suggest seperating out your problem.
0. File reading
What is the format of the file?
If it is a fixed length format, can you can read directly any portion of it?
1. Display scroll bar:
Set the scroll bars range to be 0-2990 - the max value is {number of items} - {items to be displayed}
Set the small change to 1, you are moving by a single frame.
Set the large change to 10, you are moving the entire page width.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Thanks Vilmos...
Text File format and it's not fixed length I read from text file and have the values in an ArrayList and I loop through it.
How to set the scroll bar range? Any property need to change?
Getting the 10 values from above arraylist and planning to plot the value as a wave during Horizontal_Scroll() function when scroll left and right? How to achive this?
Regards,
Subbu
|
|
|
|
|
Hi,
I would like to suggest you read this[^] carefully.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
spalanivel wrote: have the values in an ArrayList
This does produce an overhead in that you need to read everything in upfront, but it's not the end of the world.
spalanivel wrote: How to set the scroll bar range? Any property need to change?
Once you've read the file, you'll have the number of items in your list:
hScrollBar1.Maximum = this.listOfValues.Count - 10;
spalanivel wrote: Getting the 10 values from above arraylist and planning to plot the value as a wave during Horizontal_Scroll() function when scroll left and right? How to achive this?
for (int x = hScrollBar1.Value;
x < hScrollBar1.Value + 10;
x++) {
}
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Thanks Vilmos,
Still I need to clarify some doubts and i will send you the source code fully so that you can give the optimal solution. will you please give your email id?
Regards,
Subbu
|
|
|
|
|
I don't want to see your code, I have enough to deal with my own. Go figure out what you can and should you have any more questions then you are free to come back and ask. Someone is sure to answer if you ask well.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
|
I have looked in all my books and on the net and cant find a way to do this, it just tells me about shifting bits which will not be appropriate.
I have a program that recieves a byte[] from an external source.
The array elements represent different things eg(byte[0] bit 1 (rightmost)) = buzzer state (1 on: 0 off)
In the command i recieve there will be 3 bytes, with each contained bit representing a buzzer or LED and its state on or off;
Does anyone know how i can look through the bits and check there state?
Thanx George
|
|
|
|
|
You can use the BitArray class to check the value of single bits into a byte array.
|
|
|
|
|
Thanx for the advice this looks like a useful class.
I tried looking through the byte with .length but noticed there was a get() position which is what i was looking for. As somthing like getchar()/ charAt() is perfect.
|
|
|
|
|
I think this is the idea
BitArray byte1 = new BitArray(commandData.Data[0]);
enumLEDAndBuzzer lcdAndBuzzState = enumLEDAndBuzzer.NULL;
if ((byte1.Get(byte1.Count - 1)) == 0x31)
{
lcdAndBuzzState = enumLEDAndBuzzer.BUZZER_STATE;
}
else
{
lcdAndBuzzState = enumLEDAndBuzzer.NULL;
}
if((byte1.Get(byte1.Count - 2)) == 0x31)
{
}
else
{
lcdAndBuzzState = enumLEDAndBuzzer.NULL;
}
From my understanding i should be able to work from right to left by (count - 1++).
Thanx again
|
|
|
|