Showing posts with label MS Visual Studio. Show all posts
Showing posts with label MS Visual Studio. Show all posts

Visual Studio 2012 C# Transparent Overlay Panel

Posted on Wednesday, February 5, 2014


I recently had a need to overlay a warning over all the tools I had displayed on a Panel.   Basically I wanted a transparent image over the entire panel that said something like "Warning" over and over again.



This guide will be a complete step by step on how to accomplish this.

Problem with DockStyle.Fill and Scroll bars

Posted on Tuesday, September 17, 2013


I am in the middle of doing a rewrite of some code for a client, fixing up some poorly written code (that I wrote L  … the code is correct, it does the job but in its current state it will be very hard to maintain in the future).

As part of the rewrite I am separating a lot of the interface into smaller pieces of code.  I am making several UserControls  (System.Windows.Controls.UserControl ).  I am adding this controls to a Form by placing a Panel on the form and adding the control to the panel. 

Printing with PrintForm

Posted on Monday, August 26, 2013


If you have a simple need to only print the Form (window) you are currently viewing in .NET you can use the PrintForm tool.

The PrintForm component is described at http://msdn.microsoft.com/en-us/library/bb690938.aspx [1] with the following.

The PrintForm component enables you to print an image of a form to a printer, to a print preview window, or to a file without using a PrintDocument component.


With that description let's get started.


Visual Studio 2012 C# PrintDocument Dimensions etc.

Posted on Saturday, May 18, 2013



I have a need to print out some documents programmatically using .Net and C#.    I just want to see how I can get the dimensions of the page I will be printing on.

To start off with I am using a program that can print multiple pages and select printers.  The notes on how to make this program can be found here http://www.whiteboardcoder.com/2013/05/visual-studio-2012-c-print-printer-list.html

Visual Studio 2012 C# Print printer list etc

Posted on Wednesday, May 15, 2013



I have a need to print out some documents programmatically using .Net and C#.  

This document just goes over the a few specific features Selecting a printer to print to.  Printing more copies, setting the portrait or landscape, and printing ranges.


Visual Studio 2012 C# PrintPreviewControl

Posted on Monday, May 13, 2013



I have a need to print out some documents programmatically using .Net and C#.  

This document just goes over the PrintPreviewControl


Visual Studio 2012 C# Print more than one page

Posted on Friday, May 10, 2013



I have a need to print out some documents programmatically using .Net and C#.   Here are my notes on how to get basic printing working in C#.

This document just goes over printing on more than one page


Visual Studio 2012 C# Print more than one page

Posted on Wednesday, May 8, 2013



I have a need to print out some documents programmatically using .Net and C#.   

This document just goes over printing on more than one page


Visual Studio 2012 C# Basic Printing

Posted on Saturday, May 4, 2013



I have a need to print out some documents programmatically using .Net and C#.   Here are my notes on how to get basic printing working in C#.



Visual Studio 2012 Using a git Repository

Posted on Thursday, April 25, 2013




I have recently been working on a project using C# and .Net.  I decided to go ahead and buy Visual Studio 2012 Professional.  So far I like it but I have not had time yet to set up a proper repository for it.   I was planning on using git, but I figured Microsoft would not support it directly and I would be forced to use git on the command line (which I am fine with).  Well it turns out Visual Studio 2012 does support git.

I found some information on the fact that Visual Studio can use git at this site. http://www.hanselman.com/blog/GitSupportForVisualStudioGitTFSAndVSPutIntoContext.aspx [1]


This document does not go over TFS (Team Foundation Server), although you can use git with TFS.  Also you can use git with  Team Foundation Service https://tfs.visualstudio.com/en-us/, its free for up to 5 users (not sure if it's going to remain that way)

Visual Studio 2012 C# Create an ACCESS DB

Posted on Tuesday, February 19, 2013



I have a need in a new program I am creating to create an ACCESS DB.   I am programming in C# using Visual Studio Pro 2012.
I am using InstallShield LE for my installation process.   If you are having problems getting InstallShield LE working on Visual Studio I did a little write up on it here http://www.whiteboardcoder.com/2013/02/visual-studio-pro-2012-install-shield-le.html  



Visual Studio 2012 C# Adding Tables to an ACCESS DB

Posted on Sunday, February 17, 2013



I have a need in a new program I am creating to talk to an Access DB.   I am programming in C# using Visual Studio Pro 2012.
I am using InstallShield LE for my installation process.   If you are having problems getting InstallShield LE working on Visual Studio I did a little write up on it here http://www.whiteboardcoder.com/2013/02/visual-studio-pro-2012-install-shield-le.html  



Visual Studio 2012 C# Connecting to an Access DB



I have a need in a new program I am creating to talk to an Access DB.   I am programming in C# using Visual Studio Pro 2012.
I am using InstallShield LE for my installation process.   If you are having problems getting InstallShield LE working on Visual Studio I did a little write up on it here http://www.whiteboardcoder.com/2013/02/visual-studio-pro-2012-install-shield-le.html  


Visual Studio 2012 C# Common Application Data



I am investigating the proper place to put program config files in the Windows Environment.  I am using Visual Studio 2012 as my IDE and programming in C#.  I am using InstallShield LE for my installation process.   If you are having problems getting InstallShield LE working on Visual Studio I did a little write up on it here http://www.whiteboardcoder.com/2013/02/visual-studio-pro-2012-install-shield-le.html


Where to put a program config file?


I am currently writing a Windows .Net program that when it starts will need to read some data from a config file and possibly write some data out to the same config file as well.

Looking around I found this older article http://vb.mvps.org/articles/vsm20090119.pdf [1] that suggested a good place to put this file Common AppData Folder.   This folder can differ between different Windows OS Systems, but in Windows 7 it is at C:\ProgramData  (A file that is typically hidden)

Visual Studio Pro 2012 Install Shield LE

Posted on Thursday, February 14, 2013




This guide will go over how to install and use InstallShield LE in Visual Studio Pro 2012.