-
- Conditional file replacement during setup
by Manash
- 2 Replies
- Last post
by David Guyer MSFT
- Hi,
We have a VSTO project. We have a special file which needs to be placed during setup. But it's true only for the first time user who is installing our application for the first time. Then onwards the deployment project shouldn't replace the original file. Can we give condition in setup script to find out whether to copy the file or not. If YES pls tell me how.
Thanks in advance.
-
- check mark state
by cheatcountry
- 8 Replies
- Last post
by Chunsheng Tang - MSFT
- I have a check box that when clicked should stay clicked the entire time but if I click it and then re-open the window it will appear unchecked again. How do I make it so that it stays checked if it was checked or that it stays unchecked if it was unchecked
-
- speedy processes
by Linenoize
- 8 Replies
- Last post
by Linenoize
- While working with database connections, I have noticed that the program doesnt seem to wait to pull the data from the database. This happens in various places, I am simply showing one.
Current example: (from main.frm)
mainJobID = Me .JobIDTextBox.Text
mainCustID = Me .CustomerIDTextBox.Text
JobDetails.Show()
Me .Close()
For the JobDetails form to show data correctly
-
- Catch access to sqlserver database
by kate1p1
- 3 Replies
- Last post
by BonnieB
- I have a web service that logs an error to a sqlserver database.
When I use the service outside the catch (in a win app) it works fine. But, when I have an exception and try to call from within the catch, the service returns a failure and does not log the error in the database. Does anyone know why the second web service call won't log the error.
//this error is logged
ErrorLogSvc
-
- MenuStrip and ToolStrip Items disappear in design and debug modes
by neverhome
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- For no reason I can discern, my toolstrip and menu items have vanished from my application. I can still select them from the dropdown list in the Properties Window, but they don't show in the designer or when I run the app in debug mode. The menustrip and toolstrip appear visible but empty. The app also uses a tab control, listview and treeview. These remain visible. Everything is contained within
-
- changing property after displaing dialog
by nikos_22
- 2 Replies
- Last post
by nikos_22
- i have this code
MyDialog ^ d = gcnew MyDialog ();
d ->ShowDialog();
.....
.....
d->Text = "hello" ;
I want to display the dialog and to change the text (or some other) property after displaing. I tried but does not change.
Thank you
-
- Refreshing the Parent Window
by Dhakir Raj
- 4 Replies
- Last post
by Dhakir Raj
- Hi,
In my project,i have got a parent window.
The parent window consists of a button.
On click of the button,a child window will open.
Once the child window is closed,the parent window should get automatically Refreshed, so that the DataGrid gets rebound.
Can anyone please help me out
Many Thanks in advance
Dhakir
-
- Problem about adding new row without the specified default values.
by Rush hour
- 2 Replies
- Last post
by Wei Zhou - MSFT
- Dear all, The "AllowUserToAddRows" property of my DataGridView (dvg) is set to be false when it is initialized. User is only allowed to add the new row with the default values specified in the "DefualtValuesNeeded" event handler function, by using the Menuitem1 on the ContextMenu. The codes in MenuItem_Click event handler function is as follows, private void MenuItem_Click(obje
-
- How to set Control::Margin in C++/CLI?
by JamesTK
- 2 Replies
- Last post
by Ðãv? S. Â??????
- Hi,
In C#, I can set the margin of a control by setting
aControl.Margin = new Padding(0);
In C++/CLI, how can I accomplish this It says Padding is a value class in C++/CLI. So, I tried this.
aControl->Margin = gcnew Padding(0);
Using VS2005, whenever I try this, I get
error C2061: syntax error : identifier 'Padding'
Thanks.
JK
-
- How to add a class as a control in a Panel
by singlenipple
- 1 Replies
- Last post
by TilakGopi
- Hello all,
I made a class to draw a chess board. and I want it to be viewed in a Panel
I tried the panel2.Controls.Add() method. But it only takes Controls. How can I do this!! either casting my class to a control or is there anyway to add the class in a panel
here is the code in the constructor of the class Board:
class Board
{
public Board()
{
PictureBox [,] board =
-
- Combox Initially Shows Value Member instead of Display Member
by Manacsa
- 4 Replies
- Last post
by Yu Guo ¨C MSFT
- I created a form by dragging a bunch of objects from my Data Source.
Some of these fields use dropdown comboboxes.
When I call up a record through the form, the combobox shows the value in the table instead of showing the Display member associated with the Value Member.
For example, it shows:
US
When I click on the down arrow on the combobox, it shows the d
-
- Folder Browser Dialog inside a SplitContainer
by Nigel Parsons
- 5 Replies
- Last post
by EliGazit
- Hello,
I want to display the Folder Browser Dialog inside a SplitContainer using VB2005 - Just like in the Windows File Explorer. I have a form called frm_Main with 2 SplitContainers. spl_Main divides the window in half with a vertical divider and spl_Left divides the left panel (panel1) into two with a horizontal divider. I want to permanently display the Folder Browser Dialog in the top
-
- FindWindowEx problem
by jijo12343
- 3 Replies
- Last post
by nobugz
- I am going crazy with this code.
int h = Win32 .FindWindowEx(hWnd, 0, "BUTTON" , "1" );
I was hoping that it would find the button control on a form with the id 1 however I am not able to get any value for integer is "h" with a sample app that I have just one button with id = btn1 and text = 1
However If I run the code against windows calcul
-
- Showing 2 individual windows simultaneously
by Christie Myburgh
- 2 Replies
- Last post
by Christie Myburgh
- I have developed my app with VS2005(VB.Net) and it consist of 2 seperate windows (not MDI configured). I want to display both when any one of them is selected at any given time without giving focus to the window that was not selected. In other words, if both windows are in the background buried beneath other apps, I want both to be displayed when I select any one of them.
Thanks
Christi
-
- Mouse wheel doesn't scroll panel. No Focus
by xr280xr
- 4 Replies
- Last post
by xr280xr
- I have a panel with several user controls that appear as group boxes. Depending on which child control is the active control on the form, the autoscroll panel may or may not scroll when using the mouse wheel. Why is it that, unlike a webpage, I cannot click on a blank area of the groupbox OR panel to set the panel as the active control so that I can use the mouse wheel to scroll Only child control
-
- fingerprint authentication
by pritha kaura
- 2 Replies
- Last post
by frederikm
- i am bulding a windows form based application usin VS 2005 and windows vista as my OS. i want to add fingerprint based authentication. i have a microsoft fingerprint reader. Could anybody please suggest me how should i go about it.
please help!!
thanks
-
- How to keep the ratio of column headers' width in ListView
by andriscs
- 5 Replies
- Last post
by andriscs
- Hi, I have a ListView with Details view and I'd like to keep the ratio of the headers when I resize my form. I found suggestion about how to fill up the space with the last header but I need to keep the starting ratio where the first column is the widest. I could do it with calculating the width difference of the original size and the new one and modifying the With property one by one but I feel t
-
- MSI question
by JRuland
- 2 Replies
- Last post
by JRuland
- i have a situation where i need to check whether a registry entry exists before i proceed with an install, and exit the installer if the registry entry does not exist. is there a way to do this with windows installer
-
- MenuItem Remove Highlight Border?
by AustinW04
- 1 Replies
- Last post
by Wei Zhou - MSFT
- I have a windows forms main menu at the top of my program. I am trying to set one of the MenuItems so that when the mouse rolls over it nothing happens. I have set enabled=false so that it can't be pressed, and it doesn't highlight any more, but the border around it still shows up when the mouse is over it. Does anybody know how i can get rid of that border so nothing happens when the mouse is ov
-
- Print Preview PROBLEM
by JDDeviL
- 2 Replies
- Last post
by JDDeviL
- Good evening to all, Please can any one help me to solve this problem. I am using Visual C++ non MFC ( CLI ) and I am trying to preview my picture in the document using print preview, but this form always appears when I run the program and I want to have it removed but I don't know how. The picture for the form.
if it didn't appear please see this link: HERE
CAN YOU HELP
-
- TreeView Icon display bug?
by Apuhjee
- 6 Replies
- Last post
by Apuhjee
- Well - a picture's worth a thou... ummm... however many words this post adds up to.
I've built a TreeView with 32bit images. They initially display fine, but with each expand / collapse, the transparent portion of the image darkens - reaching black within a few clicks.
Weird, huh
Jason
-
- MonthCalendar Bolded Dates not showing up
by Daniel Eliades
- 8 Replies
- Last post
by Daniel Eliades
- Hello,
I am using Visual Studio 2005 with Vista Ultimate. Once I use the Aero theme the bolded dates do not show up on the MonthCalendar. To add the bolded dates to the calendar I use the following code:
Code Snippet
DateTime dtBoldDate;
dtBoldDate = ( DateTime )reader[ "aptDate" ];
monthCalendar1.AddBoldedDate(dtBoldDate);
monthCalendar1.UpdateBoldedDat
-
- Which key was pressed for ToolStripDropDownCloseReason.Keyboard?
by dyowee
- 4 Replies
- Last post
by dyowee
- Good day. Is it possible to determine which key was pressed on the Closing event of a ToolStripDropDown since I think it can be closed using the Esc or Alt key
Thanks!
-
- Semi-transparent background form with opaque icons
by flyte
- 7 Replies
- Last post
by nobugz
- Hi All.
If you look at the MacOS X dock, the buttons (fully opaque) are sitting on a semi-transparent background. How do you achieve this affect in WinForms I have a form and set its opacity to 50%, but then when I place buttons on it (that contain images), they too also appear at 50% opacity.
How can I have opaque buttons(images ) on a semi-transparent form
-
- Only 2 active forms
by TaYeB
- 3 Replies
- Last post
by TaYeB
- Deal all
I have Project in c# using Client/Server approch, I want to to have main form active -it contains menus- and if i select any option from the menu show a new form and if i select another option it will overload the open form.
so that keep only the main form and one other form active.
any help !!