|
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.
|
|
|
|
|
Well, it runs fine on my machine outside the debugger - that's why I suspect VS has an issue. I should know in a few minutes now.
|
|
|
|
|
I am using iTextsharp DLL for generating pdf's in my project. Does this dll need any license.
|
|
|
|
|
the project is in sourceforge, it means : opensource.
|
|
|
|
|
According to the license information in SourceForge, it uses the GNU Lesser Public General License. I'm not an expert on it, but I think that means you can distribute it with your application without including a license text document
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Thanks
|
|
|
|
|
HI,
I need to code in C# to input a username and password for an authentication dialog box in Windows while trying to access a share in another system. The idea here is to pass the username and password in a function as argument so that this function will automatically enter both (username and password) once the Windows dialog box for Aithentication pop ups while accessing a share in any other system.
Can you please help me out with any API or any other piece of code to work out!
|
|
|
|
|
|
Is there such good tutorial on Windows Messaging that uses WndProc?
|
|
|
|
|
Hi all
I am trying to display the value of a variable in a label.
Easy enough I hear you say, but the variable can be changed by many different methods and functions, (some in dll's,) none of which trigger any specific event that I would normally use to update the label.
I need the label to show the current value of the variable in 'real time.'
public class MyClass
{
public DateTime datStart;
public DateTime datNext; <======== This is the one I'm trying to show
public int intParam1;
public int intParam2;
//Extra fields removed for clarity
}
And then in my form code:
MyClass _myVar = new MyClass();
I have a label called lblInformation that I would like to always show the value of _myVar.datNext.ToString()
I've spent many hours trying to find a solution so any help will be very much appreciated.
Thank you
|
|
|
|
|
Hi,
this is what I do in such situations:
- create a Windows.Forms.Timer that ticks a few times per second, say 10Hz
- in its Tick handler, set Label.Text=latestValue.ToString()
- done
Thay isn't exactly real-time, however it is almost as fast as the human eye can cope with, and it does not waste CPU cycles on updating all the time assuming the variable could actually be changing at a much higher rate.
BTW: by using the right timer, I also avoided cross-thread problems.
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.
|
|
|
|
|
Luc
Thank you for a prompt and elegant solution to my problem.
Regards
Martyn
|
|
|
|
|
you're welcome.
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.
|
|
|
|
|
Maybe I am understanding the question, so I will tell you what I would do...
Is it the case that this is an existing class that is used in many different places already, so you don't want to change it to much.
If you have access to the code, you can do this...
First change the member variable to private and rename.
private DateTime dateNext;
The add an event.
public event EventHandler datenextChanged;
Then add a property with the existing name.
public DateTime datNext
{
get{return dateNext;}
set
{
if(!datNext.Equals(dateNext) && datenextChanged != null)
datenextChanged(this, EventArgs.Empty);
}
}
Then you just need to subscribe to this event on your object and update the label in the handler.
Maybe this will work for you if I am understanding the problem.
Thanks,
Wendell
|
|
|
|
|
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.
|
|
|
|