Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
AnswerRe: Rendering application in inverse (negative) colors Pin
User 66584-Aug-08 1:41
User 66584-Aug-08 1:41 
GeneralRe: Rendering application in inverse (negative) colors Pin
Bekjong4-Aug-08 1:48
Bekjong4-Aug-08 1:48 
GeneralRe: Rendering application in inverse (negative) colors Pin
#realJSOP4-Aug-08 4:22
mve#realJSOP4-Aug-08 4:22 
GeneralRe: Rendering application in inverse (negative) colors Pin
Bekjong4-Aug-08 4:41
Bekjong4-Aug-08 4:41 
Questioncombine two XML files having different schemas using ADO.net Pin
abja3-Aug-08 23:07
abja3-Aug-08 23:07 
QuestionIs there any way to retrive the keyboard blink cursor pos? Pin
prashanthmallu3-Aug-08 23:01
prashanthmallu3-Aug-08 23:01 
AnswerRe: Is there any way to retrive the keyboard blink cursor pos? Pin
Jaime Olivares3-Aug-08 23:42
Jaime Olivares3-Aug-08 23:42 
QuestionGraph Problem in c# Windows Form when using ADO.NET Pin
nt_virus3-Aug-08 23:00
nt_virus3-Aug-08 23:00 
Hello. I m stuck with a problem of graph at the end.

I downloaded a source to create a graph in VS 2005. When I run the source it works fine..

There are two ListBoxes in that source, 1st (ul_lbx_DataKey) containing String and 2nd(ul_lbx_DataValue) containing, Float as well as INT...

I want to add data on those listbox from my SQL Server through ADO.NET ... I can add those successfully, but unfortunately, when i click on SHOW GRAPH button, Error Throws..

*There are two listbox 1 and listbox 2
*Datakey = listbox 1 ,, value == listbox2
*No problem in ListBox 1
*Problem in listbox 2.
*When I add STRING item in listbox2, It throws and INCORRECT FORMAT error ////////// --- According to programming this is correct.
*When I add INT item in listbox2, NO error ////////// --- According to programming this is correct.
*When I add FLOAT item in listbox2, NO error ////////// --- According to programming this is correct.
*In database, I changed the datatype of the column binded in listbox 2 .. First I did varchar == ERROR // According to problem, this is correct
*Second, int == Throws Error /// This is WRONG.
*Third FLOAT == Throws Error // This is wrong either.
----------------------------

System.FormatException was unhandled
Message="Input string was not in a correct format."
Source="mscorlib"
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Single.Parse(String s)
at GraphV1.Form1.ui_btn_Show_Click(Object sender, EventArgs e) in C:\Documents and Settings\nt_virus - Dell\Desktop\temp\GraphV\GraphV1\GraphV1\Form1.cs:line 46
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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at GraphV1.Program.Main() in C:\Documents and Settings\nt_virus - Dell\Desktop\temp\GraphV\GraphV1\GraphV1\Program.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

---------------------------------------------


I would be very glad, if you will please solve this problem for me.. I wasted my 2 days in it...

Please download the source of that graph from here -- http://is.gd/1dT1

Also, please download my modified graph source from here -- http://is.gd/1dT8

If needed, my small database for test purpose from here -- http://is.gd/1dTc
Question[Message Deleted] Pin
AtulRane3-Aug-08 22:56
AtulRane3-Aug-08 22:56 
AnswerRe: Drawing Polygon Pin
User 66583-Aug-08 23:02
User 66583-Aug-08 23:02 
General[Message Deleted] Pin
AtulRane4-Aug-08 1:38
AtulRane4-Aug-08 1:38 
GeneralRe: Drawing Polygon Pin
User 66584-Aug-08 1:48
User 66584-Aug-08 1:48 
GeneralRe: Drawing Polygon Pin
AtulRane4-Aug-08 1:56
AtulRane4-Aug-08 1:56 
QuestionDataGridView Column headercells and UserControl? Pin
kbalias3-Aug-08 22:36
kbalias3-Aug-08 22:36 
AnswerRe: DataGridView Column headercells and UserControl? Pin
dan!sh 3-Aug-08 23:02
professional dan!sh 3-Aug-08 23:02 
Questioncommiting changes thru table adapter Pin
benjamin yap3-Aug-08 22:01
benjamin yap3-Aug-08 22:01 
QuestionException when accessing Properties.Settings Pin
buchstaben3-Aug-08 20:44
buchstaben3-Aug-08 20:44 
AnswerRe: Exception when accessing Properties.Settings Pin
Guffa3-Aug-08 23:28
Guffa3-Aug-08 23:28 
QuestionXML communication via TCP/IP Pin
pete007_ke3-Aug-08 20:01
pete007_ke3-Aug-08 20:01 
AnswerRe: XML communication via TCP/IP Pin
stancrm3-Aug-08 20:12
stancrm3-Aug-08 20:12 
AnswerRe: XML communication via TCP/IP [modified] Pin
dan!sh 3-Aug-08 21:59
professional dan!sh 3-Aug-08 21:59 
AnswerRe: XML communication via TCP/IP Pin
Manoj Tarkar1-Aug-11 23:30
Manoj Tarkar1-Aug-11 23:30 
QuestionComboBox into DataGridView Pin
M Riaz Bashir3-Aug-08 19:43
M Riaz Bashir3-Aug-08 19:43 
AnswerRe: ComboBox into DataGridView Pin
Sam Xavier3-Aug-08 19:49
Sam Xavier3-Aug-08 19:49 
QuestionMessage box is displayed twice, why this happens ? Pin
rajesh99223-Aug-08 18:59
rajesh99223-Aug-08 18:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.