User Profile
Collapse
-
I am using .Show(). Is there any way to avoid the other? -
Can't click button on form during function call in C#
I am developing a program in C# Visual Studio and I have a form that is created when a button is clicked on another form. This new form comes up and immediately, a function is called and executed from the load function. After the function is done, the form is closed. I have a 'Cancel' button on the form so the user can have the option cancel the function, but the button can't be clicked while the form is visible. How can I fix this problem? -
Adding an existing database to C# Visual Studio
I have an existing database I created in sql server 2000 express that I connect to through the program I'm creating in c# visual studio express. However, I want to add the actual database to my program so that the person that installs it has their own personal database to work with (it doesn't need to be connected to any type of server). Is it possible to add the existing database to visual studio and not have to work through a connection? -
Adding an existing database to Visual Studio
I have an existing database I created in sql server 2000 express that I connect to through the program I'm creating in c# visual studio express. However, I want to add the actual database to my program so that the person that installs it has their own personal database to work with (it doesn't need to be connected to any type of server). Is it possible to add the existing database to visual studio and not have to work through a connection? -
-
How to avoid duplicate forms in C#?
I'm new to c# and am creating a program in visual studio. I have several different forms in the program. Some of these forms need to access the same form. But I need to pass "this" to the form. Because of the constructor of these forms that others access, I've been creating duplicates so that I can accommodate whatever type of form that I'm passing from. How can I avoid this? Does this make sense?
Here's kind of a rough... -
-
How do I export sql data to an excel spreadsheet?
I have a search page in my program where users can search for member data. The results come up in the data grid view, but I also want users to be able to export the search results into an Excel spreadsheet. What is the best way to do this? -
How can I change column widths in data grid view?
I'm creating a C# program in Visual Studio. When I query the sql database, the results are put into a data grid view. However, the column widths are always too small when displayed. I have text that is not shown because the column width is not large enough. Is there a way I can fix that in the data grid view? I see a column height property but not a column width. -
How can I change the column width?
I'm creating a C# program in Visual Studio. When I query the sql database, the results are put into a data grid view. However, the column widths are always too small when displayed. I have text that is not shown because the column width is not large enough. I tried going into Sql Server Management Studio Express and trying to modify the size property of the columns, but it won't let me change it (its grayed out). How can I fix this problem? -
How do I export SQL data to an Excel spreadsheet in C# Visual Studio?
I have a search page in my program where users can search for member data. The results come up in the data grid view, but I also want users to be able to export the search results into an Excel spreadsheet. What is the best way to do this? -
How do I create a selectable area on a form in Visual Studio?
I'm quite new to C# and I'm wondering if there is a way to create a selectable/clickable area on a form in Visual Studio. Right now, I am using the link control, but I would rather have it so the user can mouse over the area, the area will be highlighted, can be clicked on and lead them to the next page. How can I do this? -
-
With this same form, I want the user to be able to search the database. How would I handle select statements in this case? They have all the combo boxes available, but they just enter in the information they have. So the select statement is going to depend on which combo boxes they make a selection. What is the best way to write my code? The way I'm imagining the code right now is really long and tedious....Leave a comment:
-
My problem is, I have about 8 combo boxes on this form, and I would have to re-write a new sql insert statement for each possibility of nulls in the combo boxes. For example, if I have 3 combo boxes (box1, box2, box3), I would have these possibilities of insert statements:
insert into table (column1, column2, column3) values (box1, box2, box3)
insert into table (column1, column2) values (box1, box2)
insert into table...Leave a comment:
-
That's going to be a lot of extra code. Is there a simpler way to do it? Or no?...Leave a comment:
-
Don't know how to handle C# null values in form controls!!
I'm developing a C# application in Visual Studio that have forms which insert values into an sql database. I am allowing null values in the database. However, I have some combo boxes on the forms that give me an error when I insert the form values into the database. It allows me to have null values in the textboxes, but not the combo boxes. How can I fix this problem?
No activity results to display
Show More
Leave a comment: