Answer Questions
nightchaser Enable Hot Keys
Hi, I am developing an application in VB.Net. I have a windows form with several buttons like Save, Close etc with Hotkeys Alt + S, Alt + C respectively. Usually in VB6 a hot key is triggered only by pressing Alt key and the letter ...Show All
xxpor System.Drawing
I have the code below and when I use DrawEllipse, it works ok, but when I try to use DrawLine, it doesn't show in the pictureBox - or rather shows for a second or two then nothing. int w = pictureBox1.Width - 1; int h = pictureBox1.Height - 1; // Create the bitmap Bitmap bmp; bmp = new Bitmap(w, h, System.Drawing.Imaging.PixelFormat.Format24bppRgb); g = Graphics.FromImage(bmp); Pen myPen = new Pen(Color.Blue, 1); myPen.Width = ...Show All
AJ787 How do you refresh data bound to a DataGridView
This should be easy... but I don't know how to do it. I have created a DataSet that is bound to a DataGridView so that the DataGridView displays the data in my DataSet. If my DataGridView is called dgvStudents, the following code DOES NOT do the job: dgvStudents.Refresh(); I can see the grid itself flash and refresh(), but the data behind the grid is not being refreshed, so new items in the database (added by another pro ...Show All
justin000 DataBindings TabIndex DataTable Modified Problem
I have come across a very bizarre problem with data binding a windows form controls Tag property, let me explain. 1. Bind the tag property of a textbox to a column in a datatable. 2. Set the tabindex of the control to be 0. 3. Call the&nbs ...Show All
Tobias Boehler Using Access in a VB Project
I am using the Access Application object in a VB project. I'm using the function DoCmd.OutputTo of the Application class to output a snapshot file to a particular directory. However, I constantly receive an error stating that I must install a printe ...Show All
rosevines How to disable "Ctrl-Tab" navigating between MDIChildren
Hi. I've tried to find an answer for this, but i think the terms are too general. I'm developing a windows app that uses MDI. We've created our own (simple) framework wherein the forms are navigated through a tabcontrol, i.e. tabbed forms. An unexpected bonus of the MDI was that the user can switch between the open forms with "Ctrl-Tab" and "Ctrl-Shift-Tab", and i respond the the "Deactivate" and "Acti ...Show All
armindocorreia Reading IL
I was reading a .Net book that said all .Net programmers should learn to read MSIL. Does anyone know why you would want to do that I don't see the point. The value of being able to read MSIL is that you end ...Show All
dsinay EnableVisualStyles and NotifyIcon bug
When Windows XP visual styles are enabled, if you use ShowDialog() on a form in response to an event raised by clicking on a NotifyIcon or a popup menu from a NotifyIcon, you get a SEHException when the form is closed. Has anyone else noti ...Show All
Neal McFee Creating Publish.htm without Visual Studio
I'm developing a clickonce application without the tools of Visual Studio, does anyone have an example of a completed clickonce web deployment app <HTML> <HEAD> <TITLE>ClickOnceOnDemand</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" /> <STYLE TYPE="text/css"> <!-- BODY{margin-top:20px; margin-left:20px; margi ...Show All
Willbur4u how to sort winform's databinding by related table's column?
I have a windows form bound to a "products" table. I've tried binding to a dataview and a dataviewmanager, but i can't figure out how to achieve a sort by joined table. "products" table has a column "seasonName". this links to&n ...Show All
JonJon How to use datasets across multiple forms?
I'm having a hard time understanding what the method is to create a copy of the database within my application using a single dataconnection and data adapters In other words, all of the examples you see regarding datasets, etc. show you dragg ...Show All
istanbul 05 Datagrid: Change background color of a single row
Hello, Let me first explain the situation: I have a datagrid with several rows (yes, i know, that's what a datagrid is for ). Now when i press a certain key (lets take F5 for example) i'd like to change the background color of the currently selected row. Now my problem is that i've found no solution how to change the background color of the selected row. But i'm sure here are several pros who can give me five lines of code as an example Oh, ne ...Show All
Ronoc Java to C# Conversion
Hey everyone i used the JLCA that comes with Microsoft VS.Net Enterprise, it only converts 85% of my program. anyone know any good tips for converting the rest manually or any sites that teach how to do the conversion properly thanks! ...Show All
koko_han Maximize child MDI form without ControlBox
Visual Studio 2005 Beta 2, C# Maximize mdiChild form without displaying ControlBox ... pretty much says it all. I have set ControlBox, MaximizeButton, MinimizeButton and HelpButton all = False, Set the FormBorderStyle = FixedToolWindow (actually tried them all) and WindowState = Maximize. When I .Show the childForm a controlbox still appears above the titlebar of the MDI parent ... ugly, useless and takes up real-esate better used for displaying ...Show All
Anthony D. Green Application.ExecutablePath gives strange info
Hi, I am trying to use the Application.ExecutablePath to find the executable path of my app and it gives me the following C:\\Programme\\Microsoft Visual Studio 8\\Common7\\IDE\\vctesthost.exe when running the debugger. This is not what I was expecting. I was expecting the bin directory of where my application is built Is this normal Application.ExecutablePath should work, you can also try Reflection.Assembly.GetExecutingAssemb ...Show All
