Answer Questions
C.Melançon Can someone confirm this for me
Hi, I have been trying to find an answer, even a hint, but despite posting the following question on various forums i haven't even had a single reply for nearly two weeks :o(. "Why do treeview tooltips flash if the main form has its transparencykey set " Could a couple of people please try this (its a 67 second job) just so i know it isn't just my PC :o) You can replicate this behaviour really easily by (c# VS2003) 1) creating a new c# windows application 2) set Form1.TransparencyKey to the same as Form1.BackColor 3) Add a treeview to the form 4) Add a node to TreeView1 whose text is too long to display (i used 'whyisthishappeningwhyisthishappeningwhyisthishappeningwhywhywhy') 5) run the application and hover your ...Show All
abcoura Giving Focus to the Tab Control
Hello, I have a tab control with 2 tabPages in it for data entry. The second tabPage is information that the user does NOT have to fill out - so I give them the option. But if they do want to fill it out, I have a button at the end of tabPage 1 for them to proceed to that 2nd tabPage. What code do I need to add in this button_click event that will automatically give focus to that 2nd tabPage so that the user doesn't have to click on the tab PS I tried this - but it didn't work... Private void button3_Click( object sender, EventArgs e) { if (tabPage2.Focus() != true ) tabPage2.Select(); } Thanks! Any help would be great! pps I just n ...Show All
Vedet.. DataGridview SplitContainer Problem / Strange Behavior
Hi All, I have a DataGridView functioning perfectly with the following code to allow only numeric entries display for columns 5, 6, and 7. The DataGridView is binded to a Dataset. When a SplitContainer is added to the form and the DataGridView is added to the SplitContainder, the code below no longer works. EditingControlShowing does not fire. (Inherited problem ). But, when I delete the SplitContainder and the DataGridview, then add a new DataGridView back on the form, the EditingControlShowing still does not fire. My workspace appears to be corrupted for EditControlShowing to fire. Any thoughts on what is happening Private Sub DataGridView1_EditingControlShowing(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewEditi ...Show All
A Bodnar Customized Datagrid
Hi, I have a different requirement in which I need to develop a grid in windows forms. This grid should get auto refreshed as soon as any value in the cell gets changed. For example like live cricket score card which gets updated itself whenever score changes or any temperature application. If I install this application on my machine I dont have to refresh it everytime. It self keeps updating and keeps giving me the current temperature.....so I have to develop similar thing in which my grid may have a column called temperature, another called price in share market...so grid should get updated as soon as data changes... Hope to receive replies on that. Ragards, Pooja. Like most properties on the DataGridView control, any ...Show All
mike1942f suggestion for a book on C# windows application
Hi, Can someone suggest a book about .net or C#-based Software design, programming and best practices for building financial real-time applications For example, such applications are typically built for financial institutions (stock trading companies, investment companies e.t.c) in which dealing with live market data and application performance(in terms of speed) is very critical. Thanks, Search for these related keywords on the internet; Service-Oriented Architecture Data Layer Business Layer Presentation Layer Disconnected Client Architecture Thin/Thick Client There are tons of white papers on these subject. I dought there will be a book on this subjec ...Show All
carlop Container UserControl
How do I make a usercontrol that functions like a container Didn't Inherits ContainerControl work If you're going to be adding any number of controls (say, above 4-5) to the container, that's not the best way to do it. One, each assignment to Parent fires off a litany of resize and re-layout events, which may cause undesirable behavior; two, it's not as obvious as "Controls.Add(child)". Using Controls.Add or Controls.AddRange allows all the layout to happen at once. But it's up to you. Yes, it worked, but when I added controls to it they didn't display. That is, when I added controls to it in code view in the DLL, they didn't display in design view in the test application. Nevermind, I figured it ...Show All
Propellorhead How to disable deault sorting in datagridview without extending the datagrid?
Hi, I want to disable default sorting in datagrid , is there any possible way to accomplish this task Thanks. Sorry for bothering .. I got the solution . here it is DataGridView1.Columns(0).SortMode = DataGridViewColumnSortMode.NotSortable Thanks for reply ... Yeah the way you wrote is ok to go for but I just checked that I have DataGrid instead of DataGridView and rows are populated dynamically .. and the way to stop default sorting is something like DataGrid1.AllowSorting=false. Once again sorry for inconvenience... Hi,Muna Try this: for ( int i = 0; i < this .dataGridView1.Columns.Count; i++) { this .dataGridView1.Columns .SortMode = DataGridViewColumnSortMode .NotSortable ...Show All
Nyasha Validating the treeview label change treeMnu_AfterLabelEdit
I am having trouble getting this event to take place after the label of the treeview has been edited please Help I have no error showing when I build private void treeMnu_AfterLabelEdit( object sender, System.Windows.Forms.NodeLabelEditEventArgs e) { if (e.Label.Trim() == "") { MessageBox.Show("The tree node label cannot be empty", "Label Edit Error", MessageBoxButtons.OK, MessageBoxIcon.Error); e.CancelEdit = true ; return ; } if (e.Label.IndexOfAny( new char []{'\\', '/', ':', '*', ' ', '"', '<', '>', '|'})!=-1) { MessageBox.Show("Invalid tree node label.\n" + "The tree node label must not contain " + "fol ...Show All
Mike Riley DataGridView - Replace column with my DateTimePickerColumn
Hi I have a database with one table containing: - id (int) - name (string) - date (DateTime) Now I fill a DataSet with the data in the database using OleDbDataAdapter . Then I connect the DataTable (inside the DataSet) to my DataGridView: - datagrid.DataSource = dataset.Tables[0]; I then created a DateTimePickerColumn (inherits from DataGridViewColumn ). (The control works fine) Now to my question. How do I replace the "date" column to be a DateTimePickerColumn Do I have to: 1. Hide the "date" column. 2. Add a new column (DateTimePickerColumn) 3. Implement code for copying data between 1. and 2. I want DataSet.Update() to work with DateTimePickerColumn . Anyone :) / K ...Show All
CalinMac Using BITS to Update your application automatically issues?
I runed into a problem when i using BITS to updating my application. I used the same technics as the sample code : http://msdn.microsoft.com/msdnmag/issues/03/02/BITS/ it works fine in my local machine when i specify the RemoteUrl as my local IIS virtual Directory. once i change the URL to a machine in the Intranet .then comes out a TransientError . BTW , my operation System is WinXP professional with service pack2. i was wondering whether i was required to made some setting of IIS was i missing something any help is great appreciated! Thanks. Alan It might help if you get hold of the BitsAdmin utility for your OS (some are specific to an OS) and run it bitsadmin //list /alluse ...Show All
ly4587 DataGridView cell ReadOnly property not working
Hi, I have added DataGridView runtime, where i am attaching dataset to this dgv of 3 columns (Check,Id,Text) with suppose three rows in it. and i want to make ReadOnly to 3 cells of Text Column only. user can add new row in it, but will not be able to edit rows. Thanks in advance. tats Hi, Use the CellBeginEdit event. Hi Wang Chi, I dont want to set whole column as ReadOnly. But only those cells of that column, which appears in dataset attached to it. User should be able to add new data into DataGridView at the end only. i.e. which ever data is bound should be read only, and newly entered data should not be read only tats After binding datasource, you can make cells readonly in this ...Show All
moondaddy Syntax highligth in rich textbox
Hello, i want to make a syntax highlight using RTF, but the method that i'm using, requires to select the word that i want to highlight, and that fact produces a flickering. I am searching for a method that doesn't produced that flickering. Anyone have any idea My profile: C++ managed programmer. Well I got this mess if it helps Public Class RichTextBox Inherits Windows.Forms.RichTextBox <Browsable(False)> Public WriteOnly Property SelectionBackColor() As Color Set(ByVal Value As Color)   ...Show All
HowardRichards how can i get a username or password from mydatabase??
Does anybody know how can i get data from my database. I construct login and register forms. In the registration there is no problem. Form add all information of user to the database. But In the login form, I have to make search entered username in my database or mydataset. I tried so much but i have nothing. pls help ..... In my form, Login button's code is as follows : if ( this .textBox1.Text == "" && this .textBox2.Text == "" ) MessageBox .Show( "Enter username and password" , "Error Message" , MessageBoxButtons .OK, MessageBoxIcon .Warning); else { if ( this ...Show All
Tom Lake - MSFT VS 2005: How to configure launch condition to install .Net framework from setup file attached locally with installer package
Hi, I had been trying to create a setup and deployment project in VS 2005 for a windows form project. Dependencies on .Net Framework 2005 was detected and added to Launch condition automatically. I had tried to change the install URL so that it will launch the local setup file I attached but not from internet. But when I run the installer at a test machine, it still trying to install .Net framework from internet! How should I modified the launch condition so that the local copy is used Hi, >I had tried to change the install URL so that it will launch the local >setup file I attached but not from internet. But when I run the >installer at a test machine, it still try ...Show All
mman06 UICues and how to use them.
This is a question that is related to a question I asked earlier about how to make sure a listbox shows me what item currenly has focus without changing the highlight. I have narrowed this down to making sure that the ShowFocusCues and ShowKeyboardCues is turned on, but I have overriden those properties in a control I am using and it has no affect. Is there a way for me to force the UICues on a form into a certain mode That's very odd. The TAB key normally moves the focus from one control to another. In your case, it should move the focus *away* from the listbox. Are you sure everything is hunkydory with your thread Is it using Control.Invoke to update the listbox Actually, no, I want to see the focuscues when it does have ...Show All
