|
CEvent in C++ is used to raise event in application and can be received in another (is that right).
What is the equivalent in C#? and is it doable to raise an event in a C++ application and receive it in C# application, and how this can be done?
Best regards
Simos
|
|
|
|
|
You could use .Net Remoting for inter process communication. Whenever you want to fire an event from process 1, call a method of process 2 by remoting and then in that process 2's method invoke an event. This will be more secure and better approach to trigger an inter process event.
Regards
Khalid
|
|
|
|
|
Hi
I have a dataset having more than 1000 rows, each row having a primary key. Is there any way can I don insertion or modification or deletion as a whole at a time? Do anybody had code for this, pls send the same. Or else give any url or suggestions also great.
Thanks in advance
Raja Raman S
Raja Raman S
Reuters India Pvt.Ltd.
Bangalore
|
|
|
|
|
u can check the datarows rowstate property of each row of table in dataset
and based on rowstate which could be added,deleted or modified u can
write appropriate queary and update the changes in database through command
object.
rahul
|
|
|
|
|
hi
the Report Service that I use is Report Service2003.
now,I want to make a report that the report's filds are choosed
on the webpage,so the report's filds are activity.
what can I do ? please help me
a question about Report Service
|
|
|
|
|
Your question is vague, but I still try to answer to what I understood from it.
If you are using a report viewer cntrol for MS SQL Reporting and you do not want to use the filter fields (parameters) that the control displays for you on the screen rather you want to have your own input controls acting as filter fields on your page, then you would have to do it a little programatically by following 2 ways.
If you are using Report server then you can append all the parameters at the end of the report path property seperating every parameter with "&" of the ReportViewer control. If you are using stand alone reports then you would have to add ReportParameters to your control by using its method LocalReport.SetParameters(parameterlist).
Hope I have asnwered to what you asked for.
Regards
Khalid
|
|
|
|
|
I am myicewater
I make a example, the web page's name WEBA,there are 20 filds on the page ,
the 20 filds corresponding a datebase table A's 20 filds.
if I choose 5 filds on the page, the report will show the 5 filds infomation
Because the filds I choose are random. so how can I control the reports.
Now I let the report show 20 filds infomation,and pass 20 parameters to report to control which filds showing and which filds hidden.
except this way,can you tell me another way.this is only a simple example,
the realiy is more complexer than it.Now first,I settle the simple one.
|
|
|
|
|
I want to transfer base's data one server computer to another server by using modem. But I don't know how?
|
|
|
|
|
Do you intend to transfer data through internet?
Regards
Khalid
|
|
|
|
|
NO only modem. It's the building who has got 3 server computer and they transfer data by using flash disk. So I want to discuss it by application on C#.
|
|
|
|
|
You need a program uses "serial port" of the computer. I think yoru modem connected to PC trough serial port, if then you need to control serail port of the computer. After achiving control of the serial port, you need to read the "AT Commands" of the modem from its datasheet. Using these "AT commands" you can connect any modem and transfer any data you want. If you have no experience about these procedures, you have to spend time;)
I gave the big picture, may be it will give a general opinion about the think you want.
|
|
|
|
|
i want to bring matlab fuctions and want to use them in c#
functions like imhist,imcrop etc
|
|
|
|
|
Looks like you have the same homework assignment as the fellow below.
|
|
|
|
|
This[^] should get you started.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am working in Image Processing Project,I want to bring imcrop funtion of matlab in my C# Project ,I do not how i will do this
Plz help me and guide me
It is very urgent
Thanks in Advance
|
|
|
|
|
Looks like you have the same homework assignment as the fellow above
|
|
|
|
|
I would love to see a comment from "Professor Sharada Ulhas" for that post.
|
|
|
|
|
This[^] should get you started.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi...
I want to add 'ToolStripMenuItem' dynamically...
In my application i am getting port names with this statement
foreach (string s in SerialPort.GetPortNames())
{
}
now for each port name 's' i want to add a ToolStripMenuItem & a click event for each ToolStripMenuItem (i.e. for all available ports on PC). That click event will open a form with a textbox.
Is it possible to do these things dynamically in c#. Mainly dynamically adding click events for ToolStripMenuItem & open a form for each ToolStripMenuItem click event.
Regards,
Vinay
|
|
|
|
|
does it mean popup menu ?if yes then yes you can
sameer
|
|
|
|
|
Its same as our normal windows.
Like our normal internet exploree or any other windows give option in "File" menu...(New,Open,Save,Save as,Print,Exit etc.)
But click events are different...
Is it possible...?
|
|
|
|
|
ya you can do this.i think below code would solve you problem;
private void createMenu()<br />
{<br />
MenuItem myMenu =new MenuItem("Name",new System.EventHandler(myMenu_Click));<br />
menuItemFile.MenuItems.Add(mymenu);<br />
}<br />
private void myMenu_Click(object sender, System.EventArgs e)<br />
{<br />
MessageBox.Show("Hi");<br />
}
by following same procedure you create your desired menu
sameer
|
|
|
|
|
Thanks...
But in my application i dont know number of comports present on a PC. If there are 4 com ports then my application should create 4 ToolStripMenuItems & respective 4 click events.Each Click event will display a form with a text box placed on it.
Can u give more suggestion for my application...
Thanks & Regards,
Vinay
|
|
|
|
|
Hmmm .. No problem dear.use same function for all just type cast sender with MenuItem and get the text associated with it(((MenuItem)sender).Text ).By this you'll know which Item you have clicked.i think since now you can handle the rest code
|
|
|
|
|
With what u told i think it is not posible to add different clicke events dynamicaly & differet procedures to handle that events...
Thanks for your replies,
Vinay
|
|
|
|