Click here to Skip to main content
15,916,463 members
Home / Discussions / C#
   

C#

 
GeneralThanks Luis Pin
Sukhjinder_K30-Mar-08 19:41
Sukhjinder_K30-Mar-08 19:41 
GeneralRe: Thanks Luis Pin
Luis Alonso Ramos30-Mar-08 20:29
Luis Alonso Ramos30-Mar-08 20:29 
GeneralWow, Great Car Wheels Pin
Sukhjinder_K30-Mar-08 20:32
Sukhjinder_K30-Mar-08 20:32 
QuestionMouse events on Mdi parent form. Pin
DoubleB30-Mar-08 4:49
DoubleB30-Mar-08 4:49 
GeneralRe: Mouse events on Mdi parent form. Pin
Gareth H30-Mar-08 4:51
Gareth H30-Mar-08 4:51 
GeneralRe: Mouse events on Mdi parent form. Pin
DoubleB30-Mar-08 5:25
DoubleB30-Mar-08 5:25 
GeneralRe: Mouse events on Mdi parent form. Pin
Luis Alonso Ramos30-Mar-08 9:59
Luis Alonso Ramos30-Mar-08 9:59 
QuestionWeb Service [IIS] with Windows Forms GUI... Pin
matmus30-Mar-08 3:43
matmus30-Mar-08 3:43 
Hi,
I've got a web service written in C# and I'd like to provide a server-side GUI (for example: dynamic log etc.). Since Visual Studio doesn't allow (does it?) adding Windows Form to a web service application (which even makes some sense to me Wink | ;-) ) and I don't want to use ASP.NET nor AJAX... I've created a standalone windows forms application (as separate project) and added its reference to my web service.
To simplify: I've got
[WebMethod]<br />
void connect()

, which connects to my web service and... runs
<br />
            Application.EnableVisualStyles();<br />
            Application.SetCompatibleTextRenderingDefault(false);<br />
            Application.Run(new myForm());<br />
in a separate thread.
Now calling web methods also updates my form (using Invoke() to avoid cross-thread updates)...
What is interesting... this approach really works - that is: calling connect() shows my GUI and so on. Well... it works, but only when if I'm using ASP.NET Development Server (that is - while debugging the whole thing in Visual Studio '08). Running the same project on IIS server does not show the form (the form itself is created, because I can access controls on it). Is there a way to make this form visible also on IIS? (form.Show() does not seem to work, I've also tried numerous IIS server configurations with no luck).

Second thing - now the form is launched by calling specific web service... Is it possible to attach to an already running (started by user) form in a simple way? (without providing a COM interface to my form... or sth more "managed" - how to create such iface automatically in VStudio). A separate GUI application with interface allowing updating its controls will automatically solve above problem, since I will no longer need IIS to start the form for me.

Regards,
MB
GeneralRe: Web Service [IIS] with Windows Forms GUI... Pin
Luis Alonso Ramos30-Mar-08 10:08
Luis Alonso Ramos30-Mar-08 10:08 
GeneralRe: Web Service [IIS] with Windows Forms GUI... Pin
matmus30-Mar-08 10:40
matmus30-Mar-08 10:40 
GeneralRe: Web Service [IIS] with Windows Forms GUI... Pin
Luis Alonso Ramos30-Mar-08 11:23
Luis Alonso Ramos30-Mar-08 11:23 
GeneralDataGridView And DataTable.Select() Method Pin
half-life29-Mar-08 23:20
half-life29-Mar-08 23:20 
QuestionRe: DataGridView And DataTable.Select() Method Pin
fearless stallion30-Mar-08 20:12
fearless stallion30-Mar-08 20:12 
GeneralRe: DataGridView And DataTable.Select() Method Pin
half-life31-Mar-08 8:04
half-life31-Mar-08 8:04 
General[Message Deleted] Pin
jijophilip29-Mar-08 17:43
jijophilip29-Mar-08 17:43 
GeneralRe: Paint Application in C# Pin
MarkB77729-Mar-08 17:49
MarkB77729-Mar-08 17:49 
GeneralRe: Paint Application in C# Pin
jijophilip29-Mar-08 17:55
jijophilip29-Mar-08 17:55 
GeneralRe: Paint Application in C# Pin
MarkB77729-Mar-08 18:21
MarkB77729-Mar-08 18:21 
General"Shift" key Pin
jon-8029-Mar-08 9:22
professionaljon-8029-Mar-08 9:22 
GeneralRe: "Shift" key Pin
Luc Pattyn29-Mar-08 10:31
sitebuilderLuc Pattyn29-Mar-08 10:31 
GeneralRe: "Shift" key Pin
jon-8029-Mar-08 11:13
professionaljon-8029-Mar-08 11:13 
GeneralRe: "Shift" key Pin
Luc Pattyn29-Mar-08 11:19
sitebuilderLuc Pattyn29-Mar-08 11:19 
GeneralRe: "Shift" key [modified] Pin
jon-8029-Mar-08 21:16
professionaljon-8029-Mar-08 21:16 
GeneralRe: "Shift" key Pin
Luc Pattyn30-Mar-08 0:43
sitebuilderLuc Pattyn30-Mar-08 0:43 
GeneralRe: "Shift" key Pin
Pete O'Hanlon30-Mar-08 10:25
mvePete O'Hanlon30-Mar-08 10:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.