It seems folks have lost the ability to generate old style COBOL/RPG reports using modern day languages.
I often see code using DataReaders that relies on a count of records. So an additional aggregrate query is present when it need not be.
In most circumstance this code needs to know if there is another record available or not. In o...
I have a windows shared web hosting, and i want to create there a file watcher which will monitor my images folder and resize the new images.
I thought to make it as a separate component because i may sell to others later.
Any ideas?
...
I have a fairly large CRUD winform app that is set up to display forms embedded in tabcontrols. I want to have objects for Person,(has a) Enrollment,(has a) Plan that hold and track the information as they interact with the forms. How do I accomplish this? I found a suggestion to declare the Person object in my Program.cs like so --> ...
Hello,
I have a DataGridView which is bound to a collection of objects.
I want to make a Delete button on a form so a user could delete selected row.
But there is a problem if a new row (the special last row in the grid) is selected.
If I select the new row and then try to click Delete button, the grid loses its focus and changes the ...
What is your real world experience with the Microsoft Application Blocks and other Microsoft solutions as opposed to writing your own solutions?
I started a new project and decided to give them a go. I used the exception handling and logging blocks. The exception handling block works well for what I needed. The logging block did 95% o...
I would like to add a toolbar, that looks like the one in the Windows 7 Explorer (see picture below), to a WPF-application. Because I'm new to WPF I wondered if there is a WPF-Control (free / open source) I can use instead of having to create a new one.
I already searched for it but could not find anything useful.
...
I'm trying to connect to an Oracle 10g database using the built in Microsoft ODBC for Oracle driver. I want to use an dnsless connection, so I grab my connection string from www.connectionstrings.com.
Ideally I won't have to setup a DNS entry or an Oracle TNS entry, and I may be mistaken, but I thought the above would do that for me. ...
I've written a small utility function for our base page, it works fine in most cases, but if it's called in the form SetDropDownValue(dropdown, Nothing, True) I have to specify the type T.
Since the compiler only requires a type specified when the type is not used, I'm wondering if there is a better way to write the code.
The method is...
Hello,
I have a ComboBox that have a list of manufacturers. When a user selects a manufacturer, a grid below is populated with data for the chosen manufacturer. That data can be modified. The user has to press the Save button after all changes are done.
But the user can forget to press Save and select another manufacturer from the Comb...
I'd like to be able to remove and re-insert columns in a last-removed-first-reinserted fashion, but the ListViewItem.SubItems[] values get messed up if more than 1 column is removed.
For example,
A B C D
A0 B0 C0 D0
If I remove B, then B0 disappears, as expected. When I re-insert B, B0 re-appears in the correct location, bet...
I've got a WPF application with a status bar.
<StatusBar Grid.Row="1"
Height="23"
Name="StatusBar1"
VerticalAlignment="Bottom">
<TextBlock Name="TextBlockStatus" />
</StatusBar>
I'd like to display text there and switch to the hourglass Wait cursor when I do a small amount of work.
This code will ...
Hi,
This is the situation I am facing. I have developed a web application that allows users to select existing PDF files to be batch printed on selected printers.
However, in the UAT environment, we are not able to attach printers due to the risk to network security. I can arrange to install third-party software, but because of the...
I'm trying to use the System.Windows.Forms.MonthCalendar control within a VSTO Excel workbook. I want the MonthCalendar to pop up when I click a button in the ribbon, but so far I can't get the control to display at all.
Private Sub DeliveryDateFromCalendarButton_Click(ByVal sender As System.Object, ByVal e As Microsoft.Office.Tools.Rib...
I always come across code that uses int for things like .Count, etc, even in the framework classes, instead of uint.
What's the reason for this?
...
What would you recommend as the "best" VB.NET and C# books for learning Design Patterns? Preferably books that actually give examples of when to use the patterns. I need to recommend some books to a group of C# and VB.NET developers.
...
I have the following code:
class Foo
{
public Foo()
{
Size = true;
}
private bool _size;
protected bool Size
{
get { _size; }
set { _size = value; }
}
}
class CrazyFoo : Foo
{
public void First()
{
if (!Size)
return;
}
public void Second()
{
if (!Size)
...
When I attempt to use dotfuscate on my application, I get an application error when I run it.
...
Sorry, if this sounds ignorant. Is it possible to SECURELY upload data from a Windows Forms app using an asp.net web service or some other method? If so, what is the general way of doing it?
I have never used web services before.
I have an IIS 6 server with .net 3.5 installed. I need to build this windows forms program, which will hold...
Hi,
i have this code snippet
private List<string> FolderOne(string Folder)
{
string filena;
DirectoryInfo dir = new DirectoryInfo(Folder);
FileInfo[] files = dir.GetFiles("*.mp3", SearchOption.AllDirectories);
List<string> str = new List<string>();
foreach (FileInfo file in files)
...
I come from an ASP.NET background and find the entire roles based authorization scheme limiting to say the least. I've read about Microsoft's new Identity Model and the Geneva Framework with its Claims based architecture but it seems overly complex.
In general, I'd like to know more about possible authorization architectures to find out...