Answer Questions
RussP add and remove items between 2 listboxes
I have 2 listboxes and want to use them to add and remove category, lstcategory and lstcurrentcategory lstcategory will show all the categories but those in lstcurrentcategory how can I filter them out of the lstcategory Thanks ...Show All
daraneko Error - System.IO.FileNotFoundException When text with Spaces entered in Custom User Interface
Hi I am having Windows Service and a setup project for this service. In set up project I am taking inputs from user using UserInterface (TextBoxes (C) ) and Custom Action. However when User entered any thing with spaces in it my installer fails giving following error System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\WINDOWS\system32\With' or one of its dependencies. The system cannot find the file specified.., (NULL), (NULL), (NULL). I am having followin code in my Installer class public override void Install(System.Collections. IDictionary stateSaver) { System.Diagnostics. EventLog .WriteEntry( "My Setup" , "Install" ); StringDictionary myStringDictionary = ...Show All
Jehan Badshah How to change Text property of label control from a thread
Hi Can anybody help me to change the text property of label control from a thread.(when a thread is running I need to change the Text property of Label) Thanks vizai Hi Karthik, this property has been available in all versions of the framework, see: http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.invokerequired(VS.80).aspx It allows you to check if you are on the correct thread before updating a control. Mark. Hi, that code will not work since you are trying to access the property of a control from a thread that did not create the control, cross thread actions like that are not allowed. In the 1.1 version of the framework this would have possibly worked sometimes but coul ...Show All
Olivier Cueilliez "Parameter incorrect" error adding Setup project to solution
If I try to add a Setup Project to my solution, I get an error stating the parameter is incorrect. This also happens if I try to create a new solution based on the Setup Project. Any help Looking at your comments again, I have some questions. 1. It appears you are NOT getting the "parameter incorrect" error while adding a setup project to the solution...am I correct 2. It sounds like you are attempting to "Publish" your application using Click Once...is this correct I as this because of the "deploy started" message that you said appears after building... After the "deploy started" message appears you are getting exactly what error message - please provide. -Robert Schoe ...Show All
hunb Deploy chm file with click-once
I'd like to include a chm file with the application that I am deploying, but no matter what subdirectory of the project I put it in I can't seem to get the file to be included in the deployment. The help file does work correctly from my application on the development machine where I have it located in the project bin directory. Right now, my deployment is just to a directory from which I burn a CD. Thanks, jerryK Hi David, It looks like *.CHM files don't have the 'BuildAction' property. If you have any other suggestions, I'd appreciate it. Thanks, jerryK You need to make sure the BuildAction of the .CHM file is set to "Conten ...Show All
ben8coast Accessing objects on a form via a class
I have a form with a text box and I need to access the textbox and some other events within the form class from a seperate class. How can I get access to that textbox The form is making a call to a method within the class class.getCommand(command); and then the getCommand method needs to be able to modify the textbox within the form. Any suggestions would be great! Thanks! Scionwest Hi Scion, As others have requested, please give some more information regarding your problem. How many forms are involved with this particular pattern Is there one other class, or potentially several How much data needs to be shared between the two entities You've described the minute details of w ...Show All
farming Deploying detected assembly in multiple folders
Hello, I'm creating a deployment project (msi) to install 2 Windows Services and a Windows Forms App to configure and control those services. As they are part of the same system, I'd like to keep then in the same installation project. On the "application folder" I created 3 additional folder, to store the primary output, content files and localized resources for each project separatedly...So each service and UI will have its own folder. My problem is with the detected dependencies. There are detected dependencies that should be in more than one folder. But it seems that each detected dependency has only one destination folder. I was thinking about using the global assembly cache to solve this issue, but I'm not really ...Show All
dschaller Textbox Jam
The textbox is bound to a binding source the data is verified on the keyup event; Private Sub tb54_KeyUp( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles tb54.KeyUp Dim tb As TextBox = sender Dim tp As Integer = tb.SelectionStart - 1 Dim i As Integer = tb.Text.Length For k As Integer = 0 To i - 1 If Not Char .IsDigit(tb.Text.Chars(k)) AndAlso Not tb.Text.Chars(k) = "." Then tb.Text = tb.Text.Remove(k, 1) tb.SelectionStart = tp Exit For End If Next End Sub if the text box is empty & a character is put in that's not a dot or digit it's removed & the app jams , the curso ...Show All
mteverest autoscroll in datagrid when selecting a not visible row
Hi, I've got I datagrid with more than 100 rows. There are only 10 visible. If you want to view the other 90 you have to scroll. It is possible to scan in my program and when the code is found in de db, the wright product is selected in the datagrid. Is it possible to autoscroll to the selected product Now the product is selected but you still have to search for the blue selected line :) Grtz Annihil8 Hi, if you're using DataGridView, try setting the DataGridview's FirstDisplayedScrollingRowIndex property. Andrej Hi, maybe this thread will be of some help... I guess the other way of doing it would be inherit from the datagrid control and access its protected GridVScrolled method ...Show All
S Paul Convert.To double and then math.round( ,2) not working well.
Dear All, I have this problem where first I have text box in it I will key in a number. Upon that I will first convert it to double using the Convert.ToDouble() function. Then I will use Math.Round(convertedToDoubleValue,2). But unfortunately my output doesnt appear in 2 decimal format. What I want for example is that if I enter 4 I want the output to be 4.00. Can some one help me pls Thanks. Dear Nobugz, There is a problem when I am doing your above code it doesnt work. But before that let me give you a bigger picture that infact I have already have the above function of protected override bool ProcessCmdKey(ref Message msg, Keys keyData) in my program to capture other keys not e ...Show All
Nani How can I apply AutoScaleMode to other controls than Containers ?
Hello, I want to use my software in high resolutions/DPIs, I had no problem with displaying a ToolStripContainer, the fonts are properly scaled. However the scaling do not pass to childrens, I have Labels and ListBoxes on the content panel, but whatever I try to do so they get re-scaled, does not work. The SizeF structure is already at 1:1 which means I think, the software on run-time already resized and set it back to 1, to avoid infinite resizes (It's said on the help topic below). I have tried what is described on this topic, but I always get the answer I said above. The PerformAutoScale method doesn't work too. Automatic Scaling in Windows Forms ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmanc ...Show All
Dano Baseball datgridview and combo
hi i have and datagridview to which im connecting a table thru code. one of the columns of the datagridview is combobox and i want to display one field of another table to the combobox on form load. hw can i do it DA1.SelectCommand = New OdbcCommand( "Select code from Company" , con) DA1.Fill(ds1, "Company" ) ds1.Tables("Company").Rows(0).Item(0) is what i want as data to that combocolum plz help You might try the following 1) Create a class say Customer. You want to capture all the credit cards the customer class has which you get from someother database table. Let this property in the customer class be Creditcards of type String []; 2) Create a binding List Object. popul ...Show All
vijay prajapati how to change the startup form?
I have a windows form application, is it possible to change the default first screen to other forms plz help Yes you can in the main program change the Application.Run to be a different form static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault( false ); Application.Run( new Form1() ); } Change it to be another form in the code in red. VB.NET is setup in a similar way... only you have to go into the project properties to specify the startup form. At least for C# in 2005 they've moved that code to a much easier to find place. thx all of u, problem solved. stupid me looked everywhere but this line of code. I thought there should be a setting option in des ...Show All
Big5824 Best MSI information source / Best MSI tool
Over the past two years we have gone the rounds trying to figure out the best way to create setup.exe programs for our VB.NET applications. We've dabbled with Wise, InstallShield, and Visual Studio's Setup Project. We're currently dealing with VS Setup Projects, but we're not entirely convinced we're using it to it's fullest potential or that we're using the best tool for the job. Our goal is to deploy a large number of client applications that communicate with a server within an Intranet. We would prefer these installations to be done silently. I guess I really have two questions: 1. Based on our present experience, we're pretty frustrated with the complexity of Wise and InstallShield, and we're also feeling that VS Setup Projec ...Show All
rogupta Navigation
SqlDataAdapter OrdersDataAdapter = new SqlDataAdapter ( new SqlCommand ( "SELECT * FROM Orders" , conn)); SqlDataAdapter OrderDetailsDataAdapter = new SqlDataAdapter ( new SqlCommand ( "SELECT * FROM OrderDetails" , conn)); DS.Relations.Add( new DataRelation ( "ParentChild" , DS.Tables[ "Orders" ].Columns[ "OrderId" ], DS.Tables[ "OrderDetails" ].Columns[ "OrderId" ])); this .BindingContext[DS.Relations[ "ParentChild" ].ParentTable].Position++; Here problem is only navigate the parant table this .BindingContext[DS.Relations[ "ParentChild" ].ChildTable].Position++; ...Show All
