I have wrote a program that can serialize and deserialize from xml to a class obj and vice versa. It works most of the time but every once in a while it bombs out giving me an exception that is "TypeLoadException" on this line...
XmlSerializer xml_serializer = new...
I am using SQL 2k5 and im trying to connect to my sql db on my site that is hosted by bluehost.com.... I have verifired my sql settings on the server with the bluehost tech support and they are all set correctly.
I tried your connection string but i get the same error.
Any other ideas of what i am doing wrong ?
BTW:
my_user_id and my_pwd are just place holders so i dont give my login away for free ;)
Thanks again!
Basically all i want to do it connect remotely to a SQL server on my
personal webpage that is hosted by bluehost.com
I have added a sql db on the site with a user name and password. I have also
added my IP to the white list and access host list for sql in cpanel.
Then I wrote a very small app...
I have a serial port connection... The serial port has the data received event registered with it.
I have an array of data. This data is to be written to a serial port.
When the user hits the start button a new thread is created and this loops through each index of the array and on each...
Im not totally sure at work i have full version so i cant check now but if it does it would prolly be in Other project types.... i could check when i get home.
Click one deploy is nice but in the final product are you actually going to use that ? I would recommend just adding a setup project to your current solution.
The setup project has a file system in it, you can view it by right clicking go to View and then File System.
You can add you project...
Cast the current item object at index i to the Business Object
and then you can access the ItemCode property for that Business Object.
for(int i = 0; i < this.comboBox.Items.Count; i++)
{
MessageBox.Show(((Business)(this.comboBox.Items[i])).ItemCode.ToString());
}
Thanks.
gpp
So then use System.IO to do so on load of the main form
string file_name = @"thisTestFile.txt";
string source_path = @"c:\";
string destination_path = @"C:\Documents and Settings\Laptop\My Documents\Visual Studio 2005\Projects\MyProject\MyProject\bin\Debug\";
void form_Load(object sender...
JurkMonkey
Process.Start(arg1, arg2) can take in two arguments, the exe and the arguments for the exe. I know because Ive used it like that many times.
Make a Setup Project that will install the EXE and all the supporting folders and files that are needed. You can specify every thing in the File System of the Setup file project.
To view the file system, right click on the SETUP Project in the project view and choose file system. This is where...
Like JurkMoney said use a Process to start it like this.
WINWORD.exe takes an argument of the path to the desired file as suggests here near the bottom of this article:
http://support.microsoft.com/kb/210565
So to open just pass the path as an argument into the process...
This is how i would go about it.
try
{
request = (HttpWebRequest)WebRequest.Create(uri);
request.Timeout = 10000;
request.AllowWriteStreamBuffering = false;
response = (HttpWebResponse)request.GetResponse()...
I would assume the pull down menu options are added at runtime initially. So I would also assume you have a function that reads the xml to retrieve these items and then adds each to the pull down menu collection list.
So when the window is closed how about removing all the items from the pull...
Yes you need to set up a thread. You can use the background worker, but my preference is using System.Threading.
Its farely simple to setup just make sure your function calls are thread safe, i.e. using BeginInvoke() and setting up delegate methods.
Anyone know why a form repaints so slow when scrolling ?
I just have a panel and some basic controls on it. And when i scroll the screen is repaints but its slow. I am building a smart device application so if theres any suggestions i would appreciate it even on some of the pc apps i have made...
I have a windows mobile form that contains textboxs, panels, checkboxes etc. When i scroll the form flickers. I know that you can use setstyle in pc apps but this is not available in compact framework.
Anyone know how to double buffer an entire form so it doesnt flicker when scrolling on .net...
I have figured out the solution. All I needed to do was included to respective .net compact framework cabs into my msi project. And then write another ini file.
Then in the custom installer i would register both ini files with the ceAppMgr. After registering I would would wait until that...
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.