Windows .exe exit code
Hi,
I have a .Net .exe that a third party is going to use. I
have been asked to provide an exit code from the .net .exe
that specifes success/failure. The .net exe is going to
be called from a VB6 .exe. Does anyone have any idea how
to do this?
liam Tag: remote browsing Tag: 74736
DockPanel Suite and DockManager Control
Hi,
I want to use the "DockPanel Suite" or "DockManager Control" from Weifen Luo
(http://www.freewebs.com/weifenluo/DockManager.htm).
Did anybody here used them once? And did they work fine? And what about the
DockPanel Suite? It is indicated as the new version of the dockManager, but
it's also a Beta: Is it reliable? Would you recommend the DockPanel suite or
the DockManager control?
Your input will be really helpfull to me!
Thanks a lot in advance,
Pieter Tag: remote browsing Tag: 74734
2 different kinds of Maximize?
When I have a standard windows forms Form, and I maximize it, it behaves
just like you'd expect.
It fills the screen, except for my taskbar down at the bottom of the screen
(which has standard settings. The taskbar is locked, marked as keep on top
of other windows, and set to not auto-hide.)
When I have a windows form without a title bar though, and I maximize it, it
fills the ENTIRE screen and the taskbar is not visible.
I want to have a windows form without a title bar that maximizes but leaves
the taskbar visible. Is this possible? How?
Thanks,
Steve Tag: remote browsing Tag: 74733
Detect when datagrid is modified
Hi .NET gurus,
How can I detect when user has just edited any cell in my datagrid so that I can set a dirty flag in my application ?
Any help is very much appreciated.
Thanks.
Kinh Luan Tag: remote browsing Tag: 74731
Windows Forms have layout problem with large fonts
This problem started from the very beginning - when .NET Framework 1.0
is released.
I have forms designed and tested on a Windows 2000 Pro system with large
fonts (125%). They all look good until I run the exactly the same
assembly on another system with normal fonts. The layout is messed up,
especially those controls with the Anchor property set (other than the
default values).
I had expected Framework 2.0 would have solved this problem. But it had
not - at least with the beta 1 release it had not do it.
I am not sure if I am making my problem clear. Hope one of Microsoft
guys can hear me and understand my problem. Tag: remote browsing Tag: 74730
ListBox, SelectedIndex, DataBind Issue
This seems like it would be a common problem, so hopefully I am just doing
something wrong. The attached demo code will help explain the problem.
I simply want to have a text box in which I can type a value that will
result in a ListBox being searched, and have the found item be selected in
the ListBox.
In the demo, I populate one listbox using DataBinding with a DataTable. In
the other, I populate manually via the Items collection. When data binding
is used, the SelectedIndex is manipulated in string ways. To see what I
mean, do the following:
1. start the app (click ok on the messagebox).
2. enter "2001" in the databinding related field.
3. now hit the backspace key to delete the "1" in "2001". notice the
SelectedIndexChanged event is fired twice.
This does not happen in the non-databound scenario. If you set some
breakpoints, and watch the call stack (with non-user code enabled), you'll
see what is happening (but I don't know why). I've also used Reflector to
review the ListBox code.
I know the CurrencyManager comes into place when using DataBinding, but I'm
still not sure what is happening.
Any insight would be greatly appreciated.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace WindowsApplication4
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.ListBox listBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
LoadListBox1();
LoadListBox2();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.listBox1 = new System.Windows.Forms.ListBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.listBox2 = new System.Windows.Forms.ListBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(24, 40);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(96, 20);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "";
this.textBox1.TextChanged += new
System.EventHandler(this.textBox1_TextChanged);
//
// listBox1
//
this.listBox1.Location = new System.Drawing.Point(24, 64);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(96, 173);
this.listBox1.TabIndex = 1;
this.listBox1.SelectedIndexChanged += new
System.EventHandler(this.listBox1_SelectedIndexChanged);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(168, 40);
this.textBox2.Name = "textBox2";
this.textBox2.TabIndex = 4;
this.textBox2.Text = "";
this.textBox2.TextChanged += new
System.EventHandler(this.textBox2_TextChanged);
//
// listBox2
//
this.listBox2.Location = new System.Drawing.Point(168, 64);
this.listBox2.Name = "listBox2";
this.listBox2.Size = new System.Drawing.Size(104, 173);
this.listBox2.TabIndex = 5;
this.listBox2.SelectedIndexChanged += new
System.EventHandler(this.listBox2_SelectedIndexChanged);
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(96, 16);
this.label1.TabIndex = 6;
this.label1.Text = "DataBind";
//
// label2
//
this.label2.Location = new System.Drawing.Point(168, 8);
this.label2.Name = "label2";
this.label2.TabIndex = 7;
this.label2.Text = "Items Add";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 245);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.listBox2);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.listBox1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void LoadListBox1()
{
DataTable dt = new DataTable();
dt.Columns.Add("year");
for(int i=2000; i<=2004; i++)
{
dt.Rows.Add(new object[] {i});
}
listBox1.DataSource = dt.DefaultView;
listBox1.DisplayMember = "year";
}
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
FindIt(listBox1, textBox1.Text);
}
private void LoadListBox2()
{
for(int i=2000; i<=2004; i++)
{
listBox2.Items.Add(i.ToString());
}
}
private void textBox2_TextChanged(object sender, System.EventArgs e)
{
FindIt(listBox2, textBox2.Text);
}
private void FindIt(ListBox b, string s)
{
int index = b.FindStringExact(s);
if (index != -1)
b.SetSelected(index, true);
else
b.ClearSelected();
}
private void listBox1_SelectedIndexChanged(object sender, System.EventArgs
e)
{
MessageBox.Show("ListBox1 SelectedIndex Changed");
}
private void listBox2_SelectedIndexChanged(object sender, System.EventArgs
e)
{
MessageBox.Show("ListBox2 SelectedIndex Changed");
}
}
} Tag: remote browsing Tag: 74726
How to add a custom control to a standalone .exe file (no extra .dll)
Hi,
I have created a custom control inherited from the combobox, and would like
to use it on my windows application. It is written in C#.
The problem is that I want to have my app on a single .exe file without
having to attach the control's additional dll file (it is a simple tool that
will be deployed as a standalone .exe application with no installation
pack).
I tried to add my customcontrol.cs code file to the project, then
programmatically add the custom control instance to my form, but it will not
show it in the GUI (even though I can see it is there in my properties
window on the VS).
Is it possible to add the control to my form without having to have an
additional dll?
Please advise.
Best Regards,
Uriel. Tag: remote browsing Tag: 74725
ContextMenu question
Is there any reason that a ContextMenu object should not be created in the
constructor of the control for which it will be used?
I have a list box on my form, and the context menu is specific to the list
box. However, if I create the menu from within the list box, the mnemonic
keys do not work,
although everything else does.
Please help! Tag: remote browsing Tag: 74724
WinForm control will not display with TreeView control
I am developing a WinForm control that is embedded in an HTML page as a smart client. If I build the control without the TreeView control - it embeds and displays just fine. If I build the control with the TreeView control - it will not embed/display. Any help would be appreciated. Thanks! Tag: remote browsing Tag: 74723
Japanese Win98SE + winform = Red X
I have a WinForm that works wonderfully in Western versions of Windows, but
is having trouble with Win98SE Japanese, and I'm loading other Far East
character versions to see if it is consistent.
Controls appear with a red X and an exception is thrown with the English
text below. Any suggestions?
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
RectangleF layoutRectangle, StringFormat format)
at System.Windows.Forms.ControlPaint.DrawStringDisabled(Graphics
graphics, String s, Font font, Color color, RectangleF layoutRectangle,
StringFormat format)
at System.Windows.Forms.GroupBox.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.GroupBox.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com
----------------------------------------------------
"Do, or do not. There is no try." Tag: remote browsing Tag: 74719
winforms data exchange style question
I'm making the jump from MFC to C# and I have a style question.
I have a form which modifies an object. At some point a change is made to
the object which requires refreshing all the fields of the form.
In MFC you would put this code in DoDataExchange(). You invoke this code by
calling UpdateData(false).
What is the equivalent convention in winforms?
Regards,
Bob Rundle Tag: remote browsing Tag: 74718
OSD Example
Hello,
I'd like to use an onscreen display with my application, but I have no idea
how to implement this...
Do you know any sources / tips how I could this can be done ? Tag: remote browsing Tag: 74716
Drag & Drop like Explorer in ListView
How can I make Drag&Drop in a ListView like the Explorer?
I want to be able to drag files from my ListView into any other explorer
window.
Is this even possible in .NET without heavy use of p/invoke?
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk Tag: remote browsing Tag: 74715
Winforms - NewBee Question
In the past, you could load an ActiveX control containing UI in IE. Can the
same be done with WinForms? That is, can WinForms be hosted by IE thus
keeping the richer UI then WebForms provides?
Thanks
Al Tag: remote browsing Tag: 74712
Overflow or underflow in the arithmetic operation
hi all !!!
a winforms .NET application that runs fine in many boxes is returning a very
strange error when run on a Windows 98 box (running 1.1 framework):
Overflow or underflow in the arithmetic operation
although the problem is reported at
http://support.microsoft.com/default.aspx?scid=KB;EN-US;q326219 the proposed
solution didn't work for me.
anyone out there had the same problem ? any help will be appreciated.
thanks in advance,
ant Tag: remote browsing Tag: 74711
Hey, MS guys, advice is need for HelpProvider
I want to display unicode characters in a HelpProvider's HelpString.
I'm eagerly anticipating someone's oppinion about if this is possible,
and if it is, how can i do it, because the cyrrilic characters that i
enter as a value for the HelpString property get messed up when they
are displayed. However, there's no such problem with tooltips, even
though they seem to be using a similar mechanism.
I had the idea of deriving from HelpProvider and overriding some of
the functionality but as long as HelpProvider is from the
Windows.Forms namespace it's source is not included in the SSCLI
implementation of the framework, so i cannot taste it's inner
workings.
And guys, please skip answers such as "Don't multipost". Yes, i have
posted about this before but as i'm posting again as long as no one
paid attention to my previous post i go shooting the same question
again becuase someone definetly has to know if there is a reasonable
workaround for my problem or i have to manually implement some popping
up rectangles with helpstrings.
Thanks for the attention Tag: remote browsing Tag: 74707
TypeDescriptor GetProperties Attributes[] filter
In the help, Msdn states
<<<
The attributes parameter array is used to filter the array. The attributes
parameter can have a mix of Type and Attribute objects. Filtering is defined
by the following rules:
a.. A Type object is treated as a wildcard; it matches any property that
has the Type in its set of attributes.
>>>
Anyone know how do a I pass a mix of Type and Attribute objects in an
'Attribute[]' ?
Thanks in advance
Regards
Tom Tag: remote browsing Tag: 74706
Making a form a child of a control
In Delphi it's possible to make a form appear inside a panel control as a
child subform by setting the form's Parent property to the instance of the
control. When I try to do the same in .NET I get the error "Cannot make a
top-level control a child of another control". It would really be a huge
disappointment to find out that Windows Forms doesn't allow nesting of forms
inside panel controls, so I hope I'm just not doing it right.
Any suggestions? Tag: remote browsing Tag: 74703
reading a xml file
hi iam getting 1kb xml file like this
<Transfer><rec>1</rec><Message>sds</Message><From>testingnet</From></Transfer>
i want to read only between<from> in the xml
the result should result me only testingnet
i have searched a lot of stuff, i could not find out the easy way to read in windows, vb.net
any body help me, to find the result in between the tags. Tag: remote browsing Tag: 74688
Menu's on MDI Child Forms
Is it possible to create Main Menus on MDI Child forms as opposed having them displayed via the MDI parent form. And if it is possible how is this achieved? Tag: remote browsing Tag: 74685
Proces-name in Task Manager
Hi,
I want to change the name of my application in the list of Processes in the
Taks Manager. But whatever I change, it stays the same. I changed the
AssemblyTitle, the Solution-name, the Project-name, the Root Namespace, the
Project File, but none of these changes had any effect...
Does anybody where I can find it?
Thanks a lot in advance!
Pieter Tag: remote browsing Tag: 74680
About WinForm/WebForm control naming conventions
Hi,
Is there any naming conventions MS prefered about WinForm/WebForm controls?
For example,
1. lblCustName, txtCustName, btnOK
2. CustNameLabel, CustNameTextBox, OKButton
3. LabelCustName, TextBoxCustName, ButtonOK
4. CustName, OK
Which one is prefered? Tag: remote browsing Tag: 74679
About WinForm/WebForm control naming conventions
Hi,
Is there any naming conventions MS prefered about WinForm/WebForm controls?
For example,
1. lblCustName, txtCustName, btnOK
2. CustNameLabel, CustNameTextBox, OKButton
3. LabelCustName, TextBoxCustName, ButtonOK
4. CustName, OK
Which one is prefered? Tag: remote browsing Tag: 74678
sort to top
Depending on a column value , i want to display the rows .
That is if the col1 has val1 i want it in the beginning rows of the
grid(sorting to top)
Is there a way to do?
thanks. Tag: remote browsing Tag: 74673
creating .eps image with C#
Hi everyone! Can anyone show me or point me in the right direction on how to
create an EPS image file in C#?
I've tried creating bitmaps and jpeg files but I need to create an image
file in an EPS file format for printing graphs.
I'm converting a C++ chart generating program to .NET and in the C++
program, I used postscript printer driver in order
to print the graph to file.
Thanks
phong Tag: remote browsing Tag: 74669
CheckBoxes in TreeView
I want to implement checkboxes in all child in a treeview EXCEPT all top
most root nodes.
TreeView control's CheckBoxes property implement this functionality to all
nodes.
So is there some way to implement CheckBox to some specific node?
Thanks Tag: remote browsing Tag: 74666
ComboBox.SelectedText always returning empty string
Hi all,
I know I must be missing something very simple here, but this little problem
is baffling me.
If you have a combobox called cmbMyCombo and add a bunch of strings to it,
say, "Apple", "Pear" and "Orange", and then call the
cmbMyCombo.SelectedIndex it will tell you the index of the item that was
selected. However, you would think that if you called
cmbMyCombo.SelectedText it would give you the TEXT of whatever was selected
(i.e. Apple, Pear etc), but all it does is return an empty string. Does
anyone know why this is?
Dano Tag: remote browsing Tag: 74659
Media Player on WinForm
I am dropping the Media Player control onto a WinForm and things work fine.
Is there a way to hide the Media Player controls?
Thanks,
Steve Tag: remote browsing Tag: 74657
I have a master form, but...
Hi all,
I am now using a master form to derived my windows forms from.
The problem is - I dont know how!
I have a master form with a menu control across the top, I have then 3
others forms that I want to inherit the master form, I have added inherit
master form etc at the top - in the design view of VS they appear fine.
When it run the application I get a blank (master form) with the menu and
nowt else...
I basically want one of the other forms to load/appear/be visible etc, how
does one call it in - lets say from the click on an item on my menu..?
Any help appreciated - this has been a bit of a show stopper :(
Regards
Rob Tag: remote browsing Tag: 74652
DateTime values in DataGrid
I am populating a DataSet using SqlAdapter and then displaying it in a DataGrid. Some of the values in the DataSet are DateTime. It seems by default they are displaying as dd/mm/yyyy and I want to also display the time. I have played around with the DataGridTableStyle and the DataGridTextBoxColumn but nothing seems to take affect. Is there a good resource that outlines how to use these classes or is their an easier way to go about things?
--
Dan S Tag: remote browsing Tag: 74651
Exception with AsyncCallBack + Control.Invoke
I posted it in the wrong newsgroup. So I have to repost it again. Sorry.
I used Application.ThreadException event to handle all unhandled exceptions
in WinForm application. However, when I start converting my application
into asynchronous operation, I have faced with some problems. I used
AsyncCallBack to do something when the operation finishes. However, as you
might know, AsyncCallBack delegate will be called in a different thread from
the activated thread (which is likely to be the thread that run the
asynchronous operation). In certain cases, this delegate might throw an
exception and I WOULD LIKE to have the Application.ThreadException to handle
this exception. But I cannot do that since the current thread is not UI
thread. So, the exception will just disappear. I also thought of a silly
idea by calling Control.Invoke(ThrowAnExceptionForMe) but inside
Control.Invoke, there is a try-catch block which will throw an exception
back to the calling thread (which is not a UI thread). It would be nice if I
can find a workaround for this without changing the way I handled the
exception (I mean still depending on Application.ThreadException). Any
suggestion?
Matt Tag: remote browsing Tag: 74650
How many touches does no touch deployment take?
ERROR: Not Found
Now I guess I am missing something very basic here, but it has now taken
nearly a full week to get my app launched from a browser URL - and still I
haven't succeeded.
The error I am getting now when I launch the exe as a URL is 404: Not Found.
But what isn't found????
'ntmizar': Loaded 'dw9ryd7d', No symbols loaded.
'ntmizar': Loaded '2hulxqpj', No symbols loaded.
'ntmizar': Loaded
'c:\winnt\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3
a\system.enterpriseservices.dll', No symbols loaded.
'ntmizar': Loaded 'pr7x_hbw', No symbols loaded.
'ntmizar': Loaded 'lk0plth9', No symbols loaded.
An unhandled exception of type 'System.Net.WebException' occurred in
IEExec.exe
Additional information: The request failed with HTTP status 404: Not Found.
(This is displayed when I choose to debug)
The EXE and one DLL ARE DOWNLOADED before the error occurs:
'ntmizar': Loaded 'c:\documents and settings\ciskac\local
settings\application
data\assembly\dl2\ngbqkna0.aoo\6d9dohkj.9oo\0482e537\80b95ef7_eb68c401\shu.f
d.printunit.ui.exe', No symbols loaded.
'ntmizar': Loaded 'c:\documents and settings\ciskac\local
settings\application
data\assembly\dl2\ngbqkna0.aoo\6d9dohkj.9oo\e26366cd\00f694f5_eb68c401\shu.f
d.printunit.business.dll', No symbols loaded.
BACKGROUND
I can launch the app by URL from the development machine but not from
several other PCs which all have the .NET framwork v1.1 installed.
The windows forms application (exe) and support dlls have strong names and
are all in the same directory on the webserver.
I have configured security to Fully Trust everything from this URL.
The app has been built in debug and release configurations and all files in
the bin directory copied to the webserver.
A config file is used and the web.config file has been modified to permit
its download
Between tests I clear the download cache using gacutil and the Internet
Cache
The webshare has been configured not to execute scripts
Any pointers on this would be greatly appreciated.
Many Thanks
Ken Tag: remote browsing Tag: 74645
is Disposed required for shared form ??
Hi,
I have a Windows App which uses a custom form to display messages.
This form is based on the singleton pattern so that the user does not need
to explicitly create an object of this form.
After the Showdialog() method on this form, do i need to dispose this form
explicitly. i distinctly remember one article saying that all Modal forms
needs to be disposed explicitly.
This is the code snippet i am using:
Public Class myMessageForm
Private Sub New()
'new instance not possible
End Sub
private Shared frmMsg as MyMessageForm = Nothing
Public Shared Function Display(ByVal text as String) as DialogResult
If frmMsg is nothing then
frmMsg = New MyMessageForm
End If
'Set some properties
Return frmMsg.ShowDialog()
End Function
Calling Code:
If txtCustId.text.Length = 0 Then
MyMessageForm.Display("Invalid Customer Id")
End If
Any help would be appreciated.
TIA :) Tag: remote browsing Tag: 74644
Access keys to access the TabPage
Hello Group,
I need to have access keys to access the TabPage.
(e.g)
TabControl1 will have TabPage1, TabPage2, TabPage3.
I want to display the tab pages with the access keys under-lined as follows
TabPage1 TabPage&1 - Where 1 is the access key
TabPage2 TabPage&2 - Where 2 is the access key
TabPage3 TabPage&3 - Where 3 is the access key
What is the simple best way to achieve this.
thanks in advance
muthu Tag: remote browsing Tag: 74643
Problem with the Windows Forms Designer...
I have a custom control called, lets say, SportBillyComboBox, which
inherits from ComboBox. When I add my control from the toolbox, I get
an error (System.NullReferenceException : Object not set to an
instance of an object) on my form replacing the control, but my newly
added SportBillyComboBox is there (even if "you can't see it" - under
the Exception) and seems to work fine in compilation and in runtime.
But when I next use the Windows Forms Designer to change or add
something, it automatically adds those lines in the designer :
this.SportBillyComboBox1.Items.AddRange(new object[] {
((object)(resources.GetObject("SportBillyComboBox1.Items"))),
((object)(resources.GetObject("SportBillyComboBox1.Items1"))),
((object)(resources.GetObject("SportBillyComboBox1.Items2"))),
((object)(resources.GetObject("SportBillyComboBox1.Items3")))});
Even if I never asked in the Designer to add some items in the
collection, it magically appears in my InitializeComponent Code -
TADAM! But worse of all, it doesn't add the necessary entries into my
Form1.resx resources file so the code crashes on the newly
automatically magically added line. Sure, I can always erase those
lines, but every time I change something in my form, it add those
lines again and again and again...
Anyone having a fix for this one? Even my first problem (when I add
the control to my form... the little "System.NullReferenceException"
error) is disturbing!
Do you have any clue?
Thank you,
electroVik Tag: remote browsing Tag: 74641
Windows App and Dynamic Web Services
I am writing a windows application that uses a web service however the
location of the web service is not always the same. It seems when I create a
windows application to use the web service, the location of the service is
hard-coded into the application. Is this true or can I change the location
of the web service at run-time?
Thanks! Tag: remote browsing Tag: 74640
get Handle to an Application/Window, not a Process
Hi,
I need to do osme handlings with an Internet Explorer Window. The problem
is: when the user has one ore more Internet Explorers opened, this is
(sometimes) indicated in the Task Manager as one process and not 2 or more.
When trying to get all the IE-windowd with the "For Each p In
Process.GetProcessesByName("IEXPLORE")"-function, I only get 1 process
returned, which has as "p.MainWindowTitle" the MainWindowTitle of one of the
open IE-windows.
Like that I'm not able to work with that IE-window I need. Does anybody how
to get arroudn this problem? Is there a way to go directly by the
Windows/Applications and not the Processes?
Thanks,
Pieter Tag: remote browsing Tag: 74635
Bring another Window to Front
Hi,
My application has some interaction with an other application. I sometimes
need to put the other application to the front. The problem is that I'm not
able to get a nice solution to work in every case. I tryed two ways: one way
it disn't maximazi the Windowd when it was Minimized, in the other way it
resized the application when it was maximzed.
First I take a Handle to the other Window with the
"Process.GetProcessesByName("EXTRA")" and with the "Dim handle As IntPtr =
Process.MainWindowHandle"
First 'solution':
SetForegroundWindow(handle)
This gives me the problem with Mimized Window that gets the focus, but
Second 'solution':
ShowWindow(handle, SW_RESTORE) 'SW_RESTORE = 9
SetForegroundWindow(handle)
This gives me the problem with the Maximized Window that is suddenly
resized.
What I actually need is a solution that works always:
When the Windowd is Maximized, it has to keep Maximized. When it is Resized
it has to stay Resized. When it is Minimized it should be Restored (to the
last Status: Maxmimized or Resized).
I found some stuff about the IsIconic-API, but it didn't seem to work.
Does anybody knows a solution for my problem? I'm really stuck with it :-/
thanks a lot in advance,
Pieter Tag: remote browsing Tag: 74634
Suppress ActiveX Control Warning in web browser control
I'm writing a windows app in c# that can display offline html forms. The app uses the Microsoft Web Browser COM control. The offline forms our generated by another application.
The offline html forms contain script code that saves the users inputs in an XML file on the client machine. This script code uses the wsh FileSystemObject and causes the web browser control to issue the warning "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction? Yes / No"
Is it possible for my windows app to intercept this warning before it is displayed and return a positive response (i.e. the same as the user clicking 'Yes') ? I know the warning can be suppressed by setting the silent property to true (axWebBrowser1.Silent= true;) but this defaults the answer to false (i.e. the same as the user clicking no).
Any suggestions would be appreciated.
Thanks Andrew. Tag: remote browsing Tag: 74628
VS.NET-like interface: Docked Panels, Tabs, etc
Hi,
I want to give my application a Visual Studio .NET-liek interface: With
Forms that can appear or disappear at the site like the Toolbox. With docked
Forms. With Forms that are selectable with Tabs.
I found some information abotu these stuff on the internet, but you always
have to buy for it, or it is a dll. For security-reasons I'm not allowed to
use dll's without having the source-code of it, So I can't use these things.
(for exemple http://www.divil.co.uk/net/controls/dockingsuite/).
Does anybody knows where I can find the (free!) source code for what I'm
looking for? Any help our hints would be really apreciated!
Thanks a lot in advance,
Pieter Tag: remote browsing Tag: 74621
Problem with f.ShowDialog()
Hi all
When a child form is shown with ShowDialog, User can not click to ParentForm Until Child form is closed.
It's normal. The problem occurs when My Child form has the following code:
Private Sub Button1_Click(...) Handles Button1.Click
If Me.Owner.Opacity = 1 Then
Me.Owner.Opacity = 0
Else
Me.Owner.Opacity = 1
End If
End Sub
When User Click Button1 twice, it hide/unhide Parent Form.
After this, user can focus on Parent form and ca work with it.
Does anybody know how to prevent this ?
Thank you in advance.
Tai Le Tag: remote browsing Tag: 74619
tab control Q
Hello
how can i change the active tab-page in a tab control by code?
tabpage4.show() works but the tab itself doesn't change, only form changes.
i mean activation the same as by mouse click. Tag: remote browsing Tag: 74611
CheckBoxes In TreeView
I want to implement checkboxes in all child in a treeview EXCEPT all top
most root nodes.
TreeView control's CheckBoxes property implement this functionality to all
nodes.
So is there some way to implement CheckBox to some specific node?
Thanks Tag: remote browsing Tag: 74610
MDI Refresh Redraw
How do I refresh if MDIParent.Refresh/.Invalidate dont do anything? I want it to refresh immediatly after setting the style. This is how I removed the border.
Public Shared Sub MDIInside3dBorder(ByVal mdi As Form, ByVal Flag As Boolean)
If mdi Is Nothing Then Exit Sub
If mdi.IsMdiContainer Then
Dim x As String = " "
Declares.GetClassName(mdi.Handle, x, x.Length)
x = Replace(x, "Window.8", "MDICLIENT")
Dim curstyle As Integer, newstyle As Integer
Dim hwnd As IntPtr = Declares.FindWindowEx(mdi.Handle, IntPtr.Zero, x, vbNullString)
If hwnd.Equals(hwnd.Zero) Then Exit Sub
curstyle = Declares.GetWindowLong(hwnd, Constants.GWL_EXSTYLE)
If Flag Then
curstyle = curstyle Or Constants.WS_EX_CLIENTEDGE
Else
curstyle = curstyle And (Not Constants.WS_EX_CLIENTEDGE)
End If
newstyle = Declares.SetWindowLong(hwnd, Constants.GWL_EXSTYLE, curstyle)
'Refresh HERE with newstyle
End If
End Sub
Thanks!
I know I posted this earlier, but got pushed down. Tag: remote browsing Tag: 74605
MDI Refresh/Redraw
How do I refresh if MDIParent.Refresh/.Invalidate dont do anything? I want it to refresh immediatly after setting the style. This is how I removed the border.
Public Shared Sub MDIInside3dBorder(ByVal mdi As Form, ByVal Flag As Boolean)
If mdi Is Nothing Then Exit Sub
If mdi.IsMdiContainer Then
Dim x As String = " "
Declares.GetClassName(mdi.Handle, x, x.Length)
x = Replace(x, "Window.8", "MDICLIENT")
Dim curstyle As Integer, newstyle As Integer
Dim hwnd As IntPtr = Declares.FindWindowEx(mdi.Handle, IntPtr.Zero, x, vbNullString)
If hwnd.Equals(hwnd.Zero) Then Exit Sub
curstyle = Declares.GetWindowLong(hwnd, Constants.GWL_EXSTYLE)
If Flag Then
curstyle = curstyle Or Constants.WS_EX_CLIENTEDGE
Else
curstyle = curstyle And (Not Constants.WS_EX_CLIENTEDGE)
End If
newstyle = Declares.SetWindowLong(hwnd, Constants.GWL_EXSTYLE, curstyle)
'Refresh HERE with newstyle
End If
End Sub
Thanks!
I know I posted this earlier, but got pushed down. Tag: remote browsing Tag: 74604
opening another form in a different solution
I'm new to VB.NET, so please bear with me..
I've created several forms, each in their own solution. I want to create a "switchboard"; however, it seems that I can only open forms that are in the same solution. Is this possible to click on a button and open a form in another solution?
Thanks Tag: remote browsing Tag: 74600
No Cursor in pop-up window
I am creating an MDIForm application in CSharp.Net. When I open a new form the focus does not appear to the be in the first field. I have tried using .Focus() in the load event (after calling this.ShowForm() to get the CanFocus property to be true.) I have also tried setting the ActiveControl property of the form. None of this helps. The first field is a control we created extending the textbox control. Strangely enough if I click off of the form and then click on the form header (re-activating the form), the field gets focus fine. What's going on here? Tag: remote browsing Tag: 74597
Virtual Forms.DataGrid
Looking for a functionality similar to Virtual ListControl [Windows SDK -
LVS_OWNERDATA style] in a dot net windows forms datagrid control. Any
directions would be of help. Thanks in advance. Tag: remote browsing Tag: 74593
combobox selectedindex problem
Hi
I have a two form Form1 and Form2
Form contains one panel and panel contains one combo box.
I am inherit the form1 in Form2
Form 2 contains one panel. Form2 is having entry point.
on the load event of form2 i am addining form1's panel into form2's panal.
now what happend is the selected index property which is set in the form1
load is not retaining. always its selectedindex is 0.
how can i solve this.
Please guide me. thanks in advance
Regards
Jay Tag: remote browsing Tag: 74590
Problems with inheritance in vb.net
Hi, all.
I'm having a problem which vb developers had for certain al least
once.
I have my base form, declared as musthinherit;
Public MustInherit Class frmsdvPrincipal
...
and my child form, declared as inherited;
Public Class frmsdvEtiquetas
Inherits SDV.UL.Principal.frmsdvPrincipal
...
In run-time, frmsdvEtiquetas runs perfect, but in design time, this
error occurs;
"The designer must create an instance of type
'SDV.UL.Principal.frmsdvPrincipal' but it cannot because the type is
declared as abstract"
I've tryed several tips like deleting the reference and adding it
again and excluding the child form and including it again, but nothing
works....
Can someone help me? What am i doing wrong?
URGENT!!!
Thanks in advance! Tag: remote browsing Tag: 74586
Hi!
How can i browse (ie with an OpenFileDialog) a remote system?
Has someone done it?
Thanks!