Hi, I am having one form with yes and no button running in one thread. And one worker thread is running which will keep repeating it's task at every 4 sec. While worker thread is running, and if i will click yes in other threads, program takes lot of time to execute the action to be performed by clicking yes button. Because of this background of Main UI is not painted for that much of time period. How I can solve this problem? Atleast background of Main UI should be repainted all the time. Thanks in Advance..
Piyush Vaishnav
Posts
-
Painting issue while running two different threads -
How to enable disable Hibernation option by using C# code.Hi All, I wanted to get that hibernation option is enabled in system or not. If it is enable then wanted to disable this option. Thanks in Advance.. Piyush
-
Writing a Text in StreamWriter such that alignment should be proper for different languages ( like English, Chinise, German...etc).Hi, Now I used string.PadRight(40, ' ') for the first text and then after adding second text. It's working fine for english. But for Chinese still second text is not coming below the First Row's second text.
-
Writing a Text in StreamWriter such that alignment should be proper for different languages ( like English, Chinise, German...etc).Hi All, I am writing text into StreamWriter by sw.Write("Text coming from Labels : so can be in english or chinese or any other languages") method. After writing first text, I am adding tabs and then adding second text. Now adding a new line and adding first text + tabs + second text. It looks like this: Model :\t \t \t \t \t XXXX Version :\t \t \t \t YYYY Note : I am not able to put white spaces here so just putted \t. Assume that the first X and first Y starting position is equal. Alignment is coming properly for English. But if the input texts are in Chinese then it comes like this : Model :\t \t \t \t \t XXXX Version :\t \t \t \t YYYY Here YYYY is not coming just below XXXX such that the start position of first X and first Y should be same, This Tab spaces are the same for different languages. I want atleast alignment should be proper with every languages. Thanks in Advance.. Piyush Vaishnav
-
XmlDocument.Save() throws expection when file name is containing colon ":".Hi... I am getting NotSupportedException "The given path's format is not supported." XmlDocumentObject.Save(filename); filename is "L:PROT", because it contains colon that's why exception is coming. Is there any alternative to use : in filename which could be saved in XmlDocument? Thanks in Advance.. Piyush
-
How to Save bitmap as emf ImageFormat?I wanted to save bitmap file as vector image with emf extention. bitmap.save(filepath, ImageFormate.Emf); While running the program above line throws ArguementNull exception that "encoder value is null". For getting encoder information : ImageCodecInfo[] list = ImageCodecInfo.GetImageEncoder(); this list containing 5 element : BMP,JPEG, GIF, TIFF, PNG These are the built -in- image codec. But codec related to .emf is not there. Might be thats why exception is throwing. Am I need to install codec for emf or there is any other solution? Thanks alot....
-
Last node is not visible in TreeView because of scroll bar.After adding extra node at the last, we can select last node by key down arrow. How we can disable any particular TreeNode, not complete TreeView in windows form.
-
Last node is not visible in TreeView because of scroll bar.Thanks for alternative solution. Actually i am using Windows Forms and this problem is also there when scroll bar comes in to picture. Now i am adding one extra node at the last of treeview, so that this extra node will going to be hidden.
-
Last node is not visible in TreeView because of scroll bar.Scroll bar is required, because there are nodes which is greater the height of TreeView. It should show the last node even scroll bar is there. Am i missing any porperty or Is it microsoft fault.
-
Last node is not visible in TreeView because of scroll bar.I am having treeview with some nodes. If there is no. of node is more than height of treeview then scroll bar is coming. Now the problem is, because of scroll bar i am not able to see the last node. How i can solve this issue? Thanks in advance.
-
Tab ControlWhile adding dynamically Tab Pages to tab control. New created tab page should come next to selected tab page. By default new tab page will place at last position of tab control. Is there any property in Tab control to do the same. Thanks in Advance
-
Treeview inside DataGridViewI want to place treeview inside DataGridView such that each child node of treeview becomes datarow for DatagridView. Any idea!!! Thanks in advance/
-
Run external exe in C#ok.......Thanks...
-
"Allow Service to interact with Desktop" Windows Services"Allow Service to interact with Desktop" in Services property. How can i set this property programmatically. Thanks ........
-
Run external exe in C#hi......leppie..... Now it's working fine. But i want to set this property programmatically. Is it possible? Thanks......
-
Run external exe in C#Thanks .........It's working now.....
-
Run external exe in C#hi guys, I want to run any C# made exe from another C# program. For that i used this code: System.Diagnostics.Process.Start(exe path); It's working fine. But when i am using same code in OnStart() method of Windows Services. It will start the process into Task Manager Processes, but not showing in screen whatever GUI that exe has. To show GUI also , what should i do? Thanks....
-
How can we keep calling OnStart() in Started condition of Windows Service in C#Hi all, I have created one windows services in C#. In OnStart method i want to start external exe at particular given time by user. For that i need to keep comparing time of system and user given time. But OnStart method calls only one time when starting that service. Is there any other event or methods which will call continuosly when service in Started condition. I feel happy when will get alternative solution for the problem. Thanks guys......
-
Windows ServicesThanks.... it's very helpful....
-
Windows ServicesThanks for response...Can we do this Programmaticly.