|
You need to analyse why it's not stable. Is it a problem with the hardware? Are you having threading issues? Having an effective logging and exception handling strategy will be a big step forward for you, as it should help you focus on the causes of issues.
|
|
|
|
|
No, It doesn't throw any exception, but show a message that "Application has stopped working", after two more days.
|
|
|
|
|
Then you most likely have something like a memory leak going on in there. By the way, why have you asked this in the WinForms section? Surely your application is a service.
|
|
|
|
|
I am sorry, Its Because, I have created a Windows Form application to do this process and to visualize my schedules and list of my machines. I have closed all my objects after its use, then how the memory leak happen?
|
|
|
|
|
You need to do some memory profiling. Download one of the excellent profilers available and set it away.
|
|
|
|
|
Thank you sir, Is there any efficient method to create such scheduler, am using timer class.
|
|
|
|
|
hi,
I am creating a pdf using iTextsharp dll , and i need a open source dll/ dontrol to display the created pdf without using Com component or any paid dll . there must be no dependencies . i am finding it challenging , can anyone help me with my RnD?
|
|
|
|
|
Only ask a question in one location. It's considered bad form to cross post messages.
|
|
|
|
|
Hi,
I am trying to build a windows form application where i can control basic features of windows phone such as, call and message. Suppose phone and PC are in the same wiffi network, then i need to get the call notification on my windows application as soon as i get any phone call over phone and same goes for the message also.
Please any one let me know is this can be done, if else please guide from where i have to start.
I was planning to WCF for interation with the phone using TCP.
Thanks,
Vishal
|
|
|
|
|
VishalDesai wrote: please guide from where i have to start. Probably with some research into the mechanics of such an application, and what utilities/libraries are available to help. www.google.com[^] is where most people would begin.
|
|
|
|
|
What??? OK, more like superceded.
I am currently writing a book on Windows Forms. It was a surprise to me, while fact-checking, that Label and LinkLabel have been "replaced" by ToolStripLabel .
The ToolStripLabel control replaces and adds functionality to the Label and LinkLabel controls. However, the Label and LinkLabel controls are retained for both backward compatibility and future use, if you choose. Link[^]
So, no need to start changing our code, but I'm amazed I've never seen this before.
|
|
|
|
|
I suspect it's just a poor choice of words in the documentation. The Label and LinkLabel classes are not marked as Obsolete , and you can't use the ToolStripLabel directly on a form:
ToolStripItem controls must be contained in a ToolStrip , MenuStrip , StatusStrip , or ContextMenuStrip and cannot be added directly to a form.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thanks for the info, funny how it takes them ages to change something that seem logical...
|
|
|
|
|
I am working with datagridview. My datagridview virtual mode is turned on.so i populate grid this below way
private void dataGridView1_CellValueNeeded(object sender,DataGridViewCellValueEventArgs e)
{
e.Value = memoryCache.RetrieveElement(e.RowIndex, e.ColumnIndex);
}
basically i took the code from a msdn link and customize bit. one thing is not clear to me which function is getting called first when user scroll datagridview. please tell me the function name.
also tell me how relation has been established between datagridview scroll and function call to load next set of data. here i am not posting my full code rather here leaving a url from where anyone can see the full working code.
here is the url http://stackoverflow.com/questions/31458197/how-to-sort-datagridview-data-when-virtual-mode-enable/31475803#31475803
please have a look and help me to understand the area which is getting called when user scroll down the datagridview. thanks
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: one thing is not clear to me which function is getting called first when user
scroll datagridview. You should read more of what is one MSDN, as it explains the topic quite well. The "ValueNeeded" event is called for each cell that needs painting, regardless of what causes the paint; whether that is a scroll, or maximizing the form. If the grid needs values, that event is fired.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
My datagridview virtual mode is turned on.so i have to populate grid this way
private void dataGridView1_CellValueNeeded(object sender,DataGridViewCellValueEventArgs e)
{
e.Value = memoryCache.RetrieveElement(e.RowIndex, e.ColumnIndex);
}
from these thread
http://stackoverflow.com/questions/13856869/notify-when-event-from-another-class-is-triggered
http://stackoverflow.com/questions/4378339/raise-an-event-of-a-class-from-a-different-class-in-c-sharp
i got the logic how to raise event to calling environment.
i am in confusion from where to raise event in my code. apologized that i could not submit my full code but here i am mentioning a url where i post my full working code. please have a look and guide me how to raise event from my code.
so this is the url where i post my full working code
http://stackoverflow.com/questions/31458197/
how-to-sort-datagridview-data-when-virtual-mode-enable/31475803#31475803
My Objective
i want to raise a event when data load will start and again want to raise another event after populating all rows of the grid.
my Event handler code would look like
public void BeginDataLoad(object sender, EventArgs e)
{
//Do something here
}
public void EndDataLoad(object sender, EventArgs e)
{
//Do something here
}
looking for help with code sample. thanks
tbhattacharjee
|
|
|
|
|
Your loaddata-event is when the memorycache is being built. The enddata when it is done.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
HI, guys!
I have a function in my application that searches for horizontal tabs in a text file. So far, I've been using a String^ variable named "Glo::m_tab" initialized as L" ". Works fine.
But what if I want to look for a black star, or a form feed or any other control character within the file?. How do I work the U+0009 code for HT into my function?. I've found no examples.
THANK YOU!!
|
|
|
|
|
|
|
Hi, guys!.
I need one of my forms to do something immediately after the form itself and all the controls are shown (all initialized), but before the user even clicks on anything. THANK YOU!
P.S.: I'm not an expert. It's written in C++ .NET using Visual Studio 2010. I tried the Form_Shown event, but it didn't work. Thanks again.
|
|
|
|
|
|
Thanks for the suggestion. I'll try it.
|
|
|
|
|
Hi!
As you suggested, I tried the example in
https://msdn.microsoft.com/en-us/library/system.windows.forms.form.load%28v=vs.100%29.aspx[^]
Had to change the code a bit, but managed to get it working and added a Form1_Shown event as well. Two things:
1) IMHO, I think that's what I need instead of a Form1_Load event, because I want to add something after the form has loaded and displayed all the controls with their initial values.
2) I have a bigger question now: What's the practical difference between the load event and the constructor code that I can write at the beginning of the form, right after the InitializeComponent() part?
Can you help me? THANK YOU, again!
|
|
|
|
|