How to add a new record to DataGridView columns having cells of different...
I have 3 controls in my windows forms which are ListBox , button & datagridview control. ListBox is already populated with data. When the user clicks the button, the record selected in the ListBox...
View ArticleHow can i save the content of a picturebox
Hello , I am programming a paint application similar to microsoft paint using g.graphics() and i allowed uploading a picture to it using a pictureboxi would like to save the picturebox but every time...
View ArticleHow to check string is number or not in C#
Hi! Enveryone:I am new in C#. I want to check whether the user input to a text box is a number or not. What is the string function to check it? I do not want to use try and catch.Thank you very much!CLC
View ArticleFreeLibrary API behavior change in Windows 8
We've recently noticed a problem on Windows 8 for our application. The analysis shows that the root cause is the behavior change of FreeLibrary API change in Windows 8.Prior to Windows 8, if...
View ArticleExtending the ListBox Control to allow BorderColor
I'm trying to extend the ListBox Control and allow the property BorderColor. It appears the OnPaint event isn't triggering. I roughly know how to draw a single border but of course it isn't appearing....
View Articlewindows 8 calendar app doesn't know that 26th Jan is republic day in India...
windows 8 calendar app doesn't know that 26th Jan is republic day in India but knows some martin Luther day that i haven't heard of.while installing i have selected my country as india and in time and...
View Articleis there any way to know how i sort my gatagridview by pressing on header...
hiis there any way to know how i sort my gatagridview by pressing on header column ?i have DataGridView that has data, if i press the header column i sort my data (for example sort by name)how i can...
View ArticleSaving form results
I have created a windows form to input daily information about the status of the equipment we use at work . I am trying to save this information daily to an excel file that at the end of the month can...
View Articlec# 2008 Datagridview numericupdown cell not working properly. Odd layout...
Hi all,Francesco from Italy here, working with MS products since I was professionally born... that's like a century ago or something like that!This is my 1st post in MSDN forums, so I hope it would be...
View Articleimage
This is how i have been shown how to get images and was wondering if anyone new any other ways of puting images in Random rnd;string currDir = Environment.CurrentDirectory; DirectoryInfo di =...
View ArticleXmlAttributeCollection update in XmlElement
Hi,I am new to XML. I have doubt. I am updating value of XmlAttributeCollection in XmlElement, whether my XmlElement gets updated or I need to go with some method to update my value in XmlElement. Here...
View ArticleHow to find index by value in ComboBox
HelloI am using VB 2008 for creating Win Forms Application.For one of my combo box I want to select it's item using Item Value of that item.To do this i trieddim myVal as integer =...
View ArticleHow to filter database in rdlc report/ reportviewer?
i have filter value in bindingsource, i want this value to initialize in my tableAdapter so that i can show the value. this is my code....//this is my declaration private...
View Article[C#] CollectionChanged issues with ObservableCollection
Hello, I'm developing a Windows Form Control which is indeed a ListBox. My idea is that if you created a new ObservableCollection then it will .Clear() the existing one inside the ListBox class. This...
View ArticleProblem with changing SQL Server settings by WMI
HiI am using WMI in order to change sql server 2012 properties with use of .NET framework windows application written in c# on OS Windows Server 2012 Standard. My code: ManagementScope...
View ArticleHow to get winform webbrowser zoom value?
As we know, we could set winform webbrowser zoom value byvar browserInst = ((SHDocVw.IWebBrowser2)(webbrowser.ActiveXInstance));browserInst.ExecWB(SHDocVw.OLECMDID.OLECMDID_OPTICAL_ZOOM,...
View ArticleTreeView OwnerDrawAll
I am trying to make a TreeView with Nodes that habe several lines. I get it to draw the lines od text and a background, but the next Node starts in the second line and not below the first Node. private...
View ArticleTreeView Plus/Minus Sign in Windows 7 Style
I am stuggling to find how can I make sure that my Windows Forms TreeView came with same style as Windows explorer Tree view, urrently it show tradition plus/minus sign. Hoe can I change those...
View ArticleProblem with ListView.OnDrawColumnHeader method
Hi, I have a couple of problems:I am trying to custom draw the column headers in C# and I am getting nowhere.Firstly:Certain parts of it work but others do not. In the documentation here...
View Articleshowdialog is not member of system.Array
I am trying to learn VB by using APress - Beginning Visual Basic 2005 Express edition by Peter Wright.I have an error: showdialog is not member of system.Array.As a complete novice I do not know what...
View Article