Answer Questions
2162 Disposing a form which has user control?
Hi,,, I have created a windows application using c#. I have included a user control, which has tree view. I have included this user control in all forms. My issue is : As the tree view is in all forms, when i try to show a second form, the first form is also visible, moreover the second form appears below the first form. I tried to dispose the first form,when the second form loads, but its disposing only the user control and not the first form. Please help me in disposing the first form, and making only one form active and visible at one point of time. The first form should not be running at the backend. It should be disposed. Please help Form1 frm1 = new Form1() Form2 frm2 = new ...Show All
Vítor MMC 3.0. How to create a toolbar?
is there a way to modify the toolbars in managed C# MMC 3.0 snap-in If no, is there a way to assign a shortcut key to some defined action Thanks, Anton. TY anywayz.. I seriously doubt you'll get a good answer on this forum. MMC is about as far removed from Windows Forms programming as I can think of. Try posting your question on one of the MSDN news groups. Good luck. ...Show All
Musa_Tariq_Raza user controls scatter
hi there is a problem i am getting.I made some circuit drawings by user controls(c#). but the problem arises when i resize the form.the user controls scale but one gets impression that the connections are broken.even my connecting lines are user controls. please suggest any method to overcome such problem. jack yes guys I finally did! come to me i you want ...Show All
rayfusion DataGridView, Transparent Selected row color
Hi, The blue selected row color in a DataGridView hides every other colors a row could have which is very annoying. Is there a way to change the alpha to make it transparent Thanks I'm looking for an answer to the previous question — how can I alter the color of the selection Do I need to subclass DataGridView Or is there an easier way to change the selection color But this would set the background at all time isn't it What I need is to set the row selection color to semi-transparent, still colored but we see the color under it mixed up with the row selection color so it is still obvious that the row is selected. Hi Rashmi ... Thanx for your repl ...Show All
Ri_Kamen Taskbar Problem
When application startup, the application taskbar button doesn't appear on the task bar, any suggestion to fix it Check that the property "ShowInTaskBar" in the section "Window Style" in your form is true. Regards. PD: Sorry chettu, whil i was open the VS to view the property you replie :P This is a Windows programming forum. For troubleshooting help with applications like Excel and Word, please try your luck at a news group at www.microsoft.com/communities. How to get to the section "Window Style" to check the property "ShownInTaskBar" Can you give a more detailed explaination because i'm not familiar with computer. ...Show All
liep114 Property Grid
Does anyone tried using a Property Grid. If yes, does it have a textchanged event. I do not see an event other than the valuechange which fires on tab of the cel.. What I want is an event that fires as soon as the user types in a key in the cell. Thanks The PropertyGrid control has both a TextChanged and PropertyValueChanged event. BTW please post WinForms related questions in the WinForms forum. Please reserve the BCL forum for questions related to the BCL that are not covered elsewhere. I'm moving your question to the WinForms forum. Michael Taylor - 10/2/06 ...Show All
Eugene S.B. DataRelations and ComboBox Data binding
Hi, I have a dataset with 2 tables: "Areas" and "Streets". There is a relation in the DataSet that links Streets to their areas via Areas.ID = Streets.AreaID: dsComboData.Relations.Add("StreetsToAreas", dsComboData.Tables["Areas"].Columns["ID"], dsComboData.Tables["Streets"].Columns["AreaID"], true); I also have 2 ComboBox controls that are on a form. One is to display all Areas, and the other, is to display all Streets within the area selected, once an area is selected in the combo. I am pretty sure that there is a way to use the relationship in the dataset to prevent having to write code to 're bind' the Streets combo box when the selection in the Area combo box cha ...Show All
Bernaridho Custom Controls (Help please)
Ok my first question is this..Can you have a Panel with Items "Collections" 2nd Question is: Can you make a ComboBox Background Transparent It dosnt support it Normally so,i figured you could make the Background transparent Programatically... ComboBox has Items (Collections)...Thats the type of Collections i want to apply to a Panel Hi Rattlerr, As to your second question, it seems that it does not support it normally, unfortunately. You can see the feedback here. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=88445 I'm also trying to find out whether there is a way to make the background transparent p ...Show All
charles C Problem with big form
I try to make big form but i cant make it bigger than 1036; 780. I set property MaximumSize to 1200;1200 but still i cant make bigger form than 1036; 780. Please help me :) Penal What is it :) Hi, It's a problem. But you can add such code to your application. protected override CreateParams CreateParams { get { CreateParams cp = base .CreateParams; cp.Height = 2000; cp.Width = 2000; return cp; } } You can set the height and width to any pixels. Then the limitation is gone. Thanks the anonymous user in this post . Hi If you place a penal of 1200, 1000 on that form then you can design a form with the desired size, so place a penal ...Show All
Majid.vagheeian Control.Dispose() also disposes the contained controls?
Hi, Does Control.Dispose() also disposes all its contained controls I've found an old thread on the same question, but didn't have definitive answer. It'd be helpful if a relevant page in MSDN library documentation can be pointed out. Thanks for any info. Yes it does. See http://msdn2.microsoft.com/en-us/library/a4zkb31d.aspx. The public method is inherited from Component, so no such details. The protected Dispose(bool) method, which is called by the public Dispose(), makes this explicit. The above link should take you to the online doc. Enjoy, Erik Thanks. ...Show All
alan_b How to handle errors?
Hello, If some programming state is not okay (like finding that a SerialPort is not open prior to sending data) I would like to show some error message. I would like to handle all error messages-displaying in a central place by a single function. How do I achieve this (As a newby in C#, in Borland C++ I was used to use a global string for storing the error messgae which is displayed when all nested functions return false). But C# does not allow a global string( ), or what other mechanism is usually applied for this purpose All tips and hints are welcome. regards, Henk Throw an exception. Try it, you'll like it once you get the hang of it... It's ni ...Show All
wfilus Adjusting Panel position and its members creates flashing effect
I have a panel setup for a bunch of buttons and labels. This form stays the same, but the labels change names and the panel centers on the screen after each time the names change. Each time the location of the panel changes location there is an unwanted flashing effect on the panel and labels. There is a background image and the panel and labels flash white. When the background image is removed, the flashing stops (most likely because you cannot see the white on the white background). Is there a way to stop the auto redraw of the panel temporarily I'm programming in C# now, but I also had this problem in Basic. Any help is appreciated. Thanks. are you calling the SuspendLayout and ResumeLayout methods in ...Show All
Jessica Alba DataGridView Unbound Row
I would like to mimic the functionality of either the Messages View or the Task > By Category view found in MS Outlook 2003. I’ve created an object that inherits from DataGridViewRow that can draw itself correctly within the DataGridView however when DataGridView is bound to any data source I haven't found a way to add my custom rows to the DataGridView. My plan of attack was to sort a DataSource by its ‘GroupBy’ column and then insert my custom DataGridViewRow in between the data bound rows. Is this possible Should I be attacking this at a different angle Is there a way to extend the data binding provided by the DataGridView Thank you I've seen that example before and it's close to what ...Show All
Dave987654321 asyccallback in child app
hi, i've made an parent - child (4) app. in one of the childs (titeled: get data) i make an ethernet connection to an micro processor. when i have connection i send a string so the processor can responed and send the data i need. but receiving the data takes time, even when its only a minute, the user will see it. so i thought to receive the data asychron but i still remain with the waiting problem. the user most be able to do things in the three other child wile 'get data' is getting his data im not sure how to do this, i am formiliar with asynccallback, ect. because i use this to make my ethernet connection. so here is my problem in short: 4forms, 1 where data is beeing received and during this the user most be able to use the ot ...Show All
Borko Progress Bar / Text and timer
I have a form that I want to do the following: When the user clicks on the application, it will load a startup screen, which will simply display a logo for around 15 seconds, then close and open another form. What I need to know is what code and need to make the Progress bar show like something is loading, synched to the background timer, which is set to 15 seconds. So when the program comes on, the user see's the logo and the timer starts. The timer controls the progress of the prgress bar.. then when the progress bar reaches 100%, Form1 closes and Form2 opens. I would also like some text above the progress bar that says variouse things as the timer and progress bar advance... like "Loading GUI", "Loadin ...Show All
