Answer Questions
Tao Lin DataGridView: New row not added when edited programmatically
I have a DataGridView that displays a DataTable to the user. If the user presses the F3 key while in a cell, I show a popup window that allows the user to enter detailed information for the cell. When the ok button on the popup is pressed, the total of the details is put into the cell. This works fine, except when this is done in a cell on the new row. As soon as the user types a character in one of these cells on the new row, the DataGridView automatically adds the row to the DataTable and another empty new row is displayed in the DataGridView. But, if the user presses F3 and I programmatically set the cell's value in the DataGridView_KeyDown event, the row is not commited to the DataTable and another empty new row is not displayed in ...Show All
Mu0n Dynamically created Registry Keys in .NET Installer
Hi, I have written a Windows Forms Application in Visual Studio 2005 (VC++). I have created a Setup Project in my solution and am configuring it. My application uses registry values, and so I am entering the Registry Keys and Values needed by my app in the deployment Registry Editor within Visual Studio 2005. I use several Values whose data is a filename or path, but that path depends on the selected install folder the user chooses while installing the program (using this Setup program I am creating.) My question is, is it possible to use some sort of variable while specifiying the value for a Registry Value in the Registry Editor And if it is, how do I get the Root Target Folder for the installed application Thanks - Samy PS. It occurs to ...Show All
Joaquín Raya requirement for deployment of windows application
hi all how life is going in these days visual studio 2003 I using vb.net and access i use the com component in my project of vb (like msflexgrid,mshflexgrid) i am using CrystalReport also in my project of vb.net i deploy project windows application using setup wizard all files stored in .msi files all refrence and otherfiles please tell any other .ocx i required for CrystalReport that it is work ok on user machine what i am required in user machine 1)framework 2)mdac 3)internet exploer 6.0 for com what is required please help when i load it on user machine then they shows jit compilers error thanks in advance ...Show All
Brett Metcalfe datetimepicker with customized format
i have a datetimepicker with customized format dd/MM/yyyy HH:mm . Is it possible to disable the dropdown calendar so that user can only type in the value I think it is impossible, if you want to type only, try to use maskedit textbox control, cheers, tvietnhat ...Show All
mario.muja Making a label button...
Hello guys and girls! ;) I have one label with a x mark that hides the form where it is and other form is showed. This label as two more events, MouseEnter and MouseLeave and they change the color of the x mark. But the problem is...when i enter the form with the label again these events don't respond anymore, and the color persists. What is the problem Thks all.. This is off topic for the Visual Basic General forum, moving to the Windows Forms General forum. Hi, Is there any other part of the code that captures the mouse and forgets to release it Maybe the MouseEnter and MouseLeave events only apply when the form is the active one. See if clicking on the form's title ...Show All
Jamie Gordon C# context menu
Hi, all, Can I use context menu without mainMenu For example, i append this context menu on one button. When I click the button, the context menu will show on the button for me to choose one option. When i choose the option, the menu will disappear and the option i choose will show on the button text. If i can't do this, any suggestion about this. Thanks in advance. : ) Hi all, Thanks for all the pointers that is given here. It is very helpful to us. By the way, I had a question here. How can I emulate the menu selection by using the arrow keys Can I do some highlighting of menu upon the original 'mouse over' effect using keys Diagram can be seen here . (I want to do the selection without the use of arr ...Show All
stallion_alpa cust_id column to hide in gridview
I am working on a web project to display data in a gridview and I would like to hide the cust_id column in the grid, which is index [3]. I have an Edit (index[0], and two Template columns (index [2] and [3]). The first field being displayed is the cust_id (index[3]). Here is the code I have and the error message I receive is " Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" protected void Page_Load( object sender, System. EventArgs e) { //calls the dgResults_DataBound method to hide the cust_id column dgResults.DataBound += new EventHandler ( this . dgResults_DataBound ) ; } protected void dgResults_DataBound( object sender, EventA ...Show All
Mateusz Rajca Calling open another form
Yet another question for you guys: I have created 2 forms in my application. I want a button on Form1 to "call open" Form2 without opening another window. AKA: Sort of like a "Next Page" option. What code would I put in the button event handler to perform that task It works when I tested it. When I open Form 2, it hides Form 1 as well. I was not really looking for a code to actually bring a new form up INSIDE of another form... Although that would be neat if I could find out how to do that... Give me the details, what code do i put where lol... (im completly new to this, forgive my ignorance). Thanks a billion trillion! Merry Christmas! You open the other like this: public ...Show All
renotiko01 datagriview cell
hi, is there a way to get rid of dotted rect of the selected cell in a datagridview ( small number of rows, unbound )... i can't find a solution ( in vb6 was a propertypage option) ... sugestion thanks (Moderator: Post moved to this forum for better responses.) Hi, Please go thru the below link, this should be of some help. http://msdn2.microsoft.com/en-us/library/ms951311.aspx thank you, bhanu. hi, bhanu with your direction i was able to find what i wanted and more ... in the help provided by vb 2005 express, a very usefull turn. thanks, you helped. adrian for those who are interested ( no fans for focus rectangle in selected cells ) the very simple solution ( i hope ) : ...Show All
samssb How can I Update,Delete,Insert a database ? Using Vb 2005
Hi I am having dataset with 4 tableadapter(4 tables from the database). What is the easy way to update or add new entry to the database Advanc thanks To updata database, try following 2 ways, hope it works for you. this .Validate(); this .customersBindingSource.EndEdit(); this .customersTableAdapter.Update( this .northwindDataSet.Customers); or something like this: CurrencyManager cm =( CurrencyManager ) this .BindingContext[northwindDataSet, "Customers" ]; cm.EndCurrentEdit(); Open the form in design view. In the datasources window, you can select a table, drag and drop it on the form. see the code generated. you can also , select a table, see drop down on its right,. ch ...Show All
Ederaldo Mirandola repair install (event id 1001 and 1004) - whats causing this in my case?
I'm getting eventlog events 1001 and 1004 indicating a repair install. The 1001 event description is: Detection of product '{6C2EFFE6-1A20-4FB8-81D2-2B1A3ADFDC53}', feature 'DefaultFeature' failed during request for component '{ 22056900-C842-11D1-A0DD-00A0C9054277 }' This indicates component Global_Controls_MSCOMCTLOCX, which I install from a standard MS VS6 SP6 MSM file. The 1004 event description is: Detection of product '{6C2EFFE6-1A20-4FB8-81D2-2B1A3ADFDC53}', feature 'DefaultFeature', component '{ EDBDF246-2367-469D-AB3D-6F076F338CA8 }' failed. The resource 'E:\' does not exist and this indicates the following component (Component table of the MSI): Component="_C57571A181C24B139A26CBF7E2E09D ...Show All
Hollispj How to find computers domain
Hello, I'm trying to find the full domain name of the current computer to use in the constructor of the System.DirectoryServices.DirectoryEntry object. It seems as if you can use: System.Security.Principal.WindowsIdentity.GetCurrent.Name and parse it Or System.Environment.UserDomainName however that only gives you the 15 character short domain name. Is there any other way to get it without using an API call Thanks. Hi, Ryanhav Try this piece of code: System.Net.NetworkInformation. IPGlobalProperties prop = System.Net.NetworkInformation. IPGlobalProperties .GetIPGlobalProperties(); this .label1.Text += prop.DomainName ; Hope this helps.Regards. Ye ...Show All
Anand Raman - MSFT Aligning text in Label
How to align text in a Label control to right I set the RightToLeft = True but it doesn't work! Thnk you! Check out the Label.TextAlign Property/ Tony It works fine for me. Try setting AutoSize to False. Tony I will change the text of the label programatically. If i change the AutoSize property, will it resize correctly It does not reside in the same right position! Thnx! Kapalic Already tried, but it does not work! Thnx!! ...Show All
CPark72 Making MessageBox stay on top
My issue is a little worse than the typical "make Forms::MessageBox stay on top of another window". My program is designed to work with another application, and it does not have a user interface. When an error occurs, it needs to notify the user of the other application. However, that other application is some legacy product, written in Win16-era LabVIEW, spawns a bunch of windows, and uses modality to arrange them on top of each other. In other words, it would be near impossible to obtain a handle to whatever window happens to be topmost at a give time. Now, I know that making dialog boxes "system modal" is evil, and thus MessageBox doesn't even have that option, but what should I do My program also has a notification ...Show All
SPECIALK_BC Creative inspiration
Hi Guys, I want to build a scrollable information-rich GUI list, rather like the list of emails in MS office. That is, a list of boxes, with each box containing a couple of lines including title (maybe in bold), some information, some numbers and maybe a couple of icons. What do you think is be best way to construct this I'm guessing many of you will say datagridview or some sort of custom control. These would be fine, but any help in terms of exactly how to do this would be really appreciated. Two things to think about: 1) I'm not an expert programmer, eg. I'm not completely sure how to do complicated inheritance. 2) I only have VC++ Express - can you create custom controls with this If so, how Any help appreciated - any good ...Show All
