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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms 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: Menu's on MDI Child Forms Tag: 74586
find IE-window with given URL
Hi,
I need my VB.NET-application kind search through all the Internet
Explorer-windows for a browser-window that is opened on a given URL. If it
finds such a browser-windiw, it should put it to the front.
Does anybody knows how to do this? I alreaddy tryed with processes, but it
seems it's not possible to see the url?
Any help would really be appreciated.
Thanks a lot in advance,
Pieter Tag: Menu's on MDI Child Forms Tag: 74584
PropertyGrid:customize the backColor of the 'value' part of a grid
Hi,
Thanks to many codes over the web(specially this one www.codeproject.com/cs/miscctrl/custompropertygrid.asp) I've been able to use the .net propertyGrid the way I wanted. Including Editors and Converters. Now I have a really special question. Since the propertyGrid fields and properties are not all accessibles, it's a really pain in the... to change the back color of a gridItem. By using a Editor(the same for all my properties) I have been able to go through...Altmost. I can now display the color I want for a gridItem (on the 'value' part) but since I just redraw a rectangle and fill it with the appropriate color I still have a white back color for the text representation which makes my propertygrid simply ugly.
Therefore, Does anybody know how to fully customize the back color of a gridItem within the propertygrid ? I'm getting mad %D
Thanks Tag: Menu's on MDI Child Forms Tag: 74579
Property Page creation :Pointers reqd
Hello
I need to creare property pages in dot net, I guess avariable number of
property sheets
Please let me know, any source or any pointer where i can start with Tag: Menu's on MDI Child Forms Tag: 74577
symphony SDK
Hi...
symphony SDK is not having required information..... MCE is not accessing my Add-in...... Symphony SDK is not good ... it is not having document to write our own program with MCE..there is no document to use Addin.Audio.track.title.name property...... any url is having information regarding symphony.? Tag: Menu's on MDI Child Forms Tag: 74575
Question about Image
Hi all,
My problem is, I have created a form with a background Image assigned to it.
On top of it, I have an instance which is a subclass of PictureBox. I
overrided the PictureBox OnMouseMove method so that it moves along with the
mouse movement. Though there is no problem when moving the PictureBox, as
the PictureBox moves, the form's background Image doesn't update the area
under the PictureBox, there are still some images remain on the screen after
the PictureBox change its location. Can anyone tell me how to solve this
problem?
Thanks in advance.
Tony Tag: Menu's on MDI Child Forms Tag: 74574
Finding controls on a form in another application
Hello All,
In .NET, how can I find out the controls on a form for an application that is running on my computer? The app is either a vb or c application.
Thanks,
Vince Tag: Menu's on MDI Child Forms Tag: 74572
Snappy Rendering of Controls
I have a situation where I'm hosting a number of complex controls within a
form, but only showing one at a time. When the user clicks on a navigation
button one or other of the controls is displayed.
My problem is that, as the control is revealed (it's Visible property is set
to True), it flashes quickly as parts of it are rendered (that is, I can see
squares of white flashing until their BG colors a drawn etc).
What's the correct appropach to take when revealaing a control to avoid this
kind of thing? What I'd like is for it to just snap up in one go. Is there
anything I can do???
Thank you!
===
Phil
(Auckland | Aotearoa) Tag: Menu's on MDI Child Forms Tag: 74568
Getting the popups above the running form.
Hi,
I have a form that scans my entire C: drive for some files. In order to show the status of scanning I use Application.DoEvents to show a label with the folder being scanned. All this runs fine. But whenever there is a popup from another application, that Popup comes below my running form.
How can I make these popups get displayed above my form so that the User can see it as soon as it is popping up.
TIA. Tag: Menu's on MDI Child Forms Tag: 74562
Stacked panel controls
I'm trying to do something simple and can't seem to get my way with the
forms designer.
My form is divided in two: left side a tree view control, right side a
panel with splitter control inbetween. So far so good.
Now I want to stack panel controls on the right side. The idea is that as I
click on tree nodes on the left side, a particular panel is made visible.
So all the panels have to have the form as the parent. Then I
programatically set visibility of the panels in the select handler for the
tree.
I can get this working if I massage the code that the forms designer
generates. However I can't seem to drop panels into the form such that all
the panels are children of the form. Furthermore my hand massaged code is
obliterated the next time I fool with the form.
Is there another, simpler way to achieve my goals?
Regards,
Bob Rundle Tag: Menu's on MDI Child Forms Tag: 74561
A default .resx file ?
I'm developing a multi-language win32 app. It is working fine, I have 3
resource files, each containing all labels, messages etc in one specific
language. The language files is loaded based on the CurrentUICulture that is
on that specific machine.
But I want to have a "default" language, let's say English. This language
must be loaded if the user do not have support for "his" language.
Thanks for all help!
Svein Erik Tag: Menu's on MDI Child Forms Tag: 74559
Reading registry key on another machine on a LAN
This may be simple, but I have not figured out how to do it.
I want to read from a file on another machine on my LAN. The location
of that file is given in a registry key in HKEY_LOCAL_MACHINE on that
machine. I know which machine it is and need to read the registry key
from a program running on my computer.
Any help much appreciated.
Peter
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: Menu's on MDI Child Forms Tag: 74558
Grid with RightToLeft support
Hi,
Is there any third-party grid control with Right to Left support available
on the net?
I've tested dozens of them but non of them supports RTL proprely.
Thanks in advance,
Soheil Tag: Menu's on MDI Child Forms Tag: 74557
Getting the value back from a combo box?
Hi all,
With some help from Jakob Christensen here, and also this article (for
VB'ing it)..
http://www.componentdesigns.com/library/article.asp?a=2
I 'think' I have managed to achieve what I want to do (which was to write
both Text and a Value to each row in the combo box).
My next problem is that I seem to be unable to then 'get' the value of the
selected item in the combo box... :(
Any help would be appreciated, the following code is being used :
Public Class ComboBoxElement
Dim m_ElementText As String
Dim m_ElementValue As Integer
Public Sub New(ByVal ElementText As String, ByVal ElementValue As
Integer)
m_ElementText = ElementText
m_ElementValue = ElementValue
End Sub
Public ReadOnly Property ElementText() As String
Get
Return m_ElementText
End Get
End Property
Public ReadOnly Property ElementValue() As String
Get
Return m_ElementValue
End Get
End Property
Public Overrides Function ToString() As String
Return ElementText
End Function
End Class
And I'm setting the values with this in my page_load :
ComboBox1.Items.Add(New ComboBoxElement("Please select a payment option...",
99))
ComboBox1.Items.Add(New ComboBoxElement("Weekly Paid (£14.95 admin cost for
each week of use)", 1))
ComboBox1.Items.Add(New ComboBoxElement("Monthly Paid (£44.95 admin cost for
each month of use)", 2))
I have managed to return the 'index' value for the selected item in the
combo box, but then I dont seem to be able to find a way to use this to
retrieve the text or the value from it (the value is what I am really
after)..
Your help is appreciated,
Regards
Rob Tag: Menu's on MDI Child Forms Tag: 74556
minimising a modal form to taskbar
Hi,
I have a form which creates and shows another modal form (which I have
turned off taskbar visibility) but when this 'child' form is minimized it
goes to a small title window (like it would if it were an MDI child window)
above the taskbar and the parent window is now visible but you can't click
on it as the modal form is still active, just minimized. I hate this
functionality as I would like that when this child window is minimised it
disappears and it's parent minimizes to the taskbar.
On clicking the minimized window in the taskbar, it maximises the parent and
the child modal form as well.
What is the best way to do this?
Thanks
Nev Tag: Menu's on MDI Child Forms Tag: 74555
Main Menu - common code?
Hi all,
I am putting a small app together which will have 3 windows forms, the main
menu across the top will be the same regardless of which form the user is
on. I have noticed that as I built the first form it has added all of the
'protected with events' stuff for the main menu bits and bobs.
I'm thinking that I would be better of with my main menu code somewhere
seperate, just the once and then call it as needed for each form - any
changes are then only done the once...
Can someone suggest how I might do this please.
Any help appreciated (new to .net and windows stuff - mainly worked on the
web side of things with .net so far).
Regards
Rob Tag: Menu's on MDI Child Forms Tag: 74554
Checkboxes in TreeView Controls
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 but not the specific one.
how can I implement this one through nodes individually to some specific
node?
Thanks Tag: Menu's on MDI Child Forms Tag: 74552
MDI Border Removed
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! Tag: Menu's on MDI Child Forms Tag: 74551
Help me remember a vsnet framework ad? Access dev testimonial
Within the last month or so, in a mag or on the net, I saw an add for
what I think was a vbnet ide framework or addin where there was a
testimonial from a user that said they were a long time MS Access
developer and that they liked whatever framework it was. I have looked
"everywhere" and can't find it again. Does this ring a bell with anyone?
It could have been in an older mag, but I don't think so. Tag: Menu's on MDI Child Forms Tag: 74550
Changing focus leads to increase in memory!!!
I have observed that when I change the focus (Not minimize)
from my .Net app to some other app and bring the focus
back, the memory used and VM size increases slightly. I
have observed the same behavior for some other .Net apps
also. Why is this happening? Is there a memory leak
somewhere in my app or is it something to do with
framework? Is framework painting my GUI again or something
like that? Tag: Menu's on MDI Child Forms Tag: 74547
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?