Relative Content

Tag Archive for c#windows-forms-designer

I can not open windows forms designer when clicking cs file

I cloned a project of mine from github and open it with VS2022, the problem is the form cs files does not have the form icon in front of it, instead it has the c# icon. When i double click on it, it just goes straight into code editor.

Tick event in C#

I’m working with C# and I’m having trouble with the tick event in my Windows Forms application. The tick event doesn’t seem to fire consistently or at all. I’ve ensured the Timer is enabled and set the interval correctly. What could be causing this issue?

Draw a graph in a circle with a vertex in the middle

The program will present directed and undirected graphs with specified parameters: • number of vertices n; • location of peaks; • adjacency matrix A. Create a program for creating an image of directed and undirected graphs in a graphics window. The above-mentioned parameters of the graph are set on the basis of the four-digit but […]

Open/Save Rich Text file “File format not valid” error

I’m new to C# and currently trying to make a rich text editor with tabs. It saves files with edited text correctly, but when I’m trying to open them in apllicaton (or any rtf or txt file in general), I get an error message: “File format is not valid”.

CS 1069 “CS1069: The type name could not be found in the namespace

This error came, when i try to connect the SqlConnection
“CS1069: The type name could not be found in the namespace. This type has been forwarded to another assembly. Consider adding a reference to that assembly,” it seems like there’s an issue with locating the SqlConnection type in the System.Data.SqlClient namespace. I did this previously in another computer and work well. but here its not