|
Yea, It was exactly what i wanted.
Thanks alot for help Nick
Regards,
|
|
|
|
|
it try to use internetdial() to take numbers,but i can't because it take name of connection to dial with (existing connecton on pc) as a parameter
plz tell me how to make it take numbers
|
|
|
|
|
it try to use internetdial() to take numbers,but i can't because it take name of connection to dial with (existing connecton on pc) as a parameter
plz tell me how to make it take numbers
|
|
|
|
|
Hi,
ive downloaded the tablect-pc ink sdk from m$
i have a normal pc and only want to test the ink stuff with the mouse
(which works fine)
but i tested one of the handwriting recognizer demos in the sdk , and it says "no handwriting recognizer installed , you need atleast one"
so :
1) can i install one on my normal pc? (just to test the ink stuff)
2) where do i find them? , do i need to pay for them?
//Roger
|
|
|
|
|
This information is covered in the Tablet PC SDK, and it is not appropriate for this forum (C#).
Hardwriting recognizers are installed with Windows XP Tablet Edition, Windows CE, and should be available on an emulator but are not available on Windows XP HE or Pro. The Ink APIs are installed for the latter two Windows editions, but they only provide limited support.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
how to write "and not" in bitwise combination. I know | and & but i do not know how to exclude from the bitwise combination using the and not...
for example in the createparams override in the control exstyle; we can add a exstyle using | so how can i remove a style?
|
|
|
|
|
Hi,
How about you do a bitwise & and then invert the result (~).
Hope that helps.
Pankaj
Without struggle, there is no progress
|
|
|
|
|
many thanks. I'll try it. Thank you again.
|
|
|
|
|
Dear Folks,
I am new to C#. I was trying to write the following code. I am facing some problems. Can anyone please help me out.
Debashish
Code:
public delegate void EventHandler();
public class Button
{
public event EventHandler click;
}
public class Form
{
Button b1 = new Button();
public Form()
{
b1.click += new EventHandler(button_click);
}
void button_click()
{
Console.WriteLine("Button was Clicked");
}
}
public class MainClass
{
public static void Main()
{
Form f1 = new Form();
// The problem is here. when I type and press the . i.e. f1. The Button Class is not displayed. If I get f1.Button.click my click event will get fired.
}
}
Debashish Gupta
EMail Address: debashish_shona_99@yahoo.com
|
|
|
|
|
debashish_shona_99 wrote:
public delegate void EventHandler();
You should not redefine eventhandlers or classes (like button). I suggest reading an intro 1st to get the hang of object orientated progarmming,.
Try this instead:
using System;
using System.Windows.Forms;
class MyForm : Form
{
Button b1;
public MyForm()
{
b1 = new Button();
b1.Dock = DockStyle.Fill;
Controls.Add(b1);
b1.Click += new System.EventHandler(button_click);
}
void button_click(object sender, EventArgs e)
{
Console.WriteLine("Button was Clicked");
}
static void Main()
{
Application.Run(new MyForm());
}
}
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Thank you leppie. Merry Christmas and Happy New Year.
|
|
|
|
|
If you are expecting the button to be displayed on the form, I think you may be meaning to use System.Windows.Forms.Button
As it stands now, you are simply creating a class called "Button" in whatever namespace you have listed in your source code that has an event called "click". It has no relation to the button you find on Windows Forms.
Try this instead:
using System;
using System.Windows.Forms;
public class MyForm : Form{
protected Button button1;
public MyForm(){
button1 = new Button;
button1.Click += new EventHandler(button1_Click);
this.Controls.Add(button1);
}
private void button1_Click(object sender, EventArgs e){
MessageBox.Show("Button Clicked!");
}
public static void Main(){
Application.Run(new MyForm());
}
}
Charlie
if(!curlies){ return; }
|
|
|
|
|
|
But say if I was not using forms and I was supposed to display the line "Button was clicked" at the console. I do not want to use the form class. I am writing a console application and not a windows application. I still want the event to be fired. then what? My code I want to actually do that. Target the display to the Console.
|
|
|
|
|
debashish_shona_99 wrote:
Target the display to the Console.
I not touching this with a 40" pole!
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
debashish_shona_99 wrote:
Target the display to the Console.
I'm not quite sure what you're going for here.
Calling your classes "Form" and "Button" doesn't make a whole lot of sense in a non-GUI app. Not to mention the idea of "clicking" something is a GUI concept.
That said, there's nothing in your Button class that actually fires the event.
You can add a public method, such as PerformClick() that call a protected method, such as OnClick(), which then fires the event.
public void PerformClick(){<br />
this.OnClick();<br />
}<br />
protected void OnClick(){<br />
if(Click != null){ Click(); }<br />
}
Then from the Form class:
button1.PerformClick() will cause the event to be fired.
Charlie
if(!curlies){ return; }
|
|
|
|
|
Sorry Charlie I got disconnected. I wish you Merry Christmas and a Very Happy New Year in advance. But I intend to target the Console. This is a console application and not a windows application. I want to display the line "Button was clicked" on the Console. But I still want to use the event and delegate etc. i.e. My event will get fired when I call it from the Main. i.e. I will create a Form Object from Main to call the form class and I will type Form.Button.click. this is when the event will be fired.
|
|
|
|
|
Does anybody know how can I determine what keys are being pressed within other applications? For example I want to know everything typed in Macromedi Flash environment...
I greatly appreciate your answers
Don't forget, that's Persian Gulf not Arabian gulf!
|
|
|
|
|
How would I go about doing a task such as this?
|
|
|
|
|
|
I can't seem to find what you suggested.
|
|
|
|
|
hi, im new to c sharp. i'd like to know how do i add a form to an existing project. and how do i point to it, thx.
Asg58
|
|
|
|
|
This has been covered many times in the past - including a discussion recently. Please search the C# forum comments for links and information. The is a Search Comments link at the top of the messages view.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I've setup a browser in an application similar to what has been explained in this article, when I browse around to one or two different HTML files and then go to a powerpoint document things work fine. If I check out more than one or two HTML files and then go to a powerpoint document, I'm able to click and advance one slide, but further mouse clicks do nothing, not even right clicking. At this point I'm able to use the mouse wheel or the scrollbar on the browser to advance, then everything works fine again.
I've been searching on msdn for any info on using powerpoint within the browser control but haven't been able to find anything yet.
|
|
|
|
|
My web calendar control is correctly populating each calendar cell with the course and time as programmed. Problem: it's creating twins! Each listing is created twice. Stepping through the code revealed that each calendar day is being rendered twice. What do I need to do to nonduplicated entries?
Code Follows:
protected void C1DayRender(object sender, DayRenderEventArgs e)
{
if(courseTable.Rows.Count>0)
{
CalendarDay d = ((DayRenderEventArgs)e).Day;
TableCell c = ((DayRenderEventArgs)e).Cell;
DateTime tempDate;
foreach(DataRow dr in courseTable.Rows)
{
tempDate = (DateTime)dr["sDate"];
if(tempDate.ToShortDateString() == d.Date.ToShortDateString())
{
string s1 = " " + dr["CourseName"] + " " + tempDate.ToShortTimeString();
c.Controls.Add(new LiteralControl(hypRegister.Text = s1));
}
}
}
}
I'm on a crunch deadline, and I think I am just missing a piece of code here to get this function to move to the next date after grabbing any matches in the container.
Thanks, Sally Lay
Sally Lay
|
|
|
|