|
thanks for the quick reply.. i was looking for some code using which i can finsh the map drawing quickly
|
|
|
|
|
I have created a progress form with a progress bar(Marquee) which i am trying to display while a stored procedure is run in the background which can take several minutes, the progres form works fine as does the stored procedure but the progress form will not display correctly while the stored procedure is being called, is there a way of forcing the form to display correctly and run while the SP is called in the background.
Any help would be greatly appreciated
many thanks
|
|
|
|
|
RichardContact-1 wrote:
s there a way of forcing the form to display correctly and run while the SP is called in the background.
Did you try to call the SP using another thread?
Regards
|
|
|
|
|
If you are calling the stored procedure from the main thread, it will be busy until the stored procedure completes. As all updates are handled in the main thread, your form will not be updated while the stored procedure is running.
Start a new thread that runs the stored procedure, that way the main thread can update the form while the stored procedure runs.
---
Year happy = new Year(2007);
|
|
|
|
|
Enter the site www.ou.edu.vn/diemthi. There r 2 textbox. Once i add 10360127 for both of username & password and click submit, the score page will occur.
I used the HttpWebRequest and NetworkCredential to send username & password with the request. But all i can recieve is the blank page with the banner only instead of the full score page .
Can u tell me the problem? I used the following URI in HttpWebRequest Create() method: "http://www.ou.edu.vn/EduNet/modules.php?name=diemthi&act=xl_xemdiemthi" Is it correct? If not, what URI should i use ?
|
|
|
|
|
Hi all,
Is there any free html editor available that can be used in ASP.Net, i tried on google,yahoo, i found FCK editor but its not working good.
Many Thanks adnan
|
|
|
|
|
|
Hi,
Thanks for repely.
I dont meant that, i want to get HTML Editor to use ASP.Net web forms.
Many Thanks,
adnan
|
|
|
|
|
FCK works fine. What problems are you having?
|
|
|
|
|
Thanks, when i get value of the fckgrid, it return me html, but when i am trying to store it in database (MS Access 203), it only stores first html tag, like page name , the rest one disapperar some where, i also did debuging the function which is inserting html gets full html, but i dont know y its not inserting .
And one more thing plz, how to deply it on server.
Many Thanks,
adnan
|
|
|
|
|
So, it works fine, and there's a problem in your code.
|
|
|
|
|
there's the Process class and it has this HandleCount property.
is there way to get these handles?
I'm trying to write app like Process Explorer but with logging capabilities.
life is study!!!
|
|
|
|
|
Quoted from MSDN: Handles provide a way for a process to refer to objects. A process can obtain handles to files, resources, message queues, and many other operating system objects. The operating system reclaims the memory associated with the process only when the handle count is zero.
These handles -as you can see-, are to resources, while the process itself has only one handle. You can get that single handle using the Process.Handle property. Other handles used by the resources are quite difficult to obtain.
Regards
|
|
|
|
|
"Other handles used by the resources are quite difficult to obtain"
well I found it quite difficult and thats why I'm writing here
life is study!!!
|
|
|
|
|
k. let's say I got these handles..
how to get registry keys and ports from them??
life is study!!!
|
|
|
|
|
How to make DataGridView column to input only numeric data, with filtering literals?
|
|
|
|
|
You can handle the KeyDown event and check if the character was a numeric or not. If not you should set e.SuppressKeyPress to true.
Regards
|
|
|
|
|
Hi.
Can someone tell me where/if I can find freeware graph/chart controls/libraries for .NET? I'm not interested in trial or evaluation versions of comercial libraries, but something basic and free. All I need is draw a simple, 2D bar chart on my C# Windows App.
Thanks.
|
|
|
|
|
There are lots of chart control in codeproject. Try to search it.
|
|
|
|
|
|
Let's say I have a cmdButton sitting on my form. It's a generic "Cancel" button, and I want it to perform different operations depending on which of my methods showed it.
Given that, how do I assign a handler to the Click event for the button?
I'm sure this is much more simple than I'm making it, but I've tried eleventy-seven different syntaxes, and I'm not getting it.
Thanks!
|
|
|
|
|
Well, Joe, this is how it appears in the Designer.cs code, if you allow VS to do it:
this.tsCmdBtn.Click += new System.EventHandler(this.tsCmdBtn_Click);
Does this help?
|
|
|
|
|
It sure does. Thanks, Batman!
|
|
|
|
|
Hey Joe, what about Psychoanalysis?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi all,
I am a beginner for C# and trying to study about ADO.NET. I wrote a simple application with a datagridview and three text boxes. I can populate data from table. Now I am trying to insert a record to a table. When I execute the following code, it is updating that table only a blank line. please can you help me to solve this problem? Or any other ways to update a record better than this?
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using System.Data.SqlClient;<br />
<br />
<br />
namespace FundOrg<br />
{<br />
public partial class frmBankDetails : Form<br />
{<br />
<br />
private DataSet dsBank;<br />
private SqlDataAdapter da = new SqlDataAdapter();<br />
SqlConnection myConnection = new SqlConnection();<br />
<br />
<br />
private static frmBankDetails frmB = null;<br />
public static frmBankDetails Instance()<br />
{<br />
if (frmB == null)<br />
{<br />
frmB = new frmBankDetails();<br />
}<br />
return frmB;<br />
<br />
}<br />
<br />
public frmBankDetails()<br />
{<br />
InitializeComponent();<br />
<br />
<br />
<br />
<br />
myConnection.ConnectionString = System.Configuration.ConfigurationManager.AppSettings["dbcon"];<br />
<br />
try<br />
{<br />
myConnection.Open();<br />
}<br />
catch (SqlException E)<br />
{<br />
MessageBox.Show("Connection Erro : " + E.Message);<br />
}<br />
<br />
<br />
SqlCommand cmd = new SqlCommand("SELECT * FROM Bank_Details", myConnection);<br />
<br />
<br />
da.SelectCommand = cmd;<br />
dsBank=new DataSet();<br />
da.Fill(dsBank,"Bank_Details");<br />
<br />
<br />
dgBankCode.DataSource = dsBank;<br />
dgBankCode.DataMember = "Bank_Details";<br />
<br />
<br />
dgBankCode.RowHeadersVisible = false;<br />
<br />
dgBankCode.Columns[0].HeaderText = "Bank Code";<br />
dgBankCode.Columns[1].Visible = false;<br />
dgBankCode.Columns[2].Visible = false;<br />
<br />
txtBankCode.DataBindings.Add("Text", dsBank, "Bank_Details.Bank_Code");<br />
txtBankName.DataBindings.Add("Text", dsBank, "Bank_Details.Bank_Name");<br />
txtAccNo.DataBindings.Add("Text", dsBank, "Bank_Details.Acc_No");<br />
dgBankCode.ReadOnly = true;<br />
}<br />
<br />
<br />
public void SaveEntry()<br />
{<br />
<br />
<br />
SqlCommand cmdUpdate = new SqlCommand();<br />
cmdUpdate.CommandType = CommandType.Text;<br />
cmdUpdate.CommandText = "INSERT INTO Bank_Details(Bank_Code,Bank_Name,Acc_No) VALUES('"+ txtBankCode.Text +"','"+ txtBankName.Text +"','"+ txtAccNo.Text +"')";<br />
cmdUpdate.Connection = myConnection;<br />
<br />
cmdUpdate.ExecuteNonQuery();<br />
<br />
<br />
<br />
}<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
}<br />
}<br />
And can anybody explain me, what are the good/bad coding practices with this?
Thanking you
|
|
|
|