Late Edit I tagged this as a C# question as well as C++ because the problem presents itself in both languages, and solution if shown would most likely be in the C# (the majority of the market).
I have been developing an application under .net 2.0 (C++ to be specific, but irrelevant).
This application uses a custom derived datagridview...
I am trying to write a winform application that would be able to edit the web.config file of an installed web application.
I have read through the ConfigurationManager and WebConfigurationManager class methods but I am unsure as to how I can open the configuration file of a web app and edit it.
I am looking for a method that does not re...
When working with Windows Form controls and LINQ is there a "Best Option" for how your Buisiness Layer returns the Data?
Right now I am returning DataTables so that I can then set the DataSource to the returned DataTable. Is there a better option? Why?
public class BLLMatrix
{
public static DataTable GetMaintItems(int iCat)
{...
is this a good idea or not really?
instead of having to open a file through filestream, i would like to just save text in an encrypted format in application settings.
is this OK if the text is under 10mb?
what would be the best way of implementing this?
...
when my.settings.datastorage has nothing in it, this works fine. but after i go through this twice, it gives me an error
total_string = "some string"
My.Settings.datastorage = My.Settings.datastorage & DPAPI.Encrypt(total_string)
My.Settings.Save()
MsgBox(DPAPI.Decrypt(My.Settings.datastorage))
this is the error it gives:
"Invalid ch...
WinForms databinding has very solid support for navigating related DataTables via DataRelation objects, but I'm having a difficult time finding resources for implementing similar functionality for databinding against a business object.
Does anyone know of an equivalent to the DataRelation object, or know of any resources on implementing...
I am trying to add a line of text to a TextBox component in VB.net, but I cannot figure out for the life of me how to force a new line. Right now it just adds onto what I have already, and that is not good.
I have tried copying the actual linebreaks, didn't work. I tried AppendText(), didn't work.
How on earth do I do this? It is multi...
Hello guys, anyone know a c# winforms accordion control?
preferrably open source or free.
...
I'm trying to have a Windows Forms ContextMenuStrip control display a list of countries, about 200 total. Currently it displays them all vertically which creates for a long wait time to scroll to countries near the bottom of the list. I've tried messing with the ContextMenuStrip.LayoutStyle property but it hasn't gotten me anywhere. M...
I'm creating my own very basic Grid control. I've decided to derive from ScrollableControl (this is what DataGridView seems to do) and go from there.
I have a lot of code in place to draw my cells, but I am having difficulty figuring out how to utilize the "scrollable" part of the ScrollableControl. It seems that ScrollableControl's d...
I need to have the ability to have a Global variable/class that stores some basic information about the currently logged in user including that user's preferences, security rights, UserID, etc. This information will be needed by any/every part of my application.
In the past I have either used a Public variable/class in a vb.net module ...
hey you must have used Macromedia Dreamwaever & flash & fireworks, in all these aplications on the right side there is a collapsable menu. "When you click on it it expands and show its contents and on another click it collapses"...
I'm working on a project in C# winforms and that sort of menu is an important interface requirement. How c...
i want to play a warning sound in C# at some event\decision
how to play sounds in C# winforms and adjust volumes etc
...
i am using data grid view in C# winforms, lets say there are n records that i am displaying after that the (N+1)th empty row is always displayed. how to make it not show\hide
...
I am trying to display a simple message, which I have done probably thousands of times in the past, and NOW... The full string of text is NOT being displayed in the MessageBox. I'm not doing anything differently, so I don't see the problem. Here's my code:
if (MessageBox.Show("The text in this file has changed. Do you want to save chang...
HI everyone,
I have a UserControl with a ContextMenuStrip attached to it.
I want to display ContextMenu base on which object was clicked on the surface of the control.
The issue is that, at the first launch, when I right-click on the control's surface, the contextMenuStrip doesn't show up!
I set breakpoint inside both contextMenuStri...
I want to make a button that acts with the keyboard as with the mouse. I'm implementing it this way:
class FunctionButton : System.Windows.Forms.Button
{
public FunctionButton() : base() { }
protected override void OnGotFocus(EventArgs e)
{
OnMouseEnter(null);
base.OnGotFocus(e);
}
protected overrid...
I'm looking for a tool/control/component that i can use to position over image control of my win form, and it will pick a screen shot from specific region the user will select.
The user won't be able to move this "camera" out of the form, and after picking the partial image from the image control, i need the camera will mark the copied ...
Just a quick question:
I'm in the finalizing state of my current C# project, and I'd like to send a version out to people that has 90% of the features initially requested, but it'll be a version of the software that will do all they need - they need the software as soon as possible, basically.
Therefore I'm going to be using the online...
When starting my app I at first have to read in some data, have to init some forms and so on.
For that time the user sees just grey getting-ready to show something forms.
This lasts for a few seconds...
I thought of a Splash Screen that loads the data in a seperate Thread and also shows how long it will take. Or just a status bar?
How...