Answer Questions
Advectus ToolStripButton style -ToolStrip Issues
Hi, I need to have a Button on a ToolStrip that would look like a normal windows button(elevated/projecting) as opposed to the flat default appearence.How do i do that Also if i need to set the border color of a ToolStripTextBox do i have to create a class deriving from ToolStripRenderer and if so how would i set this Could someone help me how i can achieve the above 2 Thanks in advance.. If the provided ToolStrip controls do not suit your needs then your needs then your best option is to build your own based on ToolStripControlHost so as to host a button inside of a compatible type that can be added to the ToolStrip. You can find an excellent tutorial on how to do this here . ...Show All
billb59 How To: Implement Single click navigation to a DataGridView Combo Box Cell
I have a data grid view bound to a data view, with a combo box bound to another data view. The user's are complaining that they have to click twice on the combo box drop down arrow to get the drop down list to appear -- what's happening as near as I can tell is that the first click selects the row, and the second click is delivered to the combo box. Is it possible to modify this behavior so that a single click both selects the row and drops down the combo box I suspect this is not as simple as overriding WndProc in the DataGridView and passing the WM_CLICK message to the combo box :-) Thanks in Advance Alan You can also use the CellMouseClick event. That way the combo box doesn't drop down when tabbing into i ...Show All
TJ2007 Progressbar in Managed C++
Hello! I found this link http://www.codeproject.com/miscctrl/text_progressctrl.asp about a Progressbar with text in it. I am programming in Managed C++ and I was wondering if there is a similar progressbar out there somewhere that I can use in my managed applications I am trying to code my own one but I cant figure out how to get the text to behave like it do in example in the link. Is there any tutorials about this in managed C++ Someone JeroGrav wrote: well one of the advantages of .NET is that you can take something written in VB.NET and plug it into your C++/CLI application or your C# app. The only requirement is that it must be in a separate project. So you could have a C++ exe that uses a VB D ...Show All
TiborK Catching Arrow Keys
Hi, I have a control in a form. On the control I have a "KeyDown" event handler that works perfectly for all the keys, except for the UP/DOWN/LEFT/RIGHT keys. Why don't they get caught along with the other keys Hi, If you have simply a user control on the form then both of these will work... private void MyControl_KeyDown( object sender, KeyEventArgs e) { if (e.KeyCode == Keys .Left) { MessageBo ...Show All
nitesh_garg can't retrievethe connectionstring from the app.config file
Hey can please somebody help me!!! i added the following code to the app.config file <connectionstrings> <add name="connectionstring" connectionstring ="valid connection string" /> <connectionstring /> in visual studio 2005 i use the following code i'm using c# using (SqlConnection con = new SqlConnection( configurationManager.connectionstrings(connectionstring)); but i'm getting a error which actually i don't really understand If you do not post the error that you are getting, then no one else can understand what the error is either. Post the error message and you can get better help as to your problem. Hi, VS allows declare a p ...Show All
stellag When to do Validation of User Input
What is the recommendation for validating user input in a winforms app. Should input be validated in the controls validating event or should it be validated when a call is made that uses the control's value. For instance say I have a text box that accepts a string whosew value is supposed to be an output path. Should this input be validated (for example) Private Sub txtOutputPath_Validating( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles txtOutputPath.Validating '--validate path End Sub Or in a the method that uses this property For example Private sub DoWork() ..... end sub if its there, take advantage. ...Show All
bonnielee How to improve performance of datagridview
Hi All, In my project i have made one monitor for showing current price and all market,its related to share bazar, for that i used datagridview and i m binding data with datagridview every second. but i faced problem with flikering in datagridview. so plz help me who to remove flikering. I used Datasource property for binding data depends how many records you have to display - ive never had any flickering going on but could be related to several other things, such as different events implemented by yourself whilst databinding to do some other things. how many records are you typically trying to bind Hi ahmedilyas at a time i am tring to bind 200 to 300 records I have c ...Show All
Narayan19 auto paste address in to letter. Please help.
Hi, I am using VB.Net 2005 and MS Access 2003. My database have a table, name human; human( humanId, name, age, address, city, state, country). This is a basic CRM program. One of the requirement of my program is when the end user write a letter, he just need to write content of the letter for once, then the program will make the letter in the number of copies, same as the number of human record, mean each human will has one letter, provided that each letter will has the address and name of that human. For example if the human table has three record, when the end-user want to send letter, she write the content of the letter, then the program will ‘generate’ three letter with each letter has the address and name dif ...Show All
Ort7667 SendKeys.Send("+{F9}") problem
Hello All I have a small problem with Sendkeys My first function sends the send keys (Shift + F9) to keydown event. My problem is how to capture this Shift + F9 conditionly Private Sub cbZoom_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cbZoom.Click Try Me .dgvDocuments.Focus() System.Windows.Forms.SendKeys.Send( "+{F9}" ) ' Shift + F9 Catch Err As Exception System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default End Try End Sub Private Sub dgvDocuments_KeyDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles dgvDocuments.KeyDown If (e.KeyCode ...Show All
chipjollyroger Tabcontrol and pages
hi i am using TabControl with 03 pages and i would like to just show one page of the 03 page when i click in button.can that be realised because i tryes without success and how if that possible sorry,but can you explain more,please Chris Dunaway wrote: Hide and Show do not work for Tab Pages. Is this a known issue I believe you, but I'm surprised not to see any mention of this in the documentation. Does TabPage simply implement Control.Hide() or Control.Show() by doing nothing OmegaMan wrote: Someone tell me if there is a better way , but hold on to a reference to all the tab pages. When the descision comes down, remove the other two pages ...Show All
Gosovic Help in implementation of a magnifying glass
I have an image viewer application which I want to apply a magnifying glass effect on certain area of the image. The problem I've run into is that when I slowly dragged the magnifying glass across (when left mouse down) the magnifying glass window didn't move smoothly. I believe it has something to do with drawing the graphics of the original image on the background. May someone please help me solve this issue Thanks. I got your project and was able to reproduce the problem. You are not using the 32bppPArgb pixel format I recommended. First off, you get flicker (the white shimmer around the rectangle) because the panel isn't double-buffered. Check out this thread for a custom panel that avoids this. Se ...Show All
ajedi2k Datagrid Refresh
Hi, I have a windows forms, that has the following problem, I show a query from a database in a datagrid, this datagrid has an event when the user click on it I get the row data to fill the form, in the from I have a search procedure (txtbox with textchanged event) that will query again the results with the data provided by the user, the problem is if a row is selected in the datagrid, when I send the new datasource, the old registry keeps there over the new one. How can I remove that I've already tried to rebuild the object, to refresh the screen but no success. Thanks Here is the code that I'm using When the user clic on a cell private void grdAddress_CurrentCellChanged( object sender, System.EventArgs e) ...Show All
sai111 How can I handle in the child class an event raised in the parent class?
Hi all I am creating a class that inherits from System.Windos.Forms.Form for implementing some custom things that I want to happen for each form used later in my app. I am overriding the OnClose event of the form for the following reason: I want so recursively search each control on the form and if the control is a Component One TrueDBGrid then I call the UpdateData() function on it. When calling UpdateData() on a TrueDBGrid an event called AfterUpdate() of the TrueDBGrid is raised. The problem that I encounter is that the event is not raised if I handle the event in the child class, the class that inherits from my customized form. So, the UpdateData() is called in my custom class ...Show All
Vikas H Read datagridview value of a button colum
Hi, i have a problem using DataGridView. My application have a DataGrigView connect to a data source, i have a DataGridViewButtonColumn and i have connected the DataPropertyName to a specific column also i have put to true the UseColumnTextForButtonValue to obtain the same name for all buttons "Erase". Now i would to take the real value of my databaseColumn when i push the button but this no happen; i receve name of button but not the real value of this. I hope to be clear also if my language is not English. ...Show All
Nirth Detecting the Letter Clicked
Hello, I'm creating an interactive program, and I render labels one after another down the control. When the user clicks on a word in the label, I want to write an algorithm to detect which word was clicked. Has anybody done something like this I have an idea how to do it, but am not quite sure. Thanks. Hey, Thanks, that was what I was thinking; though I was going to go one letter at a time, using sizing to determine whether we selected the targeted letter; label is on one line, though sometimes is multi-lined, so I figured when I size the entire line, I will have to perform a math calculation to count the number of rows. I use the same font as the form, so that will be good... Thanks. ...Show All
