|
sir no, it iw being very complicated .
please explain it again. with an example
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
When I answered you last time, I posted an example. Please refer back to it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
If your having trouble with this I'd suggest you go right back to the start, buy a book on the basics of C# and start learning from the begining.
|
|
|
|
|
Hello,
i have a program which i need to control it's GUI, so i will be able to take over the form of the program and can write code which will get me the abillity to press buttons.
Any ideas?
Thank you
|
|
|
|
|
there is some APIs which can lock keyboard/Mouse and simulate keyPress/MouseClick/MouseMove and find the Window name,position and size
but first I think you must create a map of your gui interface (like where is the button and...) and then do what you want sequentially using the APIs but before that you must lock the keyboard for preventing user interrupts.
just do some searches in codeproject and MSDN for APIs you will found them easily.
good luck
|
|
|
|
|
I want to find dynamically that child element of one xml has the attribute or not?
1.
<property id="220" name="Stage 1 Temp." prgbar="false" selected="false" min="0" max="40" pwd="true" units="C" gauge="true" amberthresholdval="30" redthresholdval="35" amberwarning="Stage 1 Temp is near upper limit." redwarning="Stage 1 Temp has exceeded upper limit."/>
2.
<property id="202" name="Max. Input Air Temp." prgbar="true" selected="true" min="0" max="100" pwd="true" units="C" gauge="false"/>
this two properties are the same child elements of the xml but have different attributes so i want to know dynamically that the property has the attribute and it's value or not dynamically in c#.net windows application
please help me on this
Thanks in advance
PraveenKumar Palla
|
|
|
|
|
Hi.
I am using DataAdapter to retrieve some values in a database.
Normally, the DataSet which the DataAdapter fills will have one table and all the rows is there.
Is it possible that depending on the values fetched by the query operations, the rows are spread across multiple tables in the DataSet.
Here's an example:
ID Name Age Gender
--------------------------------------------------
1 Andrew 29 M
2 Paul 12 M
3 Mary 25 F
4 James 35 M
5 Heather 17 F
I would like to retrieve all these rows from the DB using DataAdapter.Fill() method, BUT the DataSet which will be filled should have two tables: one with the guys and one with the girls.
Any suggestions?
Thanks.
|
|
|
|
|
Call the Fill method twice using different SELECT statements and different DataTables .
|
|
|
|
|
I presume that you are using stored procedure. Write two select statements in stored procedure. This will return two datatables to dataset. Your stored procedure would look like this
SELECT * FROM yourtable WHERE Gender = 'M'
SELECT * FROM yourtable WHERE Gender = 'F'
When you fill this, you will get two tables in dataset with male and female details.
|
|
|
|
|
Write two different select statements.
|
|
|
|
|
Dear All,
My web Application include a lot of .cs page. Sometimes, they call each other. Is there any methods to find out all the name of the executed pages when we browse one page. There are the same base class and different page name for each page.
Thanks
|
|
|
|
|
Hi!
I'd like to attach to winmm.dll from C# (VS2005) and translated a few DLLImports from a very old VB6-Code i found on the internet. Some methods have callbacks and i don't know how to translate them.
The methods look like this:
public static extern int midiInOpen(ref int lphMidiIn, int uDeviceID, int dwCallback, int dwInstance, int dwFlags);
and
public void MidiIN_Proc(long hmIN, long wMsg, int dwInstance, int dwParam1, int dwParam2)
The method should somehow work like this:
midiInOpen(ref hMidiIN, mMPU401IN, <callback> 0, CALLBACK_FUNCTION);
The problem is, that in the original version dwInstance and dwCallback are pointers to methods. Unfortunately i have no clue how to use these DLL-calls in C#.
Can anybody tell me how to do these DLL-calls or provide some example-code=
Thanx a lot!
J.
|
|
|
|
|
Hi.
i think you will first have to declare a delegate with the paramters of the callback-function
<br />
public delegate void MidiCallBack(sometype someParameter);<br />
then declare the API - Call
<br />
[DllImport("winmm.dll")]<br />
public static extern int midiInOpen(ref int lphMidiIn, int uDeviceID, [MarshalAs(UnmanagedType.FunctionPtr)]MidiCallBack dwCallback, int dwInstance, int dwFlags);<br />
then you define the callback function with the same type
<br />
private void MidiCallbackFunction(sometype someParameter)<br />
{<br />
}<br />
and then you simply do
<br />
midiInOpen(ref hMidiIn, mMPU401IN, 0, new MidiCallBack(MidiCallbackFunction),0,0);<br />
hope this helps
greets
m@u
|
|
|
|
|
Theres a great site for .Net interop called pinvoke.net[^]. if you check down the lefthand side you'll see a winmm.dll node down at the bottom
|
|
|
|
|
program and sql in same computer is ok,the connectstring is "DSN=pmtt_im;UID=pmtt_im;PWD=`".
program and sql dont in the same computer,what is the connectstring ?
|
|
|
|
|
What brand of database are you using?
You can go to connectionstrings.com[^] to find examples of connectionstrings for various databases and database drivers.
---
single minded; short sighted; long gone;
|
|
|
|
|
Is it possible to work with generic collections in crystal report?
I defined a generic list like this:
List<Employee> employeeList = new List<Employee>();
And now I want to bind this collection with crystal report and I don't know how crystal report can work with this collection fields in my employee class .
If anybody know please explain me ,how to do this.
Thank you very much .
DMASTER
|
|
|
|
|
I have developed a dll in C#.NET and I have used it in a VB project to make an ocx of it. if I use this ocx in a C#.NET project, there is no problem, but when I use it in the HTML page, it seems that the try-catch of the dll doesn't work, do you have any idea to solve this problem? s
|
|
|
|
|
hi to all,
I want to convert my MS Access databse/table in to an .xml file. How can I do it? help me.
Pravin
|
|
|
|
|
Its simple, read data in all the table and generate xml file...
|
|
|
|
|
can u plz send me example for this. I am new to c#.
Pravin
|
|
|
|
|
You should start with easier tasks if you're new to C#.
|
|
|
|
|
I use these code to generate a xml file(i use SqlServer2005 for the DB), for example:
string MyConn = ConfigurationManager.ConnectionStrings["Connect"].ConnectionString;
SqlConnection conn = new SqlConnection("MyConn");
string SqlStatement = "SELECT * FROM my_table"
SqlDataAdapter adapt = new SqlDataAdapter(SqlStatement,conn);
DataSet ds = new DataSet();
DataTable dt = new DataTable("my_table");
adapt.Fill(dt);
ds.Tables.Add(dt);
ds.WriteXml (@"..\..\myXmlFile.xml")
After that build and execute u'r application.In windows explorer,Locate and Find u'r xml file on u'r project folder..Hope Can Help U
Best Regards,
Tomi
|
|
|
|
|
|
Hi,
I want to save a few arraylist into a file. One method that i found out is to use serializable. However, below is the exception error when i try to save the window form.
Additional information: The type System.Drawing.Drawing2D.GraphicsPath in Assembly System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken.... is not marked as serializable.
The program is able to draw shapes into a panel and it has shape classes(e.g. rect class,polygon class...) in those classes it uses graphicspath to add the shapes onto the panel. besides that, one of the arraylist also contains Graphicspath. I'm able to serialize the arraylist other than those that use GraphicsPath. So, can anybody help me to explain what i should do to solve this problem?
Thanks in advance to anybody who is willing to lend a helping hand
|
|
|
|