XML to a table
Hi, I would like to read a XML file and display in a tabular format.For example, when I open a XML file in MS Excel, it automatically reads the data and puts them in the columns/rows.Is there a way to...
View ArticleHow to detect when ToolStripTextBox loses focus?
I have a ToolStripTextBox in my toolstrip, and I need to know when the user clicks away from the text box after the textbox has previously received focus. Seems impossible! :-)I've tried to handle the...
View ArticleAn option to rescalling the GUI size
Hi All,I’m working on Visual Studio 2010 C#I need to give an option to the User to change the Form size i.e. the User could drag the form to other sizes than their default sizes.Is there a function...
View ArticleScrolling ListBox via mouse clicks pauses timeSetEvent timer/callback
Found this in our C app but was able to replicate it in a simple C# WinForms app for demo purposes. We set up a timer using the multi-media timer timeSetEvent in order to have the UI drawing...
View ArticleHow can I add a glowing effect (like a halo) around a region in WinForms?
Below is my code, where being given two ellipses (a bigger one and a smaller one), I extract their difference. I would like to add a glowing effect around this new region. I would appreciate any...
View ArticleRemove Rows from TableLayoutPanel
Hi there, I'm desperetely trying to create a method which would delete all rows (which i add through another), but it doesn't seem to work: Init Paths Method: private void InitPaths() { int c = 1; int...
View ArticleToolStripLabel BackColor not displayed
Hi!I have following issue with ToolStripLabel:1. Create a ToolStrip in design view (VS 2005). 2. Add ToolStripLabel control.3. Change BackColor property of that ToolStripLabel control.When I run it I...
View ArticleImages on MainMenu MenuItems and Windows Style ToolBar
To shorten it up, I want a MenuStrip to have the MainMenu color scheme but with images beside the text for each MenuItem like you can do with a MenuStrip.For the ToolStrip, I want it to be the have the...
View ArticleComo utilizar loading gifs em um FORM ???
Pessoal,tenho uma dúvida básica:qual a melhor maneira de usar um gif para um loading num formulário enquanto ele executa uma ação de consulta no banco ou qualquer outra tarefa. Pelo que pesquisei,...
View ArticleQuicker way to change tab orders?
In my c# project for my form, it seems the only way I can change tab orders is to go into each property and change each TabIndex or visually click on View / Tab Order and click on each field in desired...
View ArticleradioButton with Image attached
I have created a radioButton and I attached to it an Image and I set the property AutoSize to true and I modified it a bit. Now I have the next problem. When I select my radioButton with Tab or I click...
View ArticleI need to get a multi-line textbox to behave.
I am working with a windows form in C#.I have a textbox with multi-line set as true. The textbox is sized to approximately 20 chars x 4 lines as the data will eventually be sent to a 20x4 LCD display....
View ArticleRichTextBox control formatting issue
I have an extended RichTextBox control which is working properly in Windows 7. It is loosing formatting if I run the same on Windows 8. Please find the images I had for Windows 7 and Windows 8.RTF is...
View ArticleHow to set a mdi child on top of other mdi child
I have situation I opened two mdi child forms form one 1st and then form 2 so form 1 on bottom and form 2 on top of 1st but when I am clicking hide button of mdi parent that is on splitter and when...
View ArticleAlt key supresses MouseMove messages
When I press the Alt key, I no longer get MouseMove messages for my Windows Form until I press the Alt key again. How can I stop that from happening?This doesn't happen for Shift or Ctrl, just Alt....
View ArticleMake a DOS-like textbox user control
I want to write a dos-like usercontrol (i mean, the flashing _ caret)I wrote a usercontrol that contains a textbox and it will expanding when user enter text into it and follow by a dos-like flashing...
View Articlehow to update scrollabar offset in a flowlayoutpanel?
Hi to all, i've a question for you. i've a flowlayoutpanel without scrollbars. when i push a button a panel will be added to the flowlayoutpanel. This flowlayoutpanel has a fixed height and fixed...
View ArticleVALIDATION USING VALIDATECHILDREN(), VALIDATING(), VALIDATED() AND...
I am validating user inputs using the above-mentioned functionality.but when i press the ok / insert button this this.ValidateChildren(ValidationConstraints.Enabled)always return true. below is my...
View ArticleWin service in shutdown windows
Hi, I need some stuff like disconnect from server in win service, I add this in the STOP function, but seems like when windows shutdown this function not been called.How when service will know if...
View ArticleNotifyIcon's BalloonTipClicked not invoked after timeout
We have some software that shows a BalloonTip on a NotifyIcon with a reasonably small timeout of 5 seconds. When the user clicks the balloon, some action is started. I received a bug report that when...
View Article