Notifications - what am i doing wrong?

G

Guest

Code below:

// initalize function
not = new OpenNETCF.WindowsCE.Forms.Notification();
not.BalloonChanged +=new BalloonChangedEventHandler(not_BalloonChanged);
not.ResponseSubmitted +=new
ResponseSubmittedEventHandler(not_ResponseSubmitted);

// some other function
not.Caption = "Sync";
not.InitialDuration = 10;
not.Text = "<form method=\"GET\" action=notify><input type=button
name=OKbutton value=OK></form>";
not.Visible = true;

private void not_ResponseSubmitted(object sender, ResponseSubmittedEventArgs
respevent)
{
MessageBox.Show("raised");
}

No messagebox is raised when i click the OK button, where am i going wrong?

Thanks
 
G

Guest

Here's the html that worked for me:

string html = "<form method=\'POST\' action=>";
html += "<p>User-" + msgArgs[1] + "</p>";
html += "<p>Contract-" + msgArgs[2] + "</p>";
html += "<p>Go to " + caption + " screen?</p>";
html += "<p align=center>";
html += "<input type=button name='CMD/" + msgArgs[0] + "/" +
msgArgs[1] + "/" + msgArgs[2] + "/" + msgArgs[3]+ "' value='OK'>";
html += "<input type=button name='CMD/" + 1 + "' value='Cancel'>";
html += "</p></body></html>";
 
G

Guest

What is msgArgs[1] ?

I think the CMD part is what i must be missing, but reading the
documentation i thought if you use CMD then makes it NOT fire the event??



Alex Yakhnin said:
Here's the html that worked for me:

string html = "<form method=\'POST\' action=>";
html += "<p>User-" + msgArgs[1] + "</p>";
html += "<p>Contract-" + msgArgs[2] + "</p>";
html += "<p>Go to " + caption + " screen?</p>";
html += "<p align=center>";
html += "<input type=button name='CMD/" + msgArgs[0] + "/" +
msgArgs[1] + "/" + msgArgs[2] + "/" + msgArgs[3]+ "' value='OK'>";
html += "<input type=button name='CMD/" + 1 + "' value='Cancel'>";
html += "</p></body></html>";

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


Rob S said:
Code below:

// initalize function
not = new OpenNETCF.WindowsCE.Forms.Notification();
not.BalloonChanged +=new BalloonChangedEventHandler(not_BalloonChanged);
not.ResponseSubmitted +=new
ResponseSubmittedEventHandler(not_ResponseSubmitted);

// some other function
not.Caption = "Sync";
not.InitialDuration = 10;
not.Text = "<form method=\"GET\" action=notify><input type=button
name=OKbutton value=OK></form>";
not.Visible = true;

private void not_ResponseSubmitted(object sender, ResponseSubmittedEventArgs
respevent)
{
MessageBox.Show("raised");
}

No messagebox is raised when i click the OK button, where am i going wrong?

Thanks
 
G

Guest

That actually hangs my application completely.

Just can't seem to get this one working.

Also, users are moaning that sometimes the icon isn't removed from the title
bar.

Alex Yakhnin said:
Here's the html that worked for me:

string html = "<form method=\'POST\' action=>";
html += "<p>User-" + msgArgs[1] + "</p>";
html += "<p>Contract-" + msgArgs[2] + "</p>";
html += "<p>Go to " + caption + " screen?</p>";
html += "<p align=center>";
html += "<input type=button name='CMD/" + msgArgs[0] + "/" +
msgArgs[1] + "/" + msgArgs[2] + "/" + msgArgs[3]+ "' value='OK'>";
html += "<input type=button name='CMD/" + 1 + "' value='Cancel'>";
html += "</p></body></html>";

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


Rob S said:
Code below:

// initalize function
not = new OpenNETCF.WindowsCE.Forms.Notification();
not.BalloonChanged +=new BalloonChangedEventHandler(not_BalloonChanged);
not.ResponseSubmitted +=new
ResponseSubmittedEventHandler(not_ResponseSubmitted);

// some other function
not.Caption = "Sync";
not.InitialDuration = 10;
not.Text = "<form method=\"GET\" action=notify><input type=button
name=OKbutton value=OK></form>";
not.Visible = true;

private void not_ResponseSubmitted(object sender, ResponseSubmittedEventArgs
respevent)
{
MessageBox.Show("raised");
}

No messagebox is raised when i click the OK button, where am i going wrong?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top