|
Dear All,
I am calling AcceptChanges in DataTable after adding some rows to the datatable, but that is not affecting the row status.
Please let me know what are the conditions, when the Acceptchange will not take affect.
thanks in advance
Contact him at: hasansheik@hotmail.com
hasansheik@yahoo.co.in
hasansheik@lycos.com
Contact him at: hasansheik@hotmail.com
hasansheik@yahoo.co.in
hasansheik@lycos.com
|
|
|
|
|
Hi Guys I'm still new in development,I need a C# code to scan a document & to save it to the DB pls help..
|
|
|
|
|
Dear All,
I am calling AcceptChanges in DataTable after adding some rows to the datatable, but that is not affecting the row status.
Please let me know what are the conditions, when the Acceptchange will not take affect.
thanks in advance
Contact him at: hasansheik@hotmail.com
hasansheik@yahoo.co.in
hasansheik@lycos.com
|
|
|
|
|
If you use binding you have to call EndCurrentEdit method
BindingManagerBase bmText = this.BindingContext[textBox1];
bmText.EndCurrentEdit();
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Hello !
I am developing a Windows base application in Visual Studio 2003 by using C# as a language i am using Datagrid Control I have two problems one in Datagrid and one in application can anyone resolve it????
(1). I want when a user clicks any column of datagrid a whole row of selected column must be selected how is it possible ??
(2). When I run application it also shows Taskbar of the System i don't want to show this taskbar I want to show application in full screen of Monitor without any Taskbar
U can also email me the solution at my email address abubakar.malik@gmail.com
Regards,
Abubakar
|
|
|
|
|
I need to develop a system that can transfer data from 1 pc to another pc using dialup because the user dont want use any FTP service.. so i cannot use any isp services
so i think i need to create a service at one side that can accept called from another side and get the transaction and stop the connection...
and i need to create i utlity that can dialup and get data and disconnect..
2 utility 1 dialup and 1 accept call..
how do transfer this to my coding any example or source that i can use.. in c#...
or is there any otherway for me to settle this issue.
thanks
|
|
|
|
|
I have a case which i run the sql statement from my c# application..
becasue the query is big and dont have indexed on the table sometimes i got the timeout error
how so i set the timeout period..
i cannot change the database structure cause is it in use and they dont do want to make any changes to it..
any sugesstion..
|
|
|
|
|
Try this.
Set the 'CommandTimeOut' of the Connection and the SQLCommand object you r using to execute the sql to 0 (Zero)
Rohitha M.Hewa
Senior IT Executive
Naturub Group of Companies - Sri Lanka
|
|
|
|
|
That is dangerous because the application will block until SQL Server returns the answer. You should always put an acceptable upper limit so that control will eventually return to the application.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
|
|
|
|
|
I use crystal reports 9 as my reporting tool for my c# applications. For the reports which I need some kind of processing (calulations etc..) what I do is do all the processing in C# code and pass a data set to the 'SetDataSouce' method of the ReportDocument object in c# code where I call the report (I am using crystal report engine to call the reports in my c# application and to pass the paramenter fields, to set the selection formula etc.. at runtime)
This mechanism works fine in the computer where I develop my application. But once I make a setup package in install the application in a user machine (I installed MDAC7, .Net 1.1 framework, Crystal reports 9 and then my setup package in the user machine) the report does not show any data.
I user visual studio 2003. .net framework 1.1
Pls help me...
Thanks
Rohitha M.Hewa
Senior IT Executive
Naturub Group of Companies - Sri Lanka
|
|
|
|
|
Hi,
I am working with C# web forms. I want to send a copy of all the aspx files to another folder after the project complied. Do you have any idea?
Thanks and Regards!
|
|
|
|
|
To copy a site, you also need to copy the binary, and to reset the folder in IIS.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hi,
Can you tell me in more details.
Thanks!
|
|
|
|
|
Hi,
That is good. Can you please tell me in more details.
|
|
|
|
|
What do you need to know ? Do you know how to use IIS ? Do you know what IIS is, or has the IDE just set that stuff up for you ? Or are you using one of the newer versions with a web server built in ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi friends,
I wish to create a playing kit for kids ..
One of it includes, to design many boxes like what we have for "Match the following" in our academics....
In Box1---B,F,L,P,D...(jumbled alphabets)
In box2---Lamb,Dog,Box,Fish,Peacock...(many words as match for the jumbled alphas)..
Kids have to match the alphabet to the right word using a line drawn when they drag items and match as wat we do in defining relationship diagram ib Access....
Could anyone help me in doing this?
Thanx.....
|
|
|
|
|
If you look for Doodle, you'll find a GDI+ paint program I wrote here on CP. It shows how to do a line drawing tool, which is basically what you're talking about.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Chris,
The Url is not displaying the page...
Some error has occured....(i want in C#.NET)..
Kindly help me...
Thanx
|
|
|
|
|
Hai,
I need to do the actions when the mouse is down or up or moved....
How can i call the painteventargs in the Mouse events?
Kindly help .....
|
|
|
|
|
hi!
you just call the Invalidate method. this will force the control to repaint.
hope that helps!
|
|
|
|
|
thanks friend,
It works....
I need another help..A line is drawn for matching and then when i try to draw another line sustaining the previous drawn line too,its not working..
When i draw another line,the previous line vanishes....
Help me...
Thanx again..
|
|
|
|
|
your welcome!
sorry but it's not that clear to me...
can you include the code for drawing the lines so i can check where the error is?
thanks!
|
|
|
|
|
Hi friend,
this is the coding...Wht i mean is,first i draw a line.the when i use the mouse to draw another line ,first line vanishes...
This is the problem...Help me.
<br />
public void OnPaint(object sender,PaintEventArgs e)<br />
{<br />
Graphics g=this.CreateGraphics();<br />
Pen pen=new Pen(Color.Magenta);<br />
Point p1=new Point(index1,index2);<br />
Point p2=new Point(index3,index4);<br />
g.DrawLine(pen,p1,p2);<br />
this.ResetMouseEventArgs(); <br />
}<br />
public void mouseUp(object sender,MouseEventArgs e)<br />
{<br />
index3=e.X;index4=e.Y; <br />
this.Paint+=new PaintEventHandler(this.OnPaint); <br />
Invalidate();<br />
}<br />
public void mouseDown(object sender,MouseEventArgs e)<br />
{<br />
index1=e.X;index2=e.Y; <br />
}<br />
|
|
|
|
|
i try to run what you've got and figured out what the cause of your problem...
It's because you didn't store the previous lines coordinates to a collection or array.
and because you call the Invalidate method,this will repaint the whole control that means it will clear all what you've drawn before.
so my solution was to put the coordinates in an arraylist and loop it on the OnPaint method. i used this on a simple form and it works fine.
here's the code
<br />
private ArrayList m_arlPoint1 = new ArrayList();<br />
private ArrayList m_arlPoint2 = new ArrayList();<br />
<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
base.OnPaint(e);<br />
<br />
Pen pen=new Pen(Color.Magenta);<br />
Point pt1, pt2;<br />
for (int i = 0; i < m_arlPoint1.Count; i++)<br />
{<br />
pt1 = (Point)m_arlPoint1[i];<br />
pt2 = (Point)m_arlPoint2[i];<br />
e.Graphics.DrawLine(pen, pt1, pt2);<br />
}<br />
<br />
}<br />
<br />
<br />
protected override void OnMouseUp(MouseEventArgs e)<br />
{<br />
m_arlPoint2.Add(new Point(e.X, e.Y));<br />
Invalidate();<br />
}<br />
protected override void OnMouseDown(MouseEventArgs e)<br />
{<br />
m_arlPoint1.Add(new Point(e.X, e.Y));<br />
}<br />
<br />
hope this will solve your problem!
|
|
|
|
|
Thanks a lot for ur timely help...
Sorry for disturbing again and again...
But if i override the mouse events...Foll error is displayed
..Projects\WindowsApplication2\WindowsApplication2\Form1.cs(150): 'WindowsApplication2.Form1.mouseUp(System.Windows.Forms.MouseEventArgs)': no suitable method found to override
...Projects\WindowsApplication2\WindowsApplication2\Form1.cs(157): 'WindowsApplication2.Form1.mouseDown(System.Windows.Forms.MouseEventArgs)': no suitable method found to override
How to overcome this?(eventhandlers for these events needed?)...
|
|
|
|