Can't Change Form C#
I'm trying to take a form and put another in its place. I start out with the code:private void button1_Click(object sender, EventArgs e) { new Form2().Visible = true; }That works. But when I tell the...
View Articlesend parameters from console application to windows form application
hi everyone,i have a console application and i want to send console application's parameters to windows form application field(Form Application already works background)how can i perform this task?thx...
View ArticleHow to remove sql server express dependency from project ?
HiI have created a windows application and during development i added a .mdf file (Sql Server Express) and build in debug and release mode successfully. But later i changed the decision and deleted the...
View ArticleHelp with events and cross thread
I am having a lot of trouble getting my head around Events and Delegates. The code below is my attempt to run a long process and send data back, and then notify the calling form (by an event?) that it...
View ArticleOverhanging container control
Hi,Does anyone know if it is possible to have a container control such as a panel that will display "overhanging" it's parent control? - In the same way that the drop-down portion of a combobox can...
View Articleuser role Creation in vb.net
i want to create user access rights for my application ( insert/update/Select/Delete)Control user Access rights for different users.Thanks
View ArticleHow to add many pictureboxes in a list from a form in c#
I need help. I want to add 200 of picturebox in a list in c#.This i s the code i used but no working. Says that out of arrange. List<PictureBox> imagini = new List<PictureBox>();...
View ArticleClosing a Metro app from Windows Form.
Hi! I opened Xbox Music App from click on picture box using following code: private void pictureBox2_Click(object sender, EventArgs e) { SendKeys.Send("^{ESC}"); SendKeys.Send("Music");...
View Articlepopulating textBox with a set of difference filenames
Hi All,I have some code in a Windows Form that finds the difference between filenames in a txt reference file and file names in a folder. The difference should be printed out.Ihave this working in a...
View ArticleAdding Rows and Columns from one DataGridview to another DataGridView
Hello Everyone,Issue : Moving multiple rows and columns from one datagridview to another data grid view and then displaying the second data grid view rows and columns on UI.Developing platform :...
View Articlescrollbar thumb snap-back while dragging if out of range
Hey all,I'm building a custom scrollbar, and so far it's going great. There is a bit of behavior in the standard Windows (7 anyway) scrollbar that i want to preserve, which frankly I never noticed...
View ArticleIs there a way to change the default 'disabled' colour for a menu?
I have a menu heading in my application (no drop down) which is controlled by group membership. I would like to disable this menu rather than remove it if the user isn't in the appropriate group but...
View Articleshow a Datagridview in the form
Hi allI'm trying to get data from sql server then to fil it in a datagridview, but no result is displayed after excuting the code.here is my code:dim strSourceTbl AsString dimstrSourceColumns...
View ArticleNeed To Control The Distance Between Underline and Text Character
I'm using Font class and the Font.Underline property for underlining the text.Is it possible to control the distance between the text characters and the underline ?
View ArticleWin Forms Web Browser Object Causes Application to Crash - VS2008
Hi,I have a web browser object in one of my forms.When I open the form and try and load this URL .... 'http://www.bbc.co.uk/news/world/' the application crashes.But if I try and load...
View ArticleWhat's the best way to design a WinForm to access complex data?
Hello,I originally designed a VSTO add-in for Word for a friend of mine. It would create Word documents based on data from an Access database. All the data "stuff" (entering, editing, queries,etc.)...
View ArticleSystem.Windows.Forms.TextBox is a type but used like a variable
In one of my buttons click event I call the following method that clears the textboxes:private void ClearTextBoxes(Control control) { foreach (Control c in control.Controls) { if (c.GetType() ==...
View ArticleFind all checked items CheckedListbox
hi ,how to find all the checked items in CheckedListbox windows from
View ArticlePictureBox Layout problem in c#
Dear all, I am sure that my question or problem is really strange but this it:I am writing program in c# which has the right to left layout (Arabic language). I am then adding the pictureBox control to...
View ArticleCollect events from different objects
What would be the best way to handle following scenario?I have a form with 50 different objects, most of them text boxes but other types can be too.User make value changes in some of them. After...
View Article