Answer Questions
Lawrence 007 multiselection in a datagrid
Hi! I would like to know how can i select multiple rows in a datagrid I can select an entire row but i can't do a multiple select. I have another question, how can i add a checkbox on the header of my datagrid. I want my application do allow one or more rows selection. When the selections done, the user have to check the checkbox to allow another event to happen. Thanks a lot!!! see https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1148232&SiteID=1 Thanks... I did find some code lines for the the multiselection. I am not using a checkbox no more. i do use a button instead but i dont know how to connect the selection and the button together.. Thanks... ...Show All
Ido Ran OracleClient with Clickonce Deployment
I am trying to deploy an application using Clickonce. I previously was using OleDbConnection to connect to an oracle database. However i would like to use the System.Data.OracleClient namespace instead. Upon publishing the application the users get an error when they try to connect to the database. Do i have to install the oracle connectivity files manually on the user's computer Is there a way to distribute the needed files as prerequisites Thanks for your help. Hi Iam also having the same probelm but this is happends when they(clients) are started using oracle 10 from 9... any suggestion ..... Regards .NET Application I'm no ...Show All
MLyons10 Slow performace when setting this.Text
Hello, I was doing performance tests and noticed something wierd. Setting the this.Text property of my form takes 0,4sec upto 1sec! I have no idea where to look or what the reason of this might be. any ideas Regards, Aussie It would help if you could provide sample, compilable code that demonstrates what you're trying to do. -Tom Meschter Software Dev, Visual C# What are you doing after setting the Text property It won't update on the screen until you stop running code. A work-around is to call the Refresh() method right after changing the property... Hello, Its a simple This.Text = "xxxx"; nothing special... that's why I have no clue :-) It ma ...Show All
ti_m Newbie with uninstall and update questions
Hello, I am a complete newbie when it comes to VB and VB Express Edition. My issue with my app is twofold: 1.) when uninstalling the app, only the start menu shortcuts are removed. The files and folders are not. Is there way to force these files to be removed 2.) when auto-updating the app, I either need to have it delete the old files, or find a way to change the "home directory" setting in IIS automatically. Are either of these possible with the express version If so, how do I go about implementing the changes i just realized I am going about this whole thing wrong... i need to rewrite the entire app basiclly.. ignore this entire thread ...Show All
BasharA Launch Conditions - Registry Search problem
I have setup a setup project to install my application and wanted to add a launch condition to test for the existence of a dependent application, I created a file and registry launch condition and the file search works correctly but I can not get registry search to work at all, I would prefer to use registry search as it is more certain than the location of a file which might have another install location other than [ProgramFilesFolder]. The dependent application is Apple iTunes and has a registry key at HKLM\SOFTWARE\Apple Computer, Inc.\iTunes. I have set the Root to vsdrrHKLM. I have tried several variations on the RegKey value and none work: SOFTWARE\Apple Computer, Inc.\iTunes "SOFTWARE\Apple Computer, Inc.\iTunes" SOFTWARE\Apple Comp ...Show All
tone-loc Help please with richTextControl
hi im using c#, I have 2 richTextBoxes box1 & box2 if I go: box1.Rtf.ToString(); i get a string like: {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}} {\colortbl ;\red255\green0\blue0;} \viewkind4\uc1\pard\cf1\f0\fs36 Hello, this is a test\cf0\fs17\par } how do i append this text to box2 kepping the textes font and size ect Thanks. I tried box2.AppendText(theString) but it appends the code of the text, not the text. Sorry, i should of said, the string is going to be sent over a socket, so on receiving side i'm going to have to add the text. It's ok i got it. box1.copy b ...Show All
bhavu ClickOnce updating problem
Hi, I have a ClickOnce application that creates a new instance in a new directory everytime it updates instead of updating the same instance, therefore the data saved is lost everytime it downloads a new version. Any Ideas why im getting behaviour Thanks Yes, I have a sdf file in the data folder inside the application folder, but I'm still getting the same problem. Any other ideas Your application has an application folder and a data folder. You should put your database files and all your data in the Data folder. When updating, this Data folder should be copied. However, in my case, although I can't yet explain why, sometimes it copies it, sometimes it doesn't. ...Show All
RMORAR Regex and datagrids..
I am trying to get a count of all instances of "IN" from a populated datagrid using: Private Sub Counts() Dim INCount As Integer = 0 Dim INFinder As Regex = New Regex( "IN" ) For Each row As DataGridViewRow In Me .dgResults.Rows For Each cell As DataGridViewCell In row.Cells INCount += INFinder.Matches(cell.ToString).Count Next Next tslIN.Text = INCount tslOUT.Text = Math.Abs(INCount - dgResults.RowCount) End Sub But instead " cell.ToString" is yielding "DataGridViewTextBoxCell { ColumnIndex=0, RowIndex=0 }" Any ideas Also what would be the best way to search on a specific column TIA, Stue I did that before but being new and all ...Show All
Steve Bostedor where i can find the data form wizard in visual basic 2005
hi i am working with visual studio.net 2005 , and my favorite language is visual basic , and i don't found data form wizard . please help me . thanks alot best regards . There is not a data form wizard. In the data menu select show data sources. It will open the data sources window. Click on add new data source. Once you are done adding a datasource you can drag the datasource on the form and have it add a datagridview or if you select details and add controls to the form. ...Show All
mrmckeb Visual Studio 2005 > Setup Project > Upgrade Questions
I have a vb.net solution with a windows application project and the application's setup project. I've built my solution and have msi file. Install my first version and I have my application working. (After while) There is a new version of my application, I've downloaded it and run the new Setup: How can I stop current application, uninstall it and continue with new setup intallation Thanks for any suggestions I'd already set the RemovePreviousVersions Property = True and InstallAllUsers=False. When I install new version the wizzard says that I already have a previous version of the application and I have to remove it first. I also have another question. Is it possible to run a script before t ...Show All
William Vaughn Designer crashes
I have converted my 2003 C# project into 2005 C# project. I can't open any form now and giving me following error. as most cases rebuiding or closing and opening is not working. Object reference not set to an instance of an object. Hide at System.Resources.Tools.StronglyTypedResourceBuilder.DefineResourceFetchingProperty(String propertyName, String resourceName, ResourceData data, CodeTypeDeclaration srClass, Boolean internalClass, Boolean useStatic) at System.Resources.Tools.StronglyTypedResourceBuilder.InternalCreate(Dictionary`2 resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, Boolean internalClass, String[]& unm ...Show All
jerrykur How to pass the combobox value as a parameter to a database?
I have 3 comboboxes and one textbox. How do I pass the chosen values from the three comboboxes and the information on the textbox as parameters to a stored procedure Thanks for the help. No problem ... you're welcome. I would appreciate very much if you can give me some sample code or give me some URLs for more information. On another issue, the following URL is something that I want to implement. However, I can't find the 'ComboFired' under Misc. http://www.vbdotnetheaven.com/UploadFile/ykocdag/Parent_Child_ComboBoxes06222006235457PM/Parent_Child_ComboBoxes.aspx ArticleID=58bbef18-1d67-408c-b4e1-52e79948a3e4 Do you know of any code that can do the above URL Thanks very much. ...Show All
SQLScott Bevelled tabs on TabControl
I see from TabControl FAQs that it is possible to color the tabs... http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=478&CategoryID=3&tabindex=3 Can anyone please tell me how to bevel them I'm sure it must be possible. It is available as a 3rd party TabControlEx (colored & bevelled tabs) from http: / / www. dotnetrix. co. uk/ tabcontrols. html but I've had problems with this in VS2005 Apppreciate any help. Does TabcontrolEx support Drag & Drop I believe some time ago I found it did not respond to those events.... That shouldn't happen with the newer dll (already emailed it to you and posted to the site).<edit: first error, never se ...Show All
Jeremiah Morrill Possible to apply column style to ListView control?
Is it possible to apply column style to the ListView control If you have something like the DefaultCellStyle as in the DataGridView control. The columns in the ListView looks very old and square-shaped with the Office 2003 style on the other controls. ListView is a very old control, dating back to Windows 95. That's why they invented DataGridView... Do you have any more meaningful comments to add to this tread I asked if it was possible to do this with the ListView, as mentioned in the first post I know it's possible to do this in the DataGridView. So please don't comment in the forum if you only have rubbish to add. Yes, no su ...Show All
Vic1234 Control bind to object does not refresh it's display
I have a control - textBox1 that is binded to objects propery - "Currency" and another control - textBox2 (read only) that is also binded to same propery. Now, i have a situation where textbox1 control does NOT refresh it's display according to value set to underlying propery while at the same time textBox2 does refresh accordingly. Both textboxes ar located on the same form and there are no diferences in their bindings. private int _currency = (int)cur.LVL; public int Currency { get { return _currency; } set { if(!_currency.Equals (value)) { if(value == 2) { // Consider according to some business logic not shown here, value should be changed from 2 to 3 value = 3; } _curr ...Show All
