|
No, i dont have to use Microsoft.CSharp.
Its a requirement to use shell execution either through ShellExecute API or through the System.Diagnostics.Process namespace(as i have done in my code). Please anyone help me. I'm stuck.
|
|
|
|
|
You're code works fine on my machine (but had to change WINDOWS to WINNT).
As of how to accomplish this, have you ever tried Google?
|
|
|
|
|
I was wondering if there was a way to determine application dependencies at runtime..
I have several applications sharing a managed library registered in the GAC. When I need to update that library (not changing its version info, so that I dont have to recompile the programs to use the updated library), I need a way to see what open processes are using that library so I can kill them before the update.
If anyone has any suggestions, please let me know.
Thanks is advance,
Aaron
|
|
|
|
|
Hello
If you already know all the applications that could possibly be using that library, you could look the up using Process.GetProcesses Method. Otherwise reboot in safe mood, then replace it.
Regards
|
|
|
|
|
I want to open a HTML Page from Windows forms.
Iam using System.Diagnostic.process Api to do that.
First is there any other way to do it.
Second i want to control the size of the internetexplorer
window when i open it. Is there a way to do that
Thanks
Kal
|
|
|
|
|
kalyanPaladugu wrote: I want to open a HTML Page from Windows forms.
Within your window form, or to a web browser?
If you want to open it to a web browser, you choose among Process.Start(), ShellExec(), or ShellFileOperation().
If you want to open it on your window form, add a web browser control to the form and call its Navigate().
Best,
Jun
|
|
|
|
|
1.Iam thinking of web browser. I want to resize the web browser
it opens in
2. Since you asked the question. Can i open it in windowsform it self and
use the print functionality of the opened HTML page inside windows forms.
If possible how to open it inside windows forms
|
|
|
|
|
See my modified previous post.
Best,
Jun
|
|
|
|
|
With the Process.Start() how do i control the size of the web form
which is opened
Thanks
Kal
|
|
|
|
|
ProcessStartInfo supports limited options on the opened window: hiden, minimized, maximized, normal. Other window styles have to go through the client program, "iexplore", for example.
Best,
Jun
|
|
|
|
|
Hi,
Im trying to make a program to communicate with something that is connected with the serial port.
The device i wanna connect to the serial port knows several commands.
So basically there needs to be a simple connection with the port so that i can put commands in the console and the device reply's me and sets its output on the console.
So far i got this:
static SerialPort serialPort;
public static void Main()
{
serialPort = new SerialPort("COM1", 19200, Parity.None, 8, StopBits.One);
}
I hope someone could help me a bit.
Thanks in advance!
|
|
|
|
|
hello
Yustme wrote: I hope someone could help me a bit.
With what?? Where is your question?
Regards
|
|
|
|
|
Hello Devs,
I'm new to Compact Framework Programming. I'm porting a Chat application to Window Mobile. I noticed that whenever I create and oshow a new instance f Form, its shown as a seperate procees in Running Prgrams. 10 forms means 10 Processes in Running Programs .
To avoid this to happen, I thought to work with tab controls and adding a tab page to the tab control when a user initiates chat with a new person.
What I want is that I want to add and remove pages dynamically. For this when I tap and hold on the node of the tab page (equal to Right Click) a context menu should open "Close Tab" and Taping this menu item that specific Tabpage should be closed. I have tried to do it with Context Menu but It does appear when you tap and hold on the tab page, not its node
I have tried to be clear in telling my problem but even if you need some more clarity and info please ask me.
I really want to get a solution (Its so urgent)
I hope to get a positive response from you people.
Best Regards,
Rizwan
|
|
|
|
|
Hello
dotnetdev83 wrote: but It does appear when you tap and hold on the tab page, not its node
It depends on which event you handled. Either TabControl.MouseDown , or TabPage.MouseDown . In your case you probably consumed TabPage's not the TabControl's event.
Handle TabControl.MouseDown event and check TabControl.SelectedIndex
Regards
|
|
|
|
|
Quite simply, i can't find out how to add them.
All i know is, well, nothing really, i have a treeview, and it has nodes in it, and there are no pictures.
...
|
|
|
|
|
Hello
1- Make an ImageList
2- Add images to it using ImageList.Images.Add() method
3- Change the Treeview.ImageList to the above ImageList
4- Change the TreeView.ImageIndex to the index of the default icon
5- Change the Treenode.ImageIndex property of each node
Regards
|
|
|
|
|
Example
Search in database
using DataGite
using change colum name listview in thai
lmjojopjkopkop
|
|
|
|
|
Sit down and think. The take a look at what VS has on offer, if it's too difficult to use wizards and drag-and-drop to do this then learn something else.
If you actually want a functioning program give me a bell, my rates are £60 / hour.
As of how to accomplish this I wouldn't have a clue at the moment and I'm too lazy to google it
|
|
|
|
|
Hi all,
Iam calling function in a loop, this function call is made by using reflections. User can able give a Loop count. if the user gives >2000 .net throws me the "out of memory exception"
What can i do to avoid it.
Can i use GC.Collect()?
at end of every iterations i nulled all the objects used. so it could have been collected by GC right?
I saw my app.performance in CLR profiler it shows Heap is Ok. but stack overflows with >85Mb. also there are more than 7000 unhandled handles in stack! what does it mean?
Please suggest some solution
Thanks
Srini
|
|
|
|
|
Calling GC.Collect() by yourself doesn't help. The garbage collector will try everything it possibly can to get memory back before the OutOfMemoryException is thrown. You are also talking about stack problems, but if you did have stack problems you'd most likely get a StackOverflowException. That usually happens if you get stuck in a recursive loop. I'd say you really have to just scrutinize the code to find out where you're grabbing memory but not letting go.
Logifusion[^]
If not entertaining, write your Congressman.
|
|
|
|
|
private void btnSave_Click(object sender, EventArgs e)
{
string Strconn = "Server = local; User ID = sa; Password = computer; Initial Catalog = FingerData";
string Strcomm = "INSERT INTO Employee VALUES(";
Strcomm += "'"+txtFinger.Text+",'";
Strcomm += "'"+txtPrename.Text+"','";
Strcomm += "'"+txtFname.Text+"','";
Strcomm += "'"+txtLname.Text + "','";
Strcomm += "'"+txtNname.Text + "','";
Strcomm += "'"+picEmp.Image + "',";
Strcomm += "'"+txtAge.Text + ",";
Strcomm += "'" + "CONVERT(DATETIME,'" + txtBirth.Text + "', 102),'";
Strcomm += "'"+txtAddress.Text + "','";
Strcomm += "'"+txtDepartment.Text + "',";
Strcomm += "'"+txtSalary.Text + ",'";
Strcomm += "'"+txtHtel.Text+ "','";
Strcomm += "'"+txtMtel.Text + "','";
Strcomm += "'"+txtEmail.Text+"','";
Strcomm += "'"+txtPassword.Text + "')";
SqlConnection SQLconn = new SqlConnection(Strconn);
SqlCommand SQLcomm = new SqlCommand(Strconn, SQLconn);
try
{
SQLconn.ConnectionString = Strcomm;
if (SQLconn.State == ConnectionState.Open)
{
SQLconn.Close();
}
SQLconn.Open();
SQLcomm.CommandType = CommandType.Text;
SQLcomm.CommandText = Strcomm;
SQLcomm.Connection = SQLconn;
SQLcomm.ExecuteNonQuery();
}
catch (Exception Error)
{
MessageBox.Show("ไม่สามารถเพิ่มข้อมูลได้เนื่องจาก !!!!! " + Error.Message, "ข้อผิดพลาด", MessageBoxButtons.OK);
}
}
lmjojopjkopkop
|
|
|
|
|
Did you actually read Guffa's reply?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
private void btnSave_Click(object sender, EventArgs e)
{
string Strconn = "Server = local; User ID = sa; Password = computer; Initial Catalog = FingerData";
string Strcomm = "INSERT INTO Employee VALUES(";
Strcomm += "'"+txtFinger.Text+",'";
Strcomm += "'"+txtPrename.Text+"','";
Strcomm += "'"+txtFname.Text+"','";
Strcomm += "'"+txtLname.Text + "','";
Strcomm += "'"+txtNname.Text + "','";
Strcomm += "'"+picEmp.Image + "',";
Strcomm += "'"+txtAge.Text + ",";
Strcomm += "'" + "CONVERT(DATETIME,'" + txtBirth.Text + "', 102),'";
Strcomm += "'"+txtAddress.Text + "','";
Strcomm += "'"+txtDepartment.Text + "',";
Strcomm += "'"+txtSalary.Text + ",'";
Strcomm += "'"+txtHtel.Text+ "','";
Strcomm += "'"+txtMtel.Text + "','";
Strcomm += "'"+txtEmail.Text+"','";
Strcomm += "'"+txtPassword.Text + "')";
SqlConnection SQLconn = new SqlConnection(Strconn);
SqlCommand SQLcomm = new SqlCommand(Strconn, SQLconn);
try
{
SQLconn.ConnectionString = Strcomm;
if (SQLconn.State == ConnectionState.Open)
{
SQLconn.Close();
}
SQLconn.Open();
SQLcomm.CommandType = CommandType.Text;
SQLcomm.CommandText = Strcomm;
SQLcomm.Connection = SQLconn;
SQLcomm.ExecuteNonQuery();
}
catch (Exception Error)
{
MessageBox.Show("ไม่สามารถเพิ่มข้อมูลได้เนื่องจาก !!!!! " + Error.Message, "ข้อผิดพลาด", MessageBoxButtons.OK);
}
}
lmjojopjkopkop
|
|
|
|
|
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: Standard question #2:
What's Standard Question #1?
As of how to accomplish this I wouldn't have a clue at the moment and I'm too lazy to google it
|
|
|
|