Textbox border property for a Textbox in .net 2.0 - vb.net

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

Related

Applying a theme for a Telerik RadMultiComboBox

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

Set a default form backgroundimage in Visual Studio WYSIWYG editor

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.

How to make the style of a MenuStrip like that of the MenuStrip in Notepad? (VB.NET)

and I was wondering if there was a way to get this style of MenuStrip:
in a WinForms application, instead of this style:
I've already tried browsing through the different appearances Visual Studio offers, but I think it might be the version of the .NET framework I'm using, which is 4.5, I'm fairly certain.
Edit: Sorry, I should have said this before, but I'm using Windows 7 and Visual Studio 2010.
I've found the solution. Just simply replace a MenuStrip with a ToolStrip, and but the RenderMode property to "System". I feel rather silly now heh
I found the solution.Right click on toolbar and click Choose Item.Now select .Net Framework click Main Menu.
Now use it. But I have windows 7 and visual basic 2010 express...

Reason for toolbox items being greyed out [duplicate]

I'm trying to add a chart to my Visual Studio form but the button is greyed out. I'm using .NET Framework 3.5 and C#. Following instructions online I've downloaded and installed the dll files from this link: http://www.microsoft.com/en-us/download/details.aspx?id=14422
I also added them as references and added the following line at the top of my form file:
using System.Windows.Forms.DataVisualization.Charting;
but the button is still greyed out.
What have I missed?
To make the chart control available, you need:
To be using .Net framework 4.0 or higher, OR for .Net framework 3.5 install this: http://www.microsoft.com/en-us/download/details.aspx?id=14422
On the toolbox context menu -> Choose Items... have the Chart control selected. (Sort by name in the Choose Toolbox Items dialog and scroll to Chart. There are two: one for Windows forms, one for Web forms. You need only select what's relevant.)
The chart control appears in the "Data" section of the Toolbox.
You do NOT need to any any "using" clause to the form source file, or any reference in the project references. (The reference is added automatically for you when you add the control.)
I too had this issue and could not resolve it for hours.
As posted here:
Visual Studio 2010 toolbox controls disabled or inactive
In order to solve it for me I just right-clicked one of the items in the toolbox, and chose "Reset Toolbox"
This resets the entire toolbox, so as mentioned in the answer above, all custom tools are lost and need to be re-imported.
Had the same problem.
What I did was to make sure that I was using the same Framework with the chart framework version.
During project creation, by default using .net 3.5. But since the chart is written for Framework 4.0, it will not work with 3.5.
You need to change the solution or project Framework to 4.0 or above by doing this:
On the menu bar of Visual Studio, click <your project name>/Properties.
Change target framework to 4.0 or above.
Save the properties setting.
Rebuild your solution.
After this, you may use that chart component.

Charts and plots in .Net 4 using Windows Form

I am using Windows Form and .Net 4 in Visual Studio 2010. I need to do some cross-plots, and would like to have a few features, as cursor and zoom in and out.
I tried to use ZedGraph, however I was not able to add its controller to the toolbox. I don't know if I have done something wrong or if it is not compatible.
Do you have any suggestions?
Thank you!
First, I'll assume you are using WinForms (as opposed to WPF).
Add references to the ZedGraph DLLs to your project
Right-click references in the solution explorer and select Add Reference
Select the browse tab and locate ZedGraph.dll (also ZedGraph.Web.dll if needed)
Rebuild the project (F6)
In the Toolbox, check that ZedGraphControl has appeared under Components
This control can be added to the design layout of a form.
Alternatively, once you have the reference added, you can add a graph to a form in code with the following:
using ZedGraph;
ZedGraphControl myZedGraphControl = new ZedGraphControl();
// set size, location, etc. properties
form1.Controls.Add(myZedGraphControl);