|
Hi All,
I have done a windows application which is running very fine. and I made a windows service which is also running fine.
Now my windows service is on system A.
Now my windows application is on system B.
From system A through windows service I have to invoke the windows application on system B which the form consisoting in it.
Right Now Iam able to invoke the process(windows application)which is on system B from windows service which is on on system A.
But the form/pop-up is not opening in system B. but Iam able to see the windows app process in Task manager of system B.
Now how to show form/pop-up of winodws app in system B where it is invoked by system A.
Thanks
Kinldy help me...
|
|
|
|
|
Hi,
If you're invoking a form that you have created, you can add this.Show(); to your remote form constructor, but if you're invoking a windows application "like calc.exe", make sure you dont have your process object hidden property set to true.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
Im new to .net
Can any help me in getting the [b]resultset of a query in MSACCESS using C#[/b]
THANKS in advance
|
|
|
|
|
|
i have added dynamically ToolStripMenuItem to ToolStripDropDownButton in my button click event the code is
ToolStripMenuItem Test = new System.Windows.Forms.ToolStripMenuItem();
Test.Text = "Hello" + i;
Test.Tag = "Hello" + i;
toolStripButtonUndo.DropDownItems.Add(Test);
i++;
this code is working fine but there is a event called ToolStripDropDownButton_DropDownItemClicked in that event i was trying to remove the ToolStripMenuItem on which user has clicked but not getting success because i did not work before with ToolStrip so that is why i have lack of knowledge in ToolStrip in .net v2.0. so plzz help me in such a way as a result i will be able to remove dynamically ToolStripMenuItem from ToolStripDropDownButton in the event called ToolStripDropDownButton_DropDownItemClicked. so plzz help me with small code snippet if possible. i will be looking forwar for fast response.
Thanks.
tbhattacharjee
|
|
|
|
|
Hi,
One more question regarding toolstripdropdownbutton.i am giving shortcut keys to the menustrip items,
toolstripdropdownbutton..where as when toolstripdropdownbutton has one or more menustrip items iam unable to expand the toolstripdropdownbutton with the shortcut key.i have given the shortcut key through the designer.pls let me know what shd we do to expand the toolstripdropdownbutton through
shortcut key..
Rgds
YM
|
|
|
|
|
Hi guys, I want to know that what if I dervied a class from a Control class and this custom class can have many other controls about 30 controls like image, button, textfields, etc. So if i dispose the custom class object does it dispose all the inner controls as well. or Do I need to implements dispose method from IDisposable interface and then dispose each of the inner controls.
public class customClass:Control
{
}
or
public class customClass:Control,IDisposable
{
}
|
|
|
|
|
As the Control class implements IDisposable , you just need to override the void Dispose(bool) method. Call base.Dispose() to make sure the control classes dispose is also getting called.
|
|
|
|
|
thanks for replying, but when i write like
protected override void Dispose(bool disposing)
{
}
i don't get the Dispose function name from the list i am using VS2005 framework 2.0
|
|
|
|
|
Take a look at this article[^].
If any of the base classes in your inheritance chain implements the IDisposable interface, overrides void Dispose() , or overrides Finalize , you should simply override Dispose(bool disposing) , adding your cleanup logic and making sure to call base.Dispose(disposing) as the last statement.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
i'm trying on sending the server public key to the client by using an xml file.i want to know how retreive the public key from the xml file in client progrm.
|
|
|
|
|
Hi,
I have a DataTable bound to a DataGridView with this code:
dataGridView1.DataSource = myDT_Items;
I'm updating a DataGridView with this code:
dgvRow.Cells["ItemSize"].Value = 55;
Now I want the DataTable to reflect the changes made to the DataGridView. Currently I'm using:
myDT_Items.AcceptChanges();
Q: Is there another way to Synchronize DataTable with DataGridView when changes are made to the DataGridView?
Thanks,
Ron
|
|
|
|
|
Why are you using the synchronization? Are you using datagridview some where else as well?
If not then do the changes directly in the datatable.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks Ahsan,
Yes, I could update the DataTable directly, but then I'd have use something like dataTable.Rows.Find() to correlate with the selected row in DataGridView. Do you know of a better way to find the DataTable row based on the selected DataGridView Row?
Even if I do go the route of updating the DataTable directly, I'm always interested in learning more. I'm basically wanting to know the best way to sync the DataTable with the DataGridView if the DataGridView is edited.
Ron
|
|
|
|
|
How can i create my own shortcut key with ctrl+y for saving file in ms visio using c# .net.
tahir
|
|
|
|
|
using System;
using System.Reflection;
namespace SqlSentence
{
public static class SqlString
{
public static string SELECT(this string This, params string[] columnName)
{
string s=" SELECT ";
for (int i = 0; i < columnName.Length; i++)
{
s += columnName[i] + ",";
}
return This + s.Substring(0, s.Length - 1);
}
public static string FROM(this string This, string tableName)
{
return This + " FROM " + tableName;
}
public static string AS(this string This, string target)
{
return This + " AS " + target;
}
public static string WHERE(this string This, string term)
{
return This + " WHERE " + term;
}
public static string EQUAL(this string This, string value)
{
return This + " = " + value;
}
public static string EQUAL(this string This)
{
return This + " = ";
}
public static string PARAMETERS(this string This, string value)
{
return This + "@" + value;
}
public static string AND(this string This, string where)
{
return This + " AND " + where;
}
}
}
using System;
using System.Windows.Forms;
using System.Data.SqlClient;
using SqlSentence;
namespace WindowsFormsApplication4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText = cmd.CommandText.SELECT("Name",
"sex".AS("Sex") , "ID").
FROM("customer").WHERE("name".EQUAL
("'zhangshan'").AND("sex".EQUAL
("'boy'")));
SqlCommand otherCmd = new SqlCommand();
otherCmd.CommandText = otherCmd.CommandText.
SELECT("name",
"sex".AS("Sex"),
"ID").
FROM("customer").
WHERE("name".EQUAL
("'zhangshan'").AND
("name".EQUAL().
PARAMETERS("value")));
}
}
}
|
|
|
|
|
Your code would be clearer if you simply wrote out the query; I don't think you gain anything by this technique.
@"
SELECT name
,sex AS Sex
,ID
FROM customer
WHERE name='zhangshan'
AND sex='boy'
"
And I don't see where you're adding the parameter in the second example.
|
|
|
|
|
I don't think is clearer like that
|
|
|
|
|
Good for you. Unfortunately the rest of us do NOT share the same enthusiasm as you
|
|
|
|
|
No, that's not like LINQ at all.
Slightly interresting attempt at building queries in a structured way using expansion, but it needs a lot more to be anything other than restricting. How about joins, grouping, sorting, subqueries, functions, operators...?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
Is it possible to select and expand a treeNode in a treeView by program, with the treeNode highlighted ? I tried many methods, but none can get the treeNode highlighted while it expand ! I want to emulate the situation where user click the treeNode by program.
Thanks
Kim
|
|
|
|
|
You can do it by using SelecedNode.
example :
TreeView1.SelecedNode = TreeView1.Nodes[0].Nodes[4].Nodes[20];<br />
TreeView1.Focus();
Hello Friends
|
|
|
|
|
It works !
Thanks so much
|
|
|
|
|
You`re welcome
Hello Friends
|
|
|
|
|
Hi,
I just find a problem in getting the treeNode selected and highlighted if the treeView is in a panel rather than in the form directly, the treeNode cannot get the focus. I try to focus the panel also, but it didnt help.
Thanks
|
|
|
|