If you want to build something with a GUI and don’t mind a high overhead, then VB is your choice. Most companies need a simple application that modifies data of some sort, usually in a database. They also want the ability to change that program quickly and make the GUI very adaptable. Again...
Hackish solution, but it may give you some ideas:
//Create some flag
private int IgnoreListBoxChanges;
// Here is the Radio Button controller
... RadioButtonEventHandler(...)
{
IgnoreListBoxChanges = 1;
...Update List Box...
IgnoreListBoxChanges = 0;
}
// Here is the List Box...
I found that sending the command "sp_help" does the trick nicely. This returns all views, system tables, user tables, stored procedures, primary key constraints, and the default constraint. This data is presented in three columns, Name, Owner and Object_Type. I built a data reader...
I was wondering if there was a way to generate a list of all the tables in a database by using an SQL Query. I have found methods of doing this with Java using their libraries, but I would much rather do it using straight SQL. If this is not possible, perhaps there is a way using C#? Thanks...
VS.NET saves your project whenever you compile. If you compiled at anytime between your project load and the time you quit, then all of the changes that you made will be saved. This save isn't prompted, and I don't think there is a way to prompt the user. Otherwise, VS.NET should prompt you...
Wait a second, that link is bad, try here?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrtskhowtosenddocumentstoprinter.asp
Sorry bout that,
-Andrew R.
object oPrintPages = "1";
Looks like you are telling Word to print one page. Go here for some more info:
http://msdn.microsoft.com/library/default.asp?url=/libr...
-Andrew R.
I am also looking at making PDF fils on the fly. While I havent reached that stage of development, I have done some snooping around. This site looked promising:
http://www.o2sol.com/public/webui/home.shtml
-Andrew R
object oPrintPages = "1";
Looks like you are telling Word to print one page. Go here for some more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_ta/html/WordObject.asp
-Andrew R.
Change Color for an entire row in a list view:
// Assume we have a ListView with 3 Cols
string InsertItem[] = new string[3];
InsertItem[0] = "Text Here 1";
InsertItem[1] = "Text Here 2";
InsertItem[2] = "Text Here 3";
// Set up the color you'd like the row to be...
Are you trying to avoid the addition of the 12:00:00AM to the end of your date? If so, just try this (there probably is a better way, but this does work).
string[] parsed = new string[3];
char[] space = new char[1];
space[0] = ' ';
parsed = YourDate.Split(space, 3);
YourDate = parsed[0]...
I found a way to make this work! What I do is first create a new file that I will output. I save it with the settings I want, close it, and then re-open it. (Not 100% sure that I need to do this, but it works). I then open the first file that I would like to append, select it all, and copy...
Here is my situation. I have a collection of word files (.doc) that include tables, pics, headers, bullets, pretty much a little of everything. I need to select a set of these files, say 2 or 3, and then combine them together in order, add a table of contents, and save them as a new unique...
I have a list view that can have columns added and removed at run time. In this senes it can have anywhere between 0 and 30 columns, all user specified. Each column that is added has its header shown as well. What I need is the ability to click on the column header and display a context menu...
From looking at your code, it seems you are attempting to modify your connection while you are still using it. There are a few ways around this.
1. If you will only have one row to work with, and know this for sure, just do the Read (in your case read in your two values, and build the string...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.