|
Different countries maybe? They are probably not aware that we refer to people by their first name in the west.
|
|
|
|
|
I am getting the following error when I try to run this application on another CPU
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'ZMap_Tester.Util' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040112): Creating an instance of the COM component with CLSID {648A5600-2C6E-101B-82B6-000000000014} from the IClassFactory failed due to the following error: 80040112.
at ZMap_Tester.Util..cctor() in C:\ZMap Tester\Program\Util.vb:line 13
--- End of inner exception stack trace ---
at ZMap_Tester.Testcontrol.Connect_Click(Object eventSender, EventArgs eventArgs) in C:\ZMap Tester\Program\Testcontrol.vb:line 23
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Line13 is Public MSComm1 As New MSCommLib.MSComm
line23 is MSComm1.CommPort = t
I have tried registering MSCOMM32.ocx and it did not fix the problem
any suggestions??
Bob Nesbitt
|
|
|
|
|
Is this application converted from vb6 to .Net?
Do you receive the mentioned error on all the machines or just this specific?
~Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Looks like this "ZMap_Tester" library needs to be licensed
|
|
|
|
|
I have created parameter fields in Crystal Reports using Field Explorer, and everytime I execute my program, a prompt appears asking for the parameter values.........instead I want it to be loaded directly from the user defined Combobox selection...........pls help..........TIA
|
|
|
|
|
I am pretty sure that will be one of the first help topics in the documentation (well I know this, because I had to look for it myself the other day, sorry no link).
|
|
|
|
|
so how did u resolved it...........any idea abt it...........thanks leppie.........!!!
|
|
|
|
|
Hello All -
I am looking for a C# Example using an Access DB without DataGrids.
Any Help would be appreciated.
Thanks!
|
|
|
|
|
It's hard to work out hwat you're asking here. Do you want to show one record per page ? Do you want to create a grid without using the control ( and if so, why ) ?
Once you've called your data source, be it access or whatever, you can display your data any way you want. What is it you're looking for here ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am want to update one record at a time. I am looking to do a very simple and small maintenance program for contacts.
Thanks!
|
|
|
|
|
OK - so you add controls to show the data for the contact, whatever that is, and a button that calls SQL to update that contact with whatever the user types in.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Here is the issue that I am having:
When I fill out the form and leave some of the fields blank I get an SQL Error message that states this: No value given for one or more required parameters.
Here is the code block that does the update:
conProspect.Open();
OleDbCommand cmd = conProspect.CreateCommand();
cmd.CommandText = "Update Contacts set Last_Name=" + "'" + txtLastName.Text + "'" + ", " + "First_Name=" + "'" + txtFirstName.Text + "'" + ", " + "Company_Name=" + "'" + txtCompany.Text + "'" + ", " + "Job_Title='" + txtJobTitle.Text + "'" + ", " + "Business_Phone='" + txtBusPhone.Text + "'" + " Where Contact_ID =" + lngContactId;
cmd.ExecuteNonQuery();
conProspect.Close();
Thanks for the help
|
|
|
|
|
you need to read up on SQL injection attacks, unless you trust everyone who will use this code.
kruegersck wrote: + "'"
Why put this seperately ?
You should take the string you generate, copy it into Access and run it from there, or at least look at it to see why it's wrong. Stuff like Company_Name = '' shouldn't cause an error unless the DB does not allow the strings to be empty.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
This was one sample I found on the net. I am new to c# so I am looking for a good example to work off of.
If you know of one please add to post.
Thanks!
|
|
|
|
|
OK - how much of this code do you understand ? Copying examples from the web is not a good way to learn, you should work through a book first, then look for examples, but also look to fully understand any code you use.
There's a good article on SQL injection on code project, just search for it.
So, when you say you found an example, does this code match with your database schema at all ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I understand all the code just fine. I found the issue with one of my data base fields. What is the best practice for updating my table? This application will run on user desktop and it is not web based?
|
|
|
|
|
Well, best practice is to use a parameterised query or a stored proc. I suggest searching for hte article on SQL injection and reading it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for the info! I will read up on these two issues.
|
|
|
|
|
I'm unable to open up the "Field Explorer" of Crystal Report for setting up the parameters.......... It's not separate, its integrated into VS.NET 2003............i know its kinda silly question, but i'm kinda messed up with that............so pls help with steps to bring it back...........
|
|
|
|
|
|
If you call 11 minutes a lot of time, you need to learn to be more patient! I have had problems that took months to solve.
|
|
|
|
|
Hi All,
I have a windows form program, which runs and compiles fine.
but along with the form window, there is a console window (black "command prompt" screen)
that also launches, none of my other window program have this behavior.
where can I stop the black window from launching?
I looked at all the code and can't find it, so I'm assuming is some settings that I need to turn off.
again, thank you all for all the help you have provided to this newbie.
-JC
|
|
|
|
|
Your project thinks it is a console application.
Go to the project's properties and check that the "Output type:" setting is set to "Windows Application" and the "Startup object:" is set to your main WinForm's class.
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
Wow,
I must be blind, I went through that before and did not noticed that...
thank you for your help
-JC
|
|
|
|
|
I have a panel of (800 by 600) when i do a print preview I can see the complete panel but when i do the print it cuts the right side veritcal line. During the preview my panel right side border line still away from the margin line. Any idea please
|
|
|
|