Answer Questions
GiovanniP how to edit a file in deployment folder when use ClickOnce deployment
Hi, I am using ClickOnce deployment to distribute my winform application. The application is installed on client’s machine gets auto-updates from the server if a newer version is available. I have an xml file in my application where I store client preferences (database name, server name, so on…) When I do a built that xml file becomes part of the deployment folder (.deploy is added to the filename). The application works fine for the client which preferences I specified in the xml file. But when I open that file from deployment folder and modify the preferences to use for another client (without recompiling the whole application) – the application fails. Is there any other way to deploy the application to different clients w ...Show All
ChrisErven DeployVB Application
I would like to deploy a VB 2005 application that will run from a CD ROM without loading anything onto the user's computer. I would like for the user to plce the CD ROM in the CD Drive, navigate to the start Icon, click it, and run the app. I do not want there to be any upload to the user;s computer. Is there a way to do this without loading .NET or any other file to the user's computer Or you could write an application in something like C++ that is not dependent upon the .NET framework. You would be surprised at how many users worldwide have a version of the .net framework installed on the machine - as it does go out as an optional update in windows update and with Vista the .NET 2.0 framework will be installed from the outset ...Show All
aurorean Error DataBinding to RadioButtons in ADO.NET
Hello every one, In fact i have Visual Basic.Net 2003 i am trying to connenct to my access file database in vb.net but i face some problems with binding data with some tools finally i have one problem with Radio Buttons . just try to see this my Form view http://img295.imageshack.us/img295/8674/picpt3.jpg . what i want to do when this Form loaded it should be bind all data to all tools like textbox, listbox, datagrid, checkbox and radio button but i face error databinding with radio button was Sex Type (Gender) cannot loaded the radio button ------ so how can databinding to Radio buttons if i have to select some value in Listbox to display these items to the Radio Butto like (Male or Female). This my Code - - - - ...Show All
crewchiefusa Effects?
Hey, Is there a way to make the text in a richtextbox have an effect Like in MS Word, in the font dialog you can change the font effect to ingraven and other things.... Thanks :) what do you mean by draw the text myself Oh actualy I got a new e-mail but you cant change your ID so I had to make a new account... wow, I thought it would be an event or somthin that had it, well, I will hopefully eventualy get it to work then, thanks :) Yes. You will have to draw the text yourself though. PS. If you wanted to change your user name on these forums you didn't have to create a whole new account. You can change your display name by clicking "edit profile" in the upper right hand corner of the ...Show All
Greg Y bootstrapper ExternalCheck order
Is it okay for the ExternalCheck of one prerequisite to depend on an earlier prerequisite I'd like to write an external check program (for a SQL Express SP1 install with a custom instance name) in .NET. Before running this installer, the end user might not have .NET installed. Are all of the InstallChecks executed before anything is installed, or are they interleaved with the installs themselves Thanks. I took a look at the <Schedules> element and that looks like exactly what I need. I'll give it a try. Thanks! Yes... it's a bit fancy though, you need to use something called "schedules". Check the J# bootstrapper package for the best example. I ...Show All
fiNAL.Y chaging formWindowState.Minimize to formWindowState.Normal
I want to write some code that is triggered when the window state of my form chags formWindowState.Minimize to formWindowState.Normal, is there a way of capturing this event i have looked at the "resize()" event, but no idea whether it is the one and how to implement the process. please help i used "Activated()" method for my case to cover all situation before i saw your code, however, the code you provided worked well for me, thx nobugz :) Yes, the Resize event is best. For example: public partial class Form1 : Form { private FormWindowState mState; public Form1() { InitializeComponent(); mState = this.WindowState; this.Resize += RestoreDetect; } private void RestoreDetect(object sender, ...Show All
chaza Apply TextRenderingHint to normal font w/ Graphics class and Paint Event?
Is there a way to apply a ClearTypeGridFit TRH to a label Either using graphics or not Thanks, Thank You! That worked. I have been trying to use Form1_Paint, not label1_Paint. Thanks, again, Hi, Sure, you can use it just as what used to form. For example: private void label1_Paint( object sender, PaintEventArgs e) { Font TextFont = new Font("Times New Roman", 25, FontStyle.Italic); e.Graphics.TextRenderingHint = TextRenderingHint.ClearTypeGridFit; e.Graphics.DrawString(" http://forums.microsoft.com ", TextFont, Brushes.Black,0,0); } label1_Paint is delegate of Label1.Paint. (and dont forget to set the AutoSize to false to demo the result) ...Show All
Stigern How to call custom action on button click
Hi guys, I have an MSI file and I have a UI form inside of it that has all the standard buttons on it – Cancel, Next and Previous. What I need to do is to execute custom action on a click event of one of these buttons. As I understand I could do it creating event on DoAction in ControlEvent table of the MSI database with the Orca. So far it is pretty clear. But what I cannot find is how I could execute action that is inside of the .NET assembly or .NET assembly compiled as an installer class (basically same custom action that .NET using to execute when I build installation in Visual Studio .NET). I have loaded binary content of the .NET assembly into the Binary table, but I do not see how I could call any specific method inside ...Show All
Andre&#39;s DataGridView Column identify - VB 2005 Express Edition
Hi, I'm using a databoud datagridview control. The dataset contains all the fields of the table and the grid is associated with that specific dataset. If I want to hide a column on the datagrid I can use the statment: dgvClassLocais.Columns.Item(1).Visible = False It works OK. But if I want to name the field (corresponding column 1 in the datagridview) I cannot. dgvClassLocais.Columns.Item("IDLocal").Visible = False ; gives an error Can you explain why Regards, Pedro If you bound to the datatable in the designer it will name the column something like DataGridViewTextBoxColumn1. If you want to have access to the columns by name you will have to ...Show All
RohitAtKA ToolTip And NativeWindown
Hi, In my program, I used a NativeControl class (shown as follows) to control the behavious of control that has focus. For the following class, it changes the background color automatically for control currently having focus. In my program, for a textbox control tb, I will create a native control instance for it with code like: NativeControl nc = new NativeControl(tb); However, when attaching this text box control to ToolTip control, the tool tip appears in a very short time and then disappear. My understanding is ToolTip control might think two controls with the same handle existing in that location so it tries to display tool tip for the NativeControl instance (for instance, nc) and hide the tool tip for the original control ...Show All
Elhanna How to display rows placeholders in the remaining client area of DataGridView ?
I have DataGridView with 2 rows and 5 colums, but the DataGridView control has it Height property mach more greater than 2 rows in total (12 rows can fit this area). I need to display all 12 rows = 2 bounded to the table and 10 empty. It is possible to do in known way Link to any article or code sample will be wellcome. Karl Erickson wrote: You could add ten empty rows to your data source, or you could use unbound mode (that is, don't set the DataSource property), and instead set RowCount = 12 and populate the first two rows manually using the data in your data source. That is the the silution only for application not sensitive to performance. When data source has thousands or more ...Show All
Koas VB 2005 Express Project Deployment
I have writtewn an app that needs three pre-requisites, .Net 2, Installer 3.1 and SQL Express. All the publish details are setup etc. When I choose "Download prerequisites from the same location as my application" where is this "same location". My app will not publish beacuse it says, for example, "windowsinstaller3_1\windowsinstaller-KB893803-v2-x86.exe...cannot be located on disk". I have tried saveral locations but all have failed to date. To keep the download size of the Express products smaller, we did not include the actual installer/redist files. As a result, you can't use "Same Site..." unless you download the redist files from Microsoft. If ...Show All
markovuksanovic Check for Selected Item
I have a listbox with a folder....if i dont select the folder in the listbox i need messagebox.show to appear and let the user know to pick a folder to copy the file but i do not know how to check the listbox so see if a folder has been selected...i thought it would work like so but it throws an exception "Object ref not set to instance of an object".....any help { if (listBox3.SelectedItem.ToString() == null ) { MessageBox.Show("You need to choose the folder"); } else { string cpath = listBox2.SelectedItem.ToString(); string cpath2 = listBox3.SelectedItem.ToString(); if (cpath.EndsWith("xml")) { MessageBox.Show("hello"); File.Move(cpath, cpath2+ ...Show All
thedo How to bind and modify data from multiple tables?
I was wondering if someone could point me to a tutorial that might help me I have an application that I'm developing that will display a tabbed form which needs to contain data from different tables. For example, my database has a contact table with typicall information and then it also has a lead table which contains information if the contact is a sales lead. They are linked together by a common contactID column. There are a few other normalized tables also like an AlternateAddress table. My first problem was that I could only get the binding source to connect to a particular table. This was a problem cause the data that I need to modify is normalized across a few different tables. My solution to that problem was to create a v ...Show All
Chimme Minimize to Tray Window Form button.
Hello. How easy will it be to add a Minimize to Tray button beside the Minimize button on a Window Form this was a big problem with XP cause the classic theme would look fine but then the XP theme was all weird looking the minimize to tray buttont that is... How come Microsoft hasnt added the Minimize to Tray button on Window Forms like Messenger im talking about the button with a square dot that communicates minimize to system tray... I hate putting this feature in menus or sub it with Minimize or Close button... its to WEIRD dosnt communicate please let it be easy to add this button to the Main Window Forms Its hard, you have to handle WM_NCPAINT and WM_NCHITTEST. I find this is the best approach ...Show All
