I am writing to the event log from my Windows Forms application running on Windows 7 and am getting this message in the event log:
The description for Event ID X from source Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can insta...
In VS2008, in a VB.NET windows (WInform) app, I suddenly seem to not be able to edit the code and continue in this project.
In Tools-->Option, Edit and continue is checked.
What else can I look for? The files I am trying to modify are not Read only.
...
how to read screen resolution - and change this resolution ?
ex: i read 800X600 and i want to change to 1024X768
in WinForm - C#
...
I am parsing html tabular information with the help of the html agility pack. Now First I am finding the rows in that table like
var rows = table.Descendants("tr");
then I find the cell data for each row like
foreach(var row in rows)
{
string rowInnerText = row.InnerText;
}
That gives me the cell data.But with no spaces betw...
Hello. Does anyone know how I can create a screen overlay while a program is running? Mainly while a game is running. If anyone has used xFire or Steam, these use this feature.
I've created a winform which starts the game/program and then minimizes. Could the overlay be created in the same winform? Thanks for the help! :)
...
How do i dynamically removing/adding(cancel the removal) form area using region and graphics path class
...
I am trying to add an "KeyPress" event in a textbox (WinForm)
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(CheckKeys);
and here's inside the 'CheckKeys':
private void CheckKeys(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if (e.KeyChar == (char)13)
{
// Enter is pressed - do so...
I am developing a C# WinForms app on my XP dev machine with Visual C# Express 2008.
I set the form to have a size of my liking with Width and Height on the designer and all looks good. I also set these dimensions to the MaximumSize property.
Deploying the app to another XP machine, and the app looks like it does on my dev.
However, in...
Hi,
I'm trying to scroll a textbox using the form's WndProc method. The code I've come up with so far, after scouring the internet, looks like this:
private void ScrollTextBox()
{
scrollMessage = Message.Create(TabContents.Handle, 0x00B6, new IntPtr(0x0003), new IntPtr(0x0000));
this.WndProc(ref scrollMessage);
}
where TabCo...
I have a solution in Vb.NET 2008 windows Form with ToolStripMenuItems,
but I need to implement menu navigation without any mouse intervention.
I only found mouse events In ToolStripMenuItems, MenuStrip, etc.
All MenuStrip and ToolStripMenuItems are created programatically, reading user permissions from Database, then add a handler to...
I'm searching files and returning lines that include the search text, and I'm not really sure the best way to display the information I get. Every time I get a match, I want to show, in some sort of control, the File it came from, and the whole text line. (aka streamreader.ReadLine() result). First I tried just putting it all in a read-o...
I have a save as image feature for charts in my application. The chart control is a custom user control with custom logic in them. It also has some scaling based on size, zoom etc. However, while saving them as an image I would like to give the user the option to set the size of the image (eg: 800x600 px @ 300 DPI).
To do this I have cr...
I have a simple text box in a WPF application.
I need to know when a character was added/deleted in the text box, which character and where it was added or deleted.
I thought to use the TextBox.KeyDown event, but it has some problems:
I can't know where the character was added or deleted.
I have no idea how to determite which charac...
Does anyone know how I can resize a winform when it has no border. I don't want the default border that Windows has, so I changed the property "FormBorderStyle" to "None". This removed the border, although now it can't be resized. I've figured out how to move the form around, I just need to know how to resize it.
...
Hi
Winforms - why does a "Show()" after a system tray double click end up in my app minimized?
How do I ensure Inthe notifyicon double click event that my hidden main form comes back visible as normal, not minimized (nor maximised for that matter too)
...
I have a Panel that contains child controls.
If i handling the Panel's MouseEnter and MouseLeave events, and his child's MouseEnter and MouseLeave events, here is the order of raising:
Panel.MouseEnter
Panel.MouseLeave
Child1.MouseEnter
Child1.MouseLeave
Panel.MouseEnter
Panel.MouseLeave
but i need the following order of raising:
Pa...
Hi
Winforms-How can I make dialog boxes appear centered on MainForm? That is as opposed to be based on Normal windows default which renders them in the centre of the screen.
In my case I have a small main form that may for example be positioned in a corner, the the MessageBox popup is displayed what seems a ways away.
...
I'm gonna start a new project soon, using .Net 3.5 and Winform on an Oracle database. We were planning on using an ORM. NHibernate was suggested by our architect. Since I'm personally more familiar with Entity Framework, I thought it would be easier to use than NHibernate. But since there isn't any official provision from Oracle, we are ...
Hi All,
This is my first winform app in .NET... I have made a couple of ASP.NET app...
In this app, I have some common variables, like current user name, his selected process etc.. etc.. This should be made accessible from all forms in the app at any time... How could I do this... Is there any place like "Session" in ASP.NET here.....
Hi,
I am trying to pass 2 variables from a thread, in the MainForm, to another form, but when doing so an error occurs.
private void TrackingThread( )
{
float targetX = 0;
float targetY = 0;
while ( true )
{
camera1Acquired.WaitOne( );
camera2Acquired.WaitOne( );
...