Answer Questions
smithalovesdotnet Including non referenced dll in ClickOnce deployment
I'm deploying an applikation using ClickOnce I need to include a dll from another project in the solution. This dll is not directly referenced in the project I'm trying to deploy, but is added as a Project dependency. This dll is not getting bublished alongside the rest of the project files and references. How do I get the ClickOnce deployment to include this dll file -- sparrez 1. I'd use msbuild publish target to get setup.exe file. Another way is by using GenerateBootstrapper msbuild task, but you would have to provide all parameters manually and then use SignFile task to sign it. Using publish task also automatically gives you prerequisites (if you have any, Crystal, for example) listed in the m ...Show All
Sumit Bhatnagar 3rd party dll not in global assembly cache
Hello, I have created an application that has 3rd party controls. I published it to a file system for local network install. When I click 'install' on the default page, I get an error "xxx.dll not found in global assembly cache". What causes this and how can I publish the app so users can install it successfully It sounds like you need the MDAC redist - that's where msado15 is: http://msdn.microsoft.com/data/ref/mdac/downloads/ and VS 2005 setup projects have a bootstrapper that will include the MDAC 2.8 install if required. Sorry, this did not solve the problem. Perhaps I am missing a step in deploying the application. I have added a setup project in the solution, and included the ...Show All
Mithat Mese display member of checkedlistbox
I want to use a checkedlistbox for users to check which record they want to select. Can I show the full detail of record(serveral fields) instead of a single field That's what I want !! Thank You !! Of cource the DataGridViewCheckBoxColumn can do the thing you want: this .dataGridView1.Columns.Insert(0, new DataGridViewCheckBoxColumn ()); This statement insert a DataGridViewCheckBoxColumn at the first column, it's just a checkbox column without any relation with your datasource if you do not set the DataPropertyName property of this column. Regards, Ye I think using a datagrid view is overkill if all you want to do is have a bound checke ...Show All
RayClark096 MaskedTextBox
I am trying use the new Windows.Forms.MaskedTextBox control (new for .NET 2.0) with a mask type of Short date (00/00/0000). the problem is that when i pull a date value from SQL Server, the mask fails. For example if SQL returns 6/10/2006, the maskedtextbox displays 61/02/006. I tried to replace 0 in a mask with 9 (optional number), still the same problem. This is how i format date in code: if (clientDetails.Tables["Clients"].Rows[0]["AuthCodeStartDate"]!=null ) { AuthCodeStartDate.Text = String.Format("{0:d}", Convert.ToDateTime (clientDetails.Tables["Clients"].Rows[0]["AuthCodeStartDate"])); } Thanks for the help! Marek. If you want to use culture, ...Show All
Liebethal DataTable sorting
I checked the DataTable.Select methods .. and all i want is to get all the rows in the datatable in an order. I don't need to specify a filterexpression .. since i want all the rows to be sorted .... How can i achieve it did you try the above posted also what exactly didnt work are you sure it did sort it but you were thinking of something else i try .. and it worked! thanks! ... I did something similar that didnt work ... DataTable.DefaultView.Sort = " column ASC" then i did a foreach(DataRow row in DataTable.DefaultView) { } that didn't work ... you could use a DataView and sort it... DataView theView = n ...Show All
Guilherme Cestarolli Seleguim cascading/dependant combobox in gridview in VB 2005
In my gridview, i have 2 combobox columns. I need to populate items in combo 2 based on selection in combo 1 How can i accomplish this Alex There is a sample on the vb-tips website Thanks Ken, Your solution did do the job for me Alex ...Show All
alya User Control Wierd Bug?
Hi there, I am currently working on a prorgam, I have recently started using the VS IDE. If I have a form with normal controls on such as label, text, button and such I can load in design view, but if I have a user control on a form and try and open the form in design view it will load up blank and if I save it, it will become "corrupt" and the build won't work. The workaround I found is the comment out the init's associated with the user control to stop the constructors from loading. Any help on what I could have done wrong Cheers Hi, What does your user control look like Martin Hi, I meant - can you attach the code Martin It looks like a grid. ...Show All
xshua How to make it so an app installs for ALL users, not just the current one?
I noticed when I create a setup.exe and install it, the app goes into \Documents and Settings\myUsername\... etc. How can I make it go into \Documents and Settings\All Users\ And have the shortcut available for all users as well, on a global level BUT still have the application settings on a per-user basis. This version of ClickOnce does not support control of All Users vs. Current User, you can only go to the current user. It's something that's being considered for future versions, but we wanted to get the Current User model right with this release. And how exactly is that done This is correct... Setup projects are not in Express SKUs ...Show All
Saman Attarian Launching another window from my application
Hey, I'm new to the whole C# thing. I am using Visual C# 2005. I have created a simple web browser. It has all the basic functions of a browser. I created another form in the project that is an about box. I want people to be able to click on a button on my browser and have this about box show up so they can learn more about my browser. I already have the button on my form but I don't know what code to type that makes the about box show up when the button is clicked. Please help. Thanks! you could also use the ShowDialog() method which will block the previous thread/form and make the current form a modal dialog, which is handy so they dont click on your button multiple times and previous instances hidi ...Show All
SmartSpy Datagridviewcell backcolor issue when using colordialog
What I'm trying to do is that depending on the selection of the colordialog, the backcolor of a datagridviewcell can be changed. the problem is that if the user selects a color that is not a kwoncolor, the cell does'nt paint. here's the example: ColorDialog1.AnyColor = False ColorDialog1.SolidColorOnly = True ColorDialog1.AllowFullOpen = False If ColorDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then Dim cont As Integer For cont = 0 To el_grid.SelectedCells.Count - 1 Dim r As Integer r = ColorDialog1.Color.ToArgb el_grid.SelectedCells(cont).Style.BackColor = Color.FromArgb(r) Next End If I tried ...Show All
SQL Tech Newbie question: Common Binding Sources for several Forms?
Hi, I'm coming from Delphi world and learning from scratch VB.NET Express 2005 with SQL Server Express 2005. I'd like to develop a small database app. where I have a main data grid, and when the user press a "view button" on the Navigation Bar, a dialog box opens with data detail from the selected row on the grid from the previous form. Is it possible to have common Data BindingSources used by the 2 forms, so my detail form is loaded automatically with the same table record the user selected from the grid in the previous form In Delphi there was the DataModule, where one can centralize datasets and data sources for all the application, and if 3 forms referred to the same data source, all data was in sync on ...Show All
BIG S installing vfp8.0
I WAS INSTALLING VISUAL FOXPRO 8.0 AND HAD THE MESSAGE 'INSERT VISUAL FOXPRO 8.0 PROFESSIONAL ENGLISH DISK 1' SO HAVE TO ABORT INSTALLATION. WHAT DO I DO Hi Kuuku, The most common way to install Visual FoxPro is from a Visual FoxPro CD, named something like "Visual FoxPro Professional English Disk 1." How were you installing VFP since you do not appear to have this CD Please turn your caps lock off. ...Show All
Sukanya DataGridViewRow - why does it require a default property?
This code in VS05 : Private Sub ProjectGrid_CellClick( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles ProjectGrid.CellClick Dim currentProject As DataGridViewRow = ProjectGrid.CurrentRow Debug.WriteLine(currentProject( "ProjectID" )) End Sub ProjectGrid is a DataGridView control bound to a bindingsource connected to a table in a dataset. ProjectID is a valid column name in the grid and the bindingsource. The user has clicked on a cell in the control to activate this handler. Produces this error in the debug.writeline statement with reference to the variable currentProject: Class 'System.Windows.Forms.DataGridViewRow' cannot be indexed because it has ...Show All
son of dad Closing One Form Then Opening Another
Hi,I am new to C#. I have an existing login form that once the user finishes logging in and clicks OK I want to close the login form and open another one. Here are some code snippets:From the main moduleApplication.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(new frmLogin());From the login formthis.Close();frmMain frmmain = new frmMain();frmmain.Show();When I try this.Hide() it works fine, but I would like to remove it from memory using close.Thanks,Mark Mark, Create and display your login form in your main forms constructor. So for example your startup code would be: Application.Run ( new MainForm ( ) ); And your main forms constructor would be: public MainForm ( ) { new LoginForm ...Show All
Tran Ngoc Generic base for UserControl do not work
Hello everybody, I use many UserControls doing quite the same stuff all the time. Now I wanted to code a generic base for all this controls. So I defined public partial class ManageItemPanelBase<T> : UserControl Now my "real" panels inherit from this Class. public partial class UserControl1 : ManageItemPanelBase<ItemClassNameGoesHere> VS do not allow me to use the visual designer anymore. I get the message: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: UserControl1 --- The base class 'ManageItemPanelBase' could not be loaded. Ensure the assembly has been referenced and that all projects have been ...Show All
