Context
Viusal Studio 2019, Windows 11
.NET 5.0
Winforms Project
I have a VB.NET application with 3 form backgroundimage depending on working environment (Production, Integration, and Test).
I set this backgroundimage at application start when users choose the working environment and I store the backgroundimage in a public variable ```imgBackgroundFormUsed````
In the form designers, i set the background image for the forms and its controls using this variable, e.g:
Me.grpCorpusMetaDatas.BackgroundImage = imgBackgroundFormUsed
Problem
in Visual Studio, WYSIWIG form editor, the background image is set to None and the edition become pretty lame, considering that i set controls forecolor to white
Question
Is there anyway to set some kind of default background image in the Visual Studio WYSIWIG form editor, only for this particular project ?
I could set the appropriate backgroundimage when forms load but it would add lots of codes.
Related
I have a vb.net application with many data-entry forms. On some of these forms a Telerik RadMultiComboBox control is used. I want the VisualStudio2012Light theme applied to all of these controls. I have no trouble applying the theme on all forms but one. On that one form, VisualStudio2012Light is not an option. I change the theme thru Properties...StyleSheet...ThemeName in the Visual Studio designer. I can manually enter it by typing it in but it does not stick and goes back to the default theme.
Using Visual Studio 2022 and version 2022.2.622.40 of Telerik.
What am I doing wrong?
If you are using RadForm, the ThemeName property should work. You can drag-drop the VisualStudio2012Light theme from the ToolBox to the RadForm. Check the following image: enter image description here
Then from the Visual Studio Properties window, you can navigate to the ThemeName property and set it to the desired theme. The last step is to apply the theme to all controls from the smart tag of the RadForm. This should do the trick:
enter image description here
I've just installed VS 2022 preview to use Maui but there seems no way to see a designer view of the XAML, I want to drag and drop controls onto the page but all I get is an ancient looking XAML text view.
Visual Studio has removed the XAML designer. For now, there is no official plan to readd it.
But Visual Studio support Hot Reload to modify your apps managed source code while the application is running, without the need to manually pause or hit a breakpoint. You could preview the view at runtime when you change the UI. For more details, please check the blog. https://devblogs.microsoft.com/dotnet/introducing-net-hot-reload/
Like Cfun said, you could use live visual tree as well. It shows a tree view of the UI elements of your running Xamarin.Forms application. https://learn.microsoft.com/en-us/xamarin/xamarin-forms/xaml/live-visual-tree
For a WPF dotnet6 project, the XAML designer can be enabled here:
Don't know why it's disabled by default.
Properties pad doesn't work on my Visual Studio 2019 on Mac.
Attachment
I tried it on tools like Button or Label. I restarted visual, closed and opened files and nothing has changed.
On this video: https://youtu.be/76it8xVANbI?t=137 it looks fine but my properties pad doesn't display anything inside xaml file. When I click on filenames on the solution pad, properties pad displays info about those files.
I just searched the document and found this feature exists in Visual Studio 2019 for Mac version 8.4 Preview 1 (8.4.0.1935)
There says:
Xamarin:
You can now use the Properties panel to change your control's
attributes when editing Xamarin.Forms XAML. To open it, go to View >
Pads > Properties.
So you can update your Visual-Studio for Mac to version 8.4 Preview 1 (8.4.0.1935) to use this feather.
In VB.net a textbox does not have border color property. But i want a control with border color property. I have tried the code mentioned in this link. By using it i was able to create a control which can be added to visual studio and can be used. It works fine for me for .net 3.5 target projects. But it does not work for .net 2.0 targeted project. The border color does not change.i have even tried building the control(dll) using .net 2.0 target and adding it to project but it didn't work. So please help me on it or any alternative for it
An easier solution may be to draw a rectangle around your textbox and set the textbox border to nothing
The Visual Studio Visual Basic Power Pack as a rectangle you can add behind your textbox. Look at the bottom of your Toolbox - may be WinForms only. Or download latest from MS
In Visual Studio 2008, when you add a new XAML window to a WPF Application Project, the default view you get is "split view" where the visual designer and the XAML code are shown one above the other in the same document.
I prefer an alternative view which you can get by double-clicking on either the Design or XAML tabs. The visual designer and the XAML are in separate side-by-side tabbed views. This makes it easy to switch between them
I want to know if it possible to make this the default view for all new XAML documents I add to my project, and where in the options you would set it.
Tools/Options/Text Editor/Xaml/Miscellaneous, check the "Always open documents in full XAML view"