|
No, that won't work. The Click event has the same information as DoubleClick : none. I ended up using MouseDown , which contains in its event arguments both the button and the number of clicks (to detect a double click). But thanks anyway!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Sorry;),I really wanted to write MouseDown ,I don't know what made me do Click .
|
|
|
|
|
Don't worry. I was trying to avoid messing with the double click time and all that to tell double-clicks apart from single-clicks, and that's why I didn't want to use MouseDown . But conveniently MouseEventArgs contains a very useful Clicks property
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
i'm in a serious need for a ping class( 100% working correctly )
that has a function take ip and send me any indicator whether this ip is connected or disconnected as soon as posible
i tried alot of functions and they all doesnt give me right answeres
|
|
|
|
|
If you followed thie link from the last answer you got, that code works fine. It more than likely has to be modified to work exactly how you want it and return the information you want.
You're not looking for "100% working correctly", the code in the example works.
You're looking for "100% working the way I want it to". Modify the code correctly, and it will.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Seconded!
Will you marry me?
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Sorry, But I'm already engaged!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In fingerprint recognition
the first step is core point detection
Centerpoint location is done to find the point of most curvature by determining the normal of each fingerprint ridge.and then following them inwards towards the center.
QUESTION IS
Now I want to ask How can I implemant
2-D Guassian Lowpass Wiener Filter to finger print
How can I divide the input fingerprint image into non-overlapping block of sze 10*10
????
cyma
|
|
|
|
|
In brief...I've a MDI application with this MDI childs(at the moment all MDI childs are closed):
1)MDIFORM (MDI container)
2)FORM1 (MDI form child)
3)FORM2 (MDI form child)
I press a menu on MDIFORM that opens FORM1.
In FORM1 there is a texbox.
On keyPress event of textbox I write in a MSAccess table what I'm writing in the textbox.
On Load event of FORM1 I open FORM2 where is a datagrid.
The code is:
public class FORM1: System.Windows.Forms.Form
{
private FORM2 form2=null;
private void FORM1_Load(object sender, System.EventArgs e)
{
if (this.form2==null)
{
this.form2=new FORM2();
this.form2.MdiParent=this.MdiParent;
}
this.form2.Show();
}
private void InsertString(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
// -- INSERT DB
}
}
In FORM2 I've a datagrid where I show results written before in last MSAccess table.The code is this:
public class FORM2 : System.Windows.Forms.Form
{
private System.ComponentModel.Container components = null;
private System.Windows.Forms.DataGrid dataPreResult;
public FORM2()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.dataPreResult = new System.Windows.Forms.DataGrid();
((System.ComponentModel.ISupportInitialize)(this.dataPreResult)).BeginInit();
this.SuspendLayout();
//
// dataPreResult
//
this.dataPreResult.AllowSorting = false;
this.dataPreResult.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dataPreResult.DataMember = "";
this.dataPreResult.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataPreResult.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.dataPreResult.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataPreResult.Location = new System.Drawing.Point(0, 0);
this.dataPreResult.Name = "dataPreResult";
this.dataPreResult.ReadOnly = true;
this.dataPreResult.RowHeaderWidth = 10;
this.dataPreResult.Size = new System.Drawing.Size(232, 613);
this.dataPreResult.TabIndex = 0;
//
// FORM2
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(232, 613);
this.Controls.Add(this.dataPreResult);
this.Location = new System.Drawing.Point(600, 10);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FORM2";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Load += new System.EventHandler(this.StringPreResult_Load);
((System.ComponentModel.ISupportInitialize)(this.dataPreResult)).EndInit();
this.ResumeLayout(false);
}
#endregion
public void StringPreResult_Load(object sender, System.EventArgs e)
{
ReadResults();
}
public void ReadResults()
{
OleDbDataAdapter da = new OleDbDataAdapter();
OleDbConnection con =new OleDbConnection();
OleDbCommand cmd = new OleDbCommand();
DataTable dt =new DataTable();
dt.Clear();
con.ConnectionString=<connectionstring>;
con.Open();
cmd.Connection = con;
cmd.CommandText = "SELECT * FROM TABLE";
da.SelectCommand = cmd;
da.Fill(dt);
dataPreResult.SetDataBinding(dt,"");
cmd.Cancel();
con.Close();
}
}
So now, my problems is: how can update datagrid in FORM2 from FORM1 when I call keypress event on FORM1 textbox(InsertString in example code)?
Thanks for any help!!!
|
|
|
|
|
Uh...What you need to do is maybe set a timer in form 2 to refresh the data in the datagrid..
I have an app that I do something similar in, and all you need to do is call ReadResults() and do dataPreResult.Invalidate() (to make sure that it gets redrawn) every so often..I'm not 100% sure on that, but it should work.
Here's the relevant code:
Timer updateDataGrid = new Timer();
<br />
public FORM2()<br />
{<br />
InitializeComponent();<br />
updateDataGrid.Interval = 60*1000;<br />
updateDataGrid.Tick += new EventHandler(doUpdate);<br />
updateDataGrid.Start();
}<br />
<br />
private void doUpdate(object sender, EventArgs e)<br />
{<br />
ReadResults();<br />
dataPreResult.Invalidate();<br />
}
|
|
|
|
|
No way...nothing happens...
|
|
|
|
|
Hello folks,
can anyone help me before i chuck my monitor accross the room. I need to convert the string "20050401" to a datetime of April 01, 2005, but i can't get it to work. He's my latest effort.
DateTime.ParseExact("20050401", "YYYYMMDD", null)
Any ideas?
|
|
|
|
|
Next time, save yourself the headache and read the documentation on the function your trying to use first. You're using the wrong format string and you can't pass null for the IFormatProvider parameter.
DateTime.ParseExact("20050401", "yyyyMMdd", Application.CurrentCulture.DateTimeFormat);
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, i need help!
I have a value on a textbox, but this textbox is visible= false. So, when i go to another page using Server.Transfer and i try to access it by Request.Form["TextBox] the page CANT see the value. What can i do?What control can i use to do this?
PD:The requirements dont let use Request.QueryString.
Thanks for ur help
BECK 7
|
|
|
|
|
Your questions really belongs in the ASP.NET Forum[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
well, i am talking about c# in asp.net
BECK 7
|
|
|
|
|
hmm but the fact that because textbox is not rendered into page (because visible=false), so you obviously can't acces it's value is not about C#, it's about IQ.
David
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
So, u mean there is no way i can get a value from a page to another? except with Session?
BECK 7
|
|
|
|
|
I didn't say that. I said why your solution failed
You can have <input type="hidden" value="pass_me_to_other_form" /> That way, you can acess its value same way as you tried with textbox.
David
"Stay Kul And Happy" I.A.
|
|
|
|
|
No, you're not talking about C# at all. You're talking about a TextBox on an ASP.NET Web Form. It doesn't matter what language your using, the problem is still the same.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I posted this on ASP.NET area and they send me here...so is asp.net with c# or c# on asp.net?..Anyway, it doesnt makes sense keep talking about this...
Thanks anyway...
BECK 7
|
|
|
|
|
I am using TotalRecorder(ww.highcriteria.com) in my application developed in C#. My Application inetract with TotalRecorder through COM. Total Recorder provides a sample in VC 6.0 for saving the recorded file at a specified folder location. I have converted the VC 6.0 code to C#, everything is working fine except when i call the method that saves the recorded files, the method takes variant as input, while the wrapper for this method generated by VS 2003 takes object as input. I passed him with the required parameters but it gives error 'Method Not Implemented'. Both the codes are given below. Please help me in conerting this VC code (variants) to C# (objects)
This is the code in VC 6.0
_variant_t vartFileName;
VARIANT vFmt;
vartFileName = cFileName;
vFmt.vt = VT_ERROR;
vFmt.scode = DISP_E_PARAMNOTFOUND;
g_pTRDoc->SaveAs(vartFileName, vFmt);
I have converted this in C# like this
string FileName = "c:\test.wav";
rec.ActiveDocument.SaveAs(FileName,System.Reflection.Missing.Value);
Thanks
Basit Tanveer
Software Engineer
|
|
|
|
|
hi i need running ping class to use it in my project
please if any one have any ,send it or send the link
i needed as soon as possible
or even send me link 2 any site i can use 2 search for one
|
|
|
|
|
|
I'm working on a Database project that has a person entering data in from a form, a Record of Service. I would like it so that when they type in the first part of the customers first or last name (seperate fields in the DB) that a list of options of customers comes up that matches what they are beginning to type in, they then can select the client 's name from the list, and the clients info will be filled in automatically.
What is the best way to accomplish this?
Thanks
|
|
|
|