Jul 29 2009

How to enumerate hard drives

I am writing a .net winforms application. I want to be able to enumerate all of the hard drives on a system.

Furthermore I would love to be able to determine which of the drives is Fixed and Which is removable.

Finally, of the removable drives, I would love to be able to determine which of them is a flash (SSD or thumb) drive versus a standard hard drive.

Jul 27 2009

Tweets made on 2009-07-27

Powered by Twitter Tools.

Jul 27 2009

Tweets made on 2009-07-27

Powered by Twitter Tools.

Jul 22 2009

SSRS Report Page Orientation

I am new to creating SQL SSRS (SSRS) reports in visual studio. I am impressed so far but I cannot find out how to set the Page Orientation in my new report from Portrait to Landscape.

I would think this would be in the Report/Report Properties settings but it is not there?

How do I change the Page Orientation from Portrait to Landscape for my new SSRS report?

Jul 22 2009

SSRS Report Page Orientation

I am new to creating SQL SSRS (SSRS) reports in visual studio. I am impressed so far but I cannot find out how to set the Page Orientation in my new report from Portrait to Landscape.

I would think this would be in the Report/Report Properties settings but it is not there?

How do I change the Page Orientation from Portrait to Landscape for my new SSRS report?

Jul 13 2009

Is it OK to change a winforms designer file?

I have created a class that is simply THIS

Class UserControlBase
     Inherits UserControl
End Class

Then I changed the Inherits clause in each of my UserControls designer file to

   Inherits UserControlBase

I know that generally you shouldn't manually mod the designer file. But in cases like this what else can you do? Is this OK? Is there a best practice I don't know about? Is there some other way to accomplish the same end (extending UserControl) ?

Jul 07 2009

Tweets made on 2009-07-08

  • I switched to DirectTV. For the second billing month in a row I am being charged $21.00 more that I was promised. It's broken. #
  • @RoryBecker Do you know if CodeRush could be used to collapse all the nodes in the Visual Studio toolbox? Have you got a plugin for that? in reply to RoryBecker #
  • @RoryBecker You rock dude. Thanks. Still loving Code Rush. in reply to RoryBecker #

Powered by Twitter Tools.

Jul 07 2009

Where does Visual Studio get the data intellisense and name-space completion

I admit…I am posting this question because I still don’t have an answer to my other question and thought I would take a different tact.

Can someone explain to me WHERE the values for intellisense and namespace/class/member completion works. I figured if I can drill into where/how it is deriving that data I can try to reconfigure my project so that it will resolve my namespaces correctly.

Seth

Jul 04 2009

Tweets made on 2009-07-05

  • Playng with my new enV Touch. #

Powered by Twitter Tools.

Jul 03 2009

How to expose and raise custom events for a vb.net winforms user control

Hello,

Please read THIS post. I have the same problem as described in this post but I am trying to do in in VB.net rather than c#.

I am pretty sure to do this I have to use a custom event. (I used a code conversion site to get to learn about custom events.) So in the IDE when I type the following:

Public Custom Event AddRemoveAttendees As EventHandler

It expands to the following code snippet.

Public Custom Event AddRemoveAttendees As EventHandler
    AddHandler(ByVal value As EventHandler)

    End AddHandler

    RemoveHandler(ByVal value As EventHandler)

    End RemoveHandler

    RaiseEvent(ByVal sender As Object, ByVal e As System.EventArgs)

    End RaiseEvent
End Event

But I can’t figure out what to do with it. Until today I had never heard of custom events.

The bottom line of what I want is to have the click event of a button bubble up to the container of the user control. I know that I could wrap my own event but I would at least like to understand custom events before I go farther down that road.

Seth