Answer Questions
daydreamsy2k order of radio buttons
I have 3 radio buttons, when I press the arrow keys the order is 1, 3 then 2 can I changed that If you are on the designer, you can use View->Tab Order. It's a great tool for change taborder Hello All. GrahamY: Change the TabIndex properties of the radiobuttons so that they are sequential, in the order that you want them to be. You can do this either in the Properties window for each radiobutton, or by selecting View -> Tab Order in the Designer menu, and clicking on each of the radiobuttons in the order that you want them to be selected. Be advised that this approach resets the tab order of all of the controls on the form, so if you have a lot of oth ...Show All
Lee Brimelow 2 Forms... how to..
Ok do i am creating a program that will allow users to play media files like Windows Media Player but in a more simplier way. I got the Dialog box to work fine. But i created a new Form called URL.\ What i am trying to do it make it so that when they click "Open URL" it wil show up a modal, making "Form1" disabled until the "URL" box is closed. Also i would like the Text from "URL" to be placed into "Form1" with wmp->URL. i have tryed using "M12::Form1::" but then it doesn't give me any options. Can someone help me FIXED. it works now. seems like i need to add a "#include "URL.h"" on top. Thanks for the code and your help. Like I said, URL is ...Show All
Parker Lewis UserControl as Container
Hi all, Just a quick question and I am sure there is a simple solution but I just haven't found it yet. I know how to make my UserControl a container by using ParentControlDesigner etc. This works fine and I can drag and drop Windows Forms Controls at design time. However, if I add a Panel to my UserControl Class, compile it and then try to drag and drop another control on the Panel, the Panel does not act as a container. So my question is: If I have a UserControl which consist of a single Panel, which is a pretty lame control I know, how can you get the Panel to act as a container at design time Any help in this would be greatly appreciated. Kind Regards AM PS. The UserControl that I have written does not consist of a ...Show All
ramana reddy Set focus to textbox after form activated.
I have a mult. line comment textbox, I want to set the edit position to the end of the textbox after the form is activated. Currently, I only set the txtComment.Focus(), what it does is highlight all th text in the comment textbox. Which doesn't look good, it should have the edit position at the end of the textbox so that user can edit the comment right the way. Now, they need to click the right/bottom arrow key before they can edit. Thanks it works! simple set the SelectionStart of the textbox to the last character position: VB.NET: Me.theTextBox.SelectionStart = Me.theTextBox.Text.Length C#: this.theTextBox.SelectionStart = this.theTextBox.Text.Length; ...Show All
RyanB88 Error 1324: The folder path 'n/a' contains an invalid character?!
Hi all, I'm trying to build a setup application with Visual Studio 2005. Everything seems to work well, except when i run it, i got the error 1324: Error 1324: The folder path 'n/a' contains an invalid character. I really don't know what is wrong with it ! Any ideas ! Thanks ! Jonathan Well, No where i've added a path. I've simply add Project Output to the Setup Project. So i really dont know from where those paths are coming from ! Any others idea ! Thanks, Jonathan and I don't have any wierd characters! As well, I have Windows XP Home version, but this type of error seems to happen when you have Windows 2000 or similar!! ...Show All
Godmoney Drawing along with the Mouse
Hi, I have a code to draw a line along with the mouse as below: private Color myColor = Color .Red; [ DllImport ( "user32.dll" , EntryPoint = "GetDC" )] public static extern IntPtr GetDC( IntPtr ptr); private void myForm_MouseMove( object sender, MouseEventArgs e) { if (e.Button == MouseButtons .Left) { IntPtr hdc = GetDC( IntPtr .Zero); Graphics g = Graphics .FromHdc(hdc); Pen myPen = new Pen (myColor, 1); Point p1 = new Point ( Cursor .Position.X, Cursor .Position.Y); Point p2 = new Point ( Cursor .Position.X + 1, Cursor .Position.Y + 1); g.DrawLine(myPen, p1, p2); myPen.Dispose(); g.Dispose(); } } Now the problem is, t ...Show All
Michael J Brown Resizing a toolstrip
Hi, i want to know if it's possible to enlarge a toolstrip. Mine is locked with the height of 25, but i want it larger than that. I tried to change manualy the size property but without sucess. Thanks for any help Set "AutoSize" to false and then assign whatever height you'd like. ...Show All
Aleksandr Tokarev Looking for good setup system...
I authored an application and need to create a setup program for it so it can install on peoples computers. I tried to use the publish feature that came with Visual Studio 2005. It either seems stripped down or something perhaps I'm doing wrong. I can't find out were to tell it what custom user files I want installed and where to put them. Is the built in publish feature that comes with Visual Studio 2005 ok or is there a better solution Thanks for help, Devin For Windows Applicaiton ClickOnce publishing, the only way to add files is to add them to your Project. Usually you'd set the BuildAction property of those files to "Content" or "Data File". Then they'll be in th ...Show All
nobugz Limit rows in datagridview
VS 2005 I want to limit the number of lines added in a gridview, can anyone show me the code and which event to place it. Thanks In advance This is where I was checking: private void dataGridView1_RowsAdded( object sender, DataGridViewRowsAddedEventArgs e) { //Do not allow more than 4 lines if (dataGridView1.RowCount > 4) { //what } } hi ahmedilyas, i want to limit the number of rows in my data-bound datagrid, there are many rows of data in my MS ACCESS db, i think the efficient way would be doing it in query, am i right however, i have no idea how to do this. please help my query is SELECT TOP 10 pa ...Show All
amitshah003 Modify ConnectionString
Hi, I searched, but couldn't find an answer. Is it possible to modify a connection string at runtime This code throws an exception, not sure how to fix. string connectionString = this .txtConnectionString.Text; ConnectionStringSettingsCollection col = ConfigurationManager .ConnectionStrings; ConnectionStringSettings section = col[ "MyConnection" ]; section.ConnectionString = connectionString; The last line throws this: System.Configuration.ConfigurationErrorsException was unhandled Message="The configuration is read only." Is this something I can configure I have a requirement to allow certain users the ability to change the connections string, rather than forcing them to modify the app. ...Show All
Shepherd_85 Problemas con Crystal Reports
Consulte el final de este mensaje para obtener mas detalles sobre como llamar a la depuracion Just-In-Time (JIT) en lugar de a este cuadro de dialogo. ************** Texto de la excepcion ************** System.TypeInitializationException: Se inicio una excepcion en el inicializador de tipo de "CrystalDecisions.CrystalReports.Engine.ReportDocument". ---> System.Runtime.InteropServices.COMException (0x80040154): El objeto COM con CLSID {CF76A644-314B-404D-8D45-F08B51FF990B} no es valido o no esta registrado. at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() --- Fin del seguimiento de la pila de la excepcion interna --- at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() at CrystalDecisions.Cry ...Show All
RDH123 changing text in the forms titlebar
I have selection box on a form and when the selection changes I want to change the text in the title bar. New Item for: (name selected from combobox) e.g. from 'New Item for Fred' to 'New Item for Sue' Using C# I had expected to be able to do frmNewItem.Text= but I cannot find the .Text property. Any Ideas Thank you So simple! I was over complicating it, I had tried 'this' but I was looking for someway to then select the form by name. Doh! Hi Graham If you're inside the code of the form it's this.Text -- (in VB Me.Text) -- which refers to the current instance of the form as opposed to the class. HTH ...Show All
MigiTheGuru Setup for .Net windows application
Hello I have developed one library using C#. The libray is using the interop service to make use of existing vb dll (not vb.net) in the organization. The Library is being used in another .Net windows application. Now while creating a setup I have created 2 application folder one for library and one for windows application. Primary out is added to each one of them. When I install this setup Library folder contains all the required dependent dll but windows application folder does not contain any dependent dll (library and interop dlls). Window application folder contains only exe file which when I click gives the error as it does not found the dependent dlls. While creating the setup If I add the dependent dll to wndows applicat ...Show All
Greg Wilkerson GridView and Selecting Value
Hi, I am displaying values through two gridviews in my windows forms. Both gridviews display values properly. I see one gridview's first row is selected by defaut but the other one is not. Also how do get the value of that first row after it loaded I am able to get t he value after a mouseup event or cellclicked event, would I be able to get the value of the first row after gridview is loaded I do hope I didnt' confuse you. One more question how do i customize the gridview When gridview is loaded I see an extra column on the left and a row at the bottom with the * Can i get rid of them or can customize the datagrid Thank you. the extra column u talking about is it the greyed one on which the * appears on the last row this colu ...Show All
Rups11 Two active forms
Hi! I'm developing an application which needs 2 active forms at the same time - something like Photoshop with af form at top of the screen (the mainform) with a menu and a toolbar which can open different childforms. What I wan't is to have the mainform and one of the childforms to be active at the same time so that I can activate the menues and toolbar of the mainform with just a single mouseclick and shortcut keys from the keyboard while a childform is active. I don't wan't to use a MDI form and childforms. When I open a childform I add it as a OwnedForm to the mainform. Is there a way to have 2 forms active at the same time Thanks! Brian Isn't there anyone who can help me with this ...Show All
