I have created a macro enabled Excel Spreadsheet that will programmatically load a image from disk and load it into an ActiveX image control.
How to I remove the image? I want to remove the image from my testing the process. I do not need to create a script to programmatically remove it.
To clear out the picture manually:
Open the Visual Basics Editor and make sure you can View both the Project Explorer and the Properties Window.
In the Project Explorer select the Excel object or form the image control is on. (If it is a user form, you will need to double-click.)
The selected object should now be listed in the Properties Window. Click the drop-down box and select your image control.
Double-click the value for the Picture property so you have a blinking cursor.
Press Delete.
To remove the image manually, go into Design mode (View > Toolbars > Control Toolbox and click the "Design Mode" button). Right-click the control and choose "Properties". Click in the "Picture" property and backspace or delete until it says (None).
This assumes that the image is loaded into an Image Control on the worksheet and not on a VBA userform. You could follow mischab1's instructions if the control was on a VBA userform OR an image control.
And of course these instructions are for Excel 2003; the specific steps vary depending on Excel version.
Related
Forms and Modules in VB6 don't show when I double click them. In order to have them appear on screen I have to click Window > Cascade and everything moves into place, but when I open them from the project view nothing appears.
It seems like designer windows are displayed out of view... how can I fix this?
The form windows positioning, and which forms are open, is stored in the ProjectName.vbw file. Delete that file then open your project and the previous form windows settings are forgotten. The .vbw file should not be added to your source control system, there's nothing in it that is needed for code history reasons.
I am trying to change the TOolTipDescription of DELETE button in Microsoft Dynamics through ribbonsDiff.xml. It is not letting me change and throwing the error "cannot edit property until element is customized". I have customised it by defining it in ribbonDiff.xml file. But it is not changing the behavior of the DELETE button. Any way to change the ToolTipDescription of DELETE button ?
Get yourself a wonderful tool called the Ribbon Workbench. Then see Change the text or image of a standard button. Here's a high-level summary:
Install Ribbon Workbench in your org
Create a solution that contains just the entity you are trying to modify
Open Ribbon Workbench and select your solution
Near the top right corner of the screen, select the ribbon type that has the delete button you are trying to modify.
In the ribbon that appears, right-click the Delete button and choose Customise Button.
Modify the ToolTipDescription field down below.
Click publish.
I'm using Visual Studio 2010 Professional, and created a WTL Project (Dialog). In this dialog, I inserted a Tab Control via the Toolbox. However, after placing it on the dialog window in the Designer/Resource Editor, I just can't add any tabs. There are several issues:
In some video tutorials and the MSDN, it says that the Tab Control starts with two tabs, which switch when clicked. However, the Designer shows five tabs, which don't switch when I click them.
Aforementioned tutorials also suggest to edit the TabPages property in the property pane. However, I can't find such a property in the property pane.
When running the Test Dialog (found in the Format menu), the five tabs are visible, and they are also focused/switched when clicked. However, running the program, there's only the plain Tab Control pane without any tabs (white square).
How can I add a Tab into the Tab Control via the Designer, i.e. not dynamical?
Let's be good stackoverflowers and answer the question properly.
The visual basic tutorials do not show the same dialog resource editor you are using for your WTL project. Although, the video tutorial that is most closely related shows how to add a tab control using this editor; it does so by altering the MFC code. It runs the program to show the result; it does not show the tab inside the resource editor.
Thus, the conclusion is that tabs cannot be added using the dialog editor on its own.
I am curious about an issue in Coded UI Testing. For example I created a button named Button1. I did assertions and everything is fine. Then I changed this button's name to Button2. Now, do I have to write my assertions again or is Coded UI Test can suit in every different name change. Notice that I am not doing any input or parameter changes, I am just changing user interface. Thanks for your replies.
You should be able to change the test code easily to cope with a name change like that. Open the UI Map file in the UI Map editor; ie double-click on the uimap.uitest file in solution explorer. In the left hand pane expand the method and select the action that clicks the button. That should open the relevant control in the right hand pane. Alternatively just find the control for the button in the right pane. View the properties of the button and click on the ellipsis of the "(collection)" value of SearchProperties or the FilterProperties. One of the items shown should be the old name of the button, just rename it there.
I am creating a program which launches a game server. I have combobox in which the user can enter the ip, map, etc, of the game. How can I save what they have entered so that the next time they are already there so they don't have to re-enter them.
Use Visual Studio's Settings Designer, Right click on your project then properties, navigate to the settings section, from there, you can add anything you want.
then you can access your settings from code like so
My.Settings.nameOfSettingsEntry = value
My.Settings.Save()
you'll find more details and screenshots here,
You can also bind the settings to the control using the Properties Window.
Right click your project in the Solution Explorer and choose Properties. Go to Settings and create a new String setting. Then click on your ComboBox and open up the Application Settings > PropertyBinding section from the Properties Window. From there you can bind the control's text property to the String setting you just created.