|
I see.
I had do to this once for homework so I had to use Access.
Cheers!
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
You should never use a format like MM/dd/YYYY as this is ambigious (you can't tell it apart from dd/MM/YYYY for any day in the 1-12 range). If you are so unfortunate you have to store a date in text format always use ISO format (YYYY-MM-dd). Luckily in this case there is no need to use strings. Use parameters in the SQL statement instead.
|
|
|
|
|
Yes, complete waste of time/resources to convert a DateTime to a String and then back to a DateTime. Learn it the right way now, so you won't have a bad habit later when it really counts.
|
|
|
|
|
I wannt to read or recognize properties of objects form any website.
how can i able to capture all properties of any object of website
Rohituappu@gmail.com
|
|
|
|
|
A website doesn't have objects, it just has HTML. You can capture and save that any time you like.
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 )
|
|
|
|
|
Rohituappu wrote: how can i able to capture all properties of any object of website
Do you mean webservice ?
|
|
|
|
|
Here comes a curl.It is free available on net.you can use curl library for this purpose.
cheers
Atul
|
|
|
|
|
Hi all,
Im creating a webservice in VS-2005, and populating all the values into an object, i specified the return type.While running the webservice it shows an error message saying System.InvalidOperation.Exception.Please find below snippet of the web method.(Thanks in Advance
[Webmethod]
public classEid initiate(String GetValue)
{
classEid objClassEid=new classEid();
objClassEid.firstname="Adam";
objClassEid.lastname="Henry";
return objClassEid;
}
Error Message Description :
SERVER ERROR in '/'Application
For non-array types,you may use the following attributes:XmlAttribute,XmlText.
|
|
|
|
|
hi , How to get MouseButton Event in C#?
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|
|
Don't Repost. Below CG has answered you.
Regards,
Satips.
|
|
|
|
|
I am not sure if that is what you wanted;
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
//this will fire when you click mouse button on the form.
}
|
|
|
|
|
write in a form or control :
this.MouseClick += event handling.....
|
|
|
|
|
Is there a way to get the mouse position in a window with C#?
Samuel
|
|
|
|
|
If you're not capturing the mouse move event and storing the position, I think you can get it from Cursor.Position, or something like that. Yes, that is right.
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 )
|
|
|
|
|
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
//e.Y --> y position of your mouse
//e.X --> X position of your mouse
Point p = new Point(e.X, e.Y);
}
|
|
|
|
|
I got it working put with
pos = System.Windows.Forms.Cursor.Position.X;
how do I put the code such that its in an event???? sorry I never really touched C# before and i am an embedded C programmer doing C#
regards
Samuel
|
|
|
|
|
If you want it to fire in an event, use the mousemove event, as several people suggested.
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 )
|
|
|
|
|
yupp its working, now I just can't figure out how to update my main dialog box with this new value from the mouse move. What can I have is a label, and on the mousemove event I want to update the new values of the movement to the label. how do I do that? I know these might be solved easily if I read the manual just that I have little time but have good knowledge with C.
Thanks!!!
|
|
|
|
|
I want to activate web service using CLR triggers, using the following code but it s generating the following error message.
Cannot load dynamically generated serialization assembly. In some hosting environments assembly load functionality is restricted, consider using pre-generated serializer. Please see inner exception for more information.
public partial class Triggers
{
[Microsoft.SqlServer.Server.SqlTrigger(Name = "StockTradInsertTrigger", Target = "STOCK_TRADES", Event = "FOR INSERT")]
public static void StockTradInsertTrigger()
{
SqlTriggerContext triggContext = SqlContext.TriggerContext;
if (triggContext.TriggerAction == TriggerAction.Insert)
{
using (SqlConnection connection = new SqlConnection("context connection=true"))
{
connection.Open();
SqlCommand sqlComm = new SqlCommand();
sqlComm.Connection = connection;
sqlComm.CommandText = "(SELECT STOCK_ID from INSERTED)";
try
{
string userType = sqlComm.ExecuteScalar().ToString();
SqlContext.Pipe.Send("This is the IP of Stock Evaluator System = "+userType);
oiStockEvaluatorService service = new oiStockEvaluatorService();
service.Enqueue(Convert.ToInt32(userType));
}
catch (Exception ex)
{
SqlContext.Pipe.Send("exception = " + ex.Message);
}
}
}
SqlContext.Pipe.Send("Trigger FIRED");
}
Can any please help me in this regard.
Thanks,
S.S
-- modified at 2:50 Tuesday 19th June, 2007
|
|
|
|
|
Hi
how to find out global mouse click events from my application?
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|
|
You can capture the mouse, or you can investigate writing a global mouse hook.
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 )
|
|
|
|
|
Hi,
I have created a sample Windows Service, in which I want to provide a notify icon on the system tray.
I have placed a notify icon and a contextmenustrip on the Service's Designer form, and on the OnStart() method of the Service I have assigned a value to the contextmenustrip property of the notifyicon. The following code snippet is written on the OnStart() event of the service,
contextMenuStrip1.Items.Add("Login");<br />
contextMenuStrip1.Items.Add("ViewRecentDocuments");<br />
<br />
notifyIcon1.ContextMenuStrip = contextMenuStrip1;<br />
notifyIcon1.Text = "Notifier";<br />
notifyIcon1.Visible = true;<br />
After that I have installed the Service in the system, and started the service. The notifyicon get displayed, but while right-clicking on it, contextmenu didnt displayed.
Is my code is correct one, if not what change should I do, to make the contextmenu to be displayed on notifyicon's right-click event..
Anyone knows the solution, please reply me.
Thankfully,
jm
|
|
|
|
|
One Post is enough.
Regards,
Satips.
|
|
|
|
|
Hi,
If you know the answer for my question, pls let me know, else where can i find solution?
I didnt intendly put the question twice, I clicked submit button two times so it posted the same question twice.
Thankfully,
jm
|
|
|
|
|
Hi,
I have created a sample Windows Service, in which I want to provide a notify icon on the system tray.
I have placed a notify icon and a contextmenustrip on the Service's Designer form, and on the OnStart() method of the Service I have assigned a value to the contextmenustrip property of the notifyicon. The following code snippet is written on the OnStart() event of the service,
contextMenuStrip1.Items.Add("Login");<br />
contextMenuStrip1.Items.Add("ViewRecentDocuments");<br />
<br />
notifyIcon1.ContextMenuStrip = contextMenuStrip1;<br />
notifyIcon1.Text = "Notifier";<br />
notifyIcon1.Visible = true;<br />
After that I have installed the Service in the system, and started the service. The notifyicon get displayed, but while right-clicking on it, contextmenu didnt displayed.
Is my code is correct one, if not what change should I do, to make the contextmenu to be displayed on notifyicon's right-click event..
Anyone knows the solution, please reply me.
Thankfully,
jm
|
|
|
|