| OpenFileDialog & DoubleClicking to Select a File? (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| In the OpenFileDialog, if I double click to select a file, the dialog dissappears with an OK, but I notice that my user control benieth the OpenFileDialog gets a MOUSE UP event (which results in a selection in my user controls). Note: my user control does NOT get a MOUSE DOWN event, just UP. So, I see 2 possible solutions (unless anyone has any better ideas). 1) Somehow absorb that mouse up event ... |
|
| Customising the Datagrid. (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello I have two questions. Question 1. The Datagrid that comes with the .net framework has a property TableStyles that is of the type GridTableStylesCollection. Nothing is said about inheritance in the class documentation but the constructor is missing.. The same goes in the case of GridColumnStylesCollection as well. Is there any way i could derive a class from GridTableStylesCollection or GridC... |
|
| drag/drop and DataBinding (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| When I drag N drop content onto a textbox, which is bound to a field of a DataTable, I expect the dropped content to show up in the table.rows(index)("columnname"). But it doesn't, even though the drop was visibly successful, at least not until I click in the textbox with the mouse and then tab out of it. Is there something that needs to be done in the DragDrop event of the textbox other than sett... |
|
| Datagrid Scrollbars (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| In VB, I created a drived datagrid control, and I'm trying to prevent the scrollbars from ever showing. Just adding "Mybase.VertScrollBars.Hide" or .Visible false Does not help. So I tied to add a Handler fo the "VisibleChanged" events of the scrollbars then the scroll bars do not show, but the column data underneeth them do not show too. I tried to "Invalidate" the rectagle containing the scrollb... |
|
| Form KeyPress (8 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have a form with several controls on it. When the user types a key on the keyboard, I would like one keypress event to be raised regardless of which control has the focus. How can I do this? Thanks, Christopher Dedels |
|
| Data binding experiences (5 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I hope I am not being too presumptuous in asking, but I am most interested in knowing how well data bound controls work in Windows Forms applications. I'm in the planning stages of creating a largeWindows Forms application. (I'll be using the OleDB assembly with an Oracle database). Creating applications in classic Visual Basic (vers 3,4,5,6), using data bound controls were best used for small sam... |
|
| How Cann a Mdi Child get a inner Size of MDI Form? (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hallo, Sorry for my English. My Question: Ich have a MDI Application and I wont display the MDI Child Forms maximized in the MDI Parent, But I don't found out how I get the Rectangle of the inner size of the MDI Parent. Could enybody help me? Thanks Igor |
|
| tabcontrol in c# (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| the order of my tabpages on my tab control has suddenly changed and i would like to know if i can control in which order the tabpages are added, as the current order pretty much gives me a lousy layout of the pages so far the pages were added to the tabcontrol in the order they are created/appear in my .cs file out of a sudden the order is changed which way can i control in which order the pages a... |
|
| Usercontrol Transparency Problem (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, I have a user control which I've set to be transparent in the constructor using (c#): SetStyle(ControlStyles.SupportsTransparentBackColor, true); this.BackColor Color.Transparent; Basically, the control I'm trying to make is a line. The line is drawn to the size of the control. Everything works fine, the line is drawn to the size of the control except that when I overlap the controls in my pan... |
|
| UITypeEditor (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I was wondering if someone could please help me with my custom UITypeEditor for a winforms control. Basically I've made a property where a UITypeEditor allows my form to pop up to edit a custom property. All of this seems to be working okay, but I need to call a method after this form is closed, but the method is on my control. I don't see anywhere in the UITypeEditor where theres a reference to t... |
|
| how do I access Resources using Code... (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, could someone give me a 1,2,3 approach how to use Ressources with VB.NET? I use the ResEditor to create a *.resources file and included in the Project... then try to use the ResourceManager class but I keep getting all kind of error, such as Missing Resource Information.... How can I access resource Images for example using code? Please help. Sam J. |
|
| How to adjust the size of output area dynamically when using DrawString (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, I am using C# code as below to print text in a rectangle area. private void prndoc OnPrintPage(object obj, PrintPageEventArgs ppea) { Graphics graph ppea.Graphics; PointF startPoint new PointF(100,200); RectangleF printArea new RectangleF(startPoint ,textBox1.Size) graph.DrawString(textBox1.Text, new Font("Arial",10), Brushes.Black, printArea); } The question is how to adjust the size of pr... |
|
| MessageboxIcon (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Does anyone know how I can get the MessageBoxIcon bitmaps for use in my own application. Apart from the obvious of using tools like michelangelo. TIA |
|
| How to use the Console object (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, What do I need to do in order to write text to a console window from a WindowsForms app? If I call Console.WriteLine, nothing appears to happen. TIA, Bob |
|
| Strange Form Activation Behavior (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Here's how I'm showing a login dialog box as soon as my main application form loads. The dialog displays on top of the main form. Protected Overrides Sub OnActivated(ByVal e As System.EventArgs) Dim frm As frmLogin If m Activated False Then m Activated True frm New frmLogin() frm.ShowDialog(Me) Me.Activate() frm Nothing End If End Sub Without the Me.Activate statement following the return from the... |
|
| Why does my Form lose focus? (4 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Here's how I'm showing a login dialog box as soon as my main application form loads. The dialog displays on top of the main form. Protected Overrides Sub OnActivated(ByVal e As System.EventArgs) Dim frm As frmLogin If m Activated False Then m Activated True frm New frmLogin() frm.ShowDialog(Me) Me.Activate() frm Nothing End If End Sub Without the Me.Activate statement following the return from the... |
|
| How to: multiple lines of text in one cell of a DataGrid (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello dotnetters, I want to display multiple lines of text in one cell of a DataGrid. When I use a DataGridTextBoxColumn to define the columns of the DataGrid I have multiple lines of text shown in the cell but only when de cell is selected. After I leave the cell only the first line of text is shown in the cell. Can anybody help me solve this problem? Menno |
|
| NotifyIcon and Form Troubles (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I've built an app that uses the NotifyIcon control to run out of the task tray. The app can start either as a regular app or task tray app depending on the command line. When the app runs as full app all is well. I get the correct icon for the form/application and the form displays Ok. When I run using the NotifyIcon I want to hide the form on startup and only display it when I click on the contex... |
|
| EndCurrentEdit problem (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| If I'm editing a bound textbox, and I call EndCurrentEdit on it's CurrencyManager, and that the textbox doesn't loose focus, the changes aren't saved. This causes me a problem because if the user enter something in the textbox and press a toolbar button, it will not update and I clear that data... (since it should be updated). Is there any work around to this? (I'm using .Net Framework v1.1, but I... |
|
| web deployment of a windows forms app with a .config file (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| We want to build a windows forms application that will be distributed using web deployement on an intranet. During initial attempts to see how this works we encountered the following problem: After having followed the directions in Chris Sells article ".Net zero deployment" in msdn magazine of July 2002 everything works fine. Next however I added a config file that is being read by the app. So the... |
|
| Where Is CollectionEditor (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I am trying to use CollectionEditor which I found in the documentation but I cannot seem to either instantiate it or inherit from it as it appears I should be able. I have a property on a base form that I want the user who inherits it to be able to edit and the Property is a collection class which contains another collection class. I have the following code: Public Class MyCollectinEditor Inherits... |
|
| Property Persistence Problem (5 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I am building a form inherited from Windows.Forms.Form that will be used as a base form that will be inherited by most forms in my application. Among the properties and methods that the base form implements is a collection class that implements another collection class within it. When I add a new form inherited from this base form everything works. I can add members to be collection class and also... |
|
| How to insert scripting inside tag (like DataNavigateUrlFormatString = "javascript:MyScript({0},'<%=hFL.UniqueID%>','<%=hAL.UniqueID%>')") ? (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, I have a datagrid and need to produce an HyperLink column like that : asp:HyperLinkColumn HeaderText "Delete" DataNavigateUrlField "FolderId" DataNavigateUrlFormatString "javascript:MyScript({0},' % hFL.UniqueID% ',' % hAL.UniqueID% ')" Text "Delete Folder"/ In order to call a JavaScript : function DeleteFolder(idFolder,hFL, hAL) But the generated HTML code is a href "javascript:MyScript(71... |
|
| list control (3 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| In VC has a list control. Does C# have something like? I tried to use datagrid, but don't know how to add row and column. Where I should look? Thanks. |
|
| Specifying more AnchorStyles in code. (2 replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello all, I would like to manage Anchor in code, but i don't know, how to specify more AnchorStyles for Anchor in Code. For example I!d like to specify AnchorStyles.Top and AnchorStyles.Right. There is written something about FlagsAttribute class, but I don't know, how to use it. Any suggestions ? Regards, p. |
|