|
hi,
i am using datetimepicker and set the custom property to HH:mm:ss and i am gettin too.
now my question is whenever i enter the hours, the cursor should point to minute and same as if i enter minute cursor should point to second. automatically
how can i do tht
help me pls
WithRegards
prasad
-- modified at 4:13 Friday 13th April, 2007
|
|
|
|
|
hi
I want to insert data directly in datagirdview and i want validation on cell when i leave cell .
thanks
|
|
|
|
|
Try Like this
public class custDataGrid:DataGrid<br />
<br />
{<br />
<br />
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)<br />
<br />
{<br />
<br />
if(msg.WParam.ToInt32() == (int) Keys.Enter)<br />
<br />
{<br />
<br />
if( this.CurrentCell.ColumnNumber == 1 )<br />
<br />
{<br />
<br />
string userid = this[this.CurrentRowIndex,0].ToString();<br />
<br />
string passwd = this[this.CurrentRowIndex,1].ToString();<br />
<br />
<br />
<br />
<br />
}<br />
<br />
SendKeys.Send("{Tab}");<br />
<br />
return true;<br />
<br />
}<br />
<br />
return base.ProcessCmdKey (ref msg, keyData);<br />
<br />
}<br />
<br />
<br />
<br />
}<br />
<br />
Regards,
Satips.
|
|
|
|
|
hi
i wont to know how to statubar
especially accordingly to my download how can i change my statubar or progressbar value
please help me if u have any articles...
bye bye
|
|
|
|
|
|
Hi,
The following code snippet can help you.
progressBar1.Maximum = 100;
progressBar1.Minimum = 0;
for(int i=0;i<100000;i++)
{
progressBar1.Value = (100*i)/100000;
}
Set the Maximum, Minimum and Value property of the progress bar based on the progress of your operation
Regards,
Murali
|
|
|
|
|
When I use this code
Process myProc;
myProc=Process.Start("notepad", "d:\\myText.txt");
myProc.Close();
there are several instances of the myText.txt open, I just need one.
thanx in advanced
|
|
|
|
|
picasso2 wrote: there are several instances of the myText.txt open, I just need one
Works like a charm for me. Are you saying there are multiple instances of Notepad open, all having opened myText.txt?
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Count how many instances are open. Now, that's how many times this code has been executed.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Try this
Process myProc = new Process();
myProc = Process.Start(@"C:\Test.txt");
myProc.Close();
I hope this will work.
|
|
|
|
|
bhavik,
It is just a button so when it is clicked, the code is executed.
private void btnEdit_Click(object sender, EventArgs e)
{
Process myProc = new Process();
myProc = Process.Start(@"test.txt");
myProc.Close();
}
still opens more then one instance
|
|
|
|
|
Set a breakpoint. The only *possible* explanation is that it's running more than once.
Process.Start(@"test.txt");
should be all you need to just run it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a cystalreport connect with three storeproceduce (sp_name1, sp_name2,sp_name3, username='sa', server='m', database='a'). At my computer was connect 'ok', but if change server='alice' is print report error 'Failed to open a rowset'.
Help me! Thank you very much.
nguyen kiem
|
|
|
|
|
You have to review / check all the fields in your crystalreport file, see to it that all FIELDS you use should be the same as the one in your database. After that click the "verify database" to update you C.R. File. Message will appear "database updated".
Everytime you update the tables that you use in your crystal report you should always "click" update database in your CR file otherwise all the updates in your table will not be reflected in your C.R.
I always encouter that problem when I'm in hurry. Try it and everything will be ok.
Regards,
Satips.
|
|
|
|
|
On this site, i only managed to found codings for visual studio 2003 for web service authentication. Can someone please supply me with codings to do for visual studio 2005 web service authentication.
|
|
|
|
|
|
Yeah a good article !!! Tells about the process required for authentication. I would also suggest that you google for the key words and you will find even more !!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi,
I have a stupid question. I need you help me.
I want to display only PurchaseOrder field in horizontal direction instead of vertical direction in Crystal Report of VS2005
Like this: PO1 PO2 PO3 PO4 ....
Not like default
PO1
PO2
PO3
PO4
...
Help me. Thanks in advance
It seem to be a solution or an answer.
|
|
|
|
|
Did you try with Cross tab.
Regards,
Satips.
|
|
|
|
|
Thank you in advance.
You are great and so is Cross-tab.
Thanks many thanks....
It seem to be a solution or an answer.
|
|
|
|
|
I have a Control and a Form. The Form is a member of the Control. I exposed the form on the Control using a get property...
class MyWindow : Form<br />
{<br />
....public int MyProp<br />
....{<br />
........get... set...<br />
....}<br />
}<br />
<br />
class MyControl : Control<br />
{<br />
....public MyWindow Window<br />
....{<br />
........get... set...<br />
....}<br />
}
This of course shows up in the property Window of the Control and has all the Form properties and my properties.
I however don't want to see any of the Form properties, only the Window ones. So I decided to write an interface...
<br />
interface Window : IComponent<br />
{<br />
....int MyProp<br />
....{<br />
........get; set;<br />
....}<br />
}<br />
<br />
class MyWindow : Form, Window<br />
{<br />
...<br />
}<br />
<br />
class MyControl : Control<br />
{<br />
....public Window Window<br />
....{<br />
........get... set...<br />
....}<br />
}<br />
I found out the interface will not show up in the designer if it doesn't inherit from IComponent.
However, even when I do this all of the Form properties are still shown.
Does anyone know how to fix this? At the moment I have settled for pass-through properties on my Control. (And I don't want to override evey method add the Browsable(false) attribute to each one
Thanks,
Chris McGrath
-- modified at 21:04 Thursday 12th April, 2007
|
|
|
|
|
You can try to create a custom TypeConverter[^] for your window, which filters the Window properties.
[Converter(typeof(MyWindowConverter ))]
class MyWindow : Form
{
...
}
or maybe:
[Converter(typeof(MyWindowConverter ))]
interface Window : IComponent
{
...
}
class MyWindowConverter : TypeConverter {
override GetPropertiesSupported()
{
return true;
}
override GetProperties(...)
{
}
}
Sorry i don't have a complete answer, but i hope this gives you a start.
If you don't get it working please reply so i can research further.
- alwinus
|
|
|
|
|
I think these attributes might be what you're looking for:
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
Tris
Edit: Just re-read your post. Nevermind.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
i have a barcode scanner and i need reading from the barcode scanner By control(SerialPort),
how i do that?
123
|
|
|
|
|
Your scanner should come with drivers which handle the reading. They often have an option to return the code as a number.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|