Sacramento .Net User Group

January 16, 2008

Windows Vista and Visual Studio 2008 Trial (Pre-release) Version: Crash on mouse wheel scroll- Workaround

Filed under: Uncategorized — sacdotnet @ 6:01 am

I am using Visual Studio 2008 Trial version with Windows Vista Ultimate. In the document windows, the moment I roll the wheel of my wheel mouse, studio crashes. I changed the mouse but same problem occurred. It is very annoying. It seems like this is a problem that had been already reported.

The workaround is the following:

1. Go to Windows Vista Control Panel

2. Click Mouse

3. Go to Wheel tab

4: If Vertical Scrolling Selection is “One scroll at a time”, change the selection to

“The following number of lines at a time. “. Select the number to 1 (or more as you please)

5: Click OK

 

This seems to have fixed the problem for me.

If Vertical Scrolling Selection is NOT “One scroll at a time”, then you need to report the bug to Microsoft.

Microsoft needs to fix this issue. Hope it will be included in the release version.

January 12, 2008

Visual Studio 2008 Built in Web Server

Filed under: Uncategorized — sacdotnet @ 9:55 pm

If you are wondering what happened to the command line executable that can start the Built in Web Server, it is very much there. But, it is no longer at the .Net Framework \WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE as the case with Visual Studio 2005.

It is now available at

C:\Program Files\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.EXE

You may use the following in a batch file:

START /D “C:\Program Files\Common Files\microsoft shared\DevServer\9.0\” /B WebDev.WebServer.EXE /port:80 /path:”D:\MyWeb”

Change the port number and web path as required.

Call by value & copying objects to another in C#

Filed under: Uncategorized — sacdotnet @ 3:40 am

Sometimes it is necessary to copy all the properties of a class instance (object) to another. We encountered a situation like that when adding an object (that maintained the state of an application – context-) in to a Generic Queue (static) . The same object, with different property values, entered the queue at various times. The queue was processed by a low priority thread. We noticed that when the queue contained more than one entry, all the objects in the queue had exactly the same values as the most recently added item.

This is because, C# copies only the reference of the complex object (class) when it is passed by value. The queue entries all were object references, to the same object. The work around is to create a new object, copy all properties to the new object and enqueue the new object.

It is possible to write a method to copy all properties one by one. However, it is not maintainable code (when a property is added, the method need to be updated) and is cumbersome.

The following method may be used create a copy of the object.

private static MyAppState DeepCopy(MyAppState stateObject)

{

    MemoryStream memStream = new MemoryStream();

    IFormatter formatter = new BinaryFormatter();

    formatter.Serialize(memStream, stateObject);

    memStream.Seek(0, 0);

    MyAppState newStateObject= (MyAppState)formatter.Deserialize(memStream);

    memStream.Close();

    return newStateObject;

}

January 8, 2008

Jan 23rd 2008 User Group Meeting

Filed under: Other — sacdotnet @ 1:12 pm

Sacramento DotNet User Group

 

 

Wednesday Jan 23 , 2008: Rob Bagby
Visual Studio 2008

The event is free for all registered members. Please RSVP at http://www.sacnetug.org/sacnet (login required).  If you have difficulty reading this email you can view this announcement online.

We will raffle off 10 free VS 2008 licenses in this event.

Please visit http://www.sacnetug.org to login and update your email preferences or to unsubscribe.

When:
Wednesday, Jan 23, 2008 from 6:00 to 8.30 PM
Where:
UC Davis Extension, Room #TBA, Sacramento.
Sutter Square Galleria, 2901 K St., Sacramento, CA 95816
Directions:
2901 K St. is between 29th and 30th and K&J Streets (Map & Directions)
Business I-80 northbound: Take the N Street exit. Continue north on 30th Street for three blocks and turn left on K Street. Turn right into the parking garage.
Business I-80 southbound: Take the J Street exit. At the first stoplight (immediately after the exit), turn left on J Street. Turn right into the parking garage.
Speaker:
Rob Bagby (Microsoft Evangelist & MSDN presenter)


Good software needs to solve real business problems. That’s Rob’s philosophy, which has guided him from the early days of his career through the .com explosion and beyond. Rob has consulted on Microsoft technologies for over 10 years and began developing on the .NET framework when the pre-beta bits were first released to the public. “I love the gratification of designing and building something that never existed before,” says Rob, who is an active contributor to user groups in the Phoenix area and has presented at over 50 events including Dev Days and the original .NET launch. Rob has developed various applications for customers ranging from local companies to Fortune 500 firms. Rob claims that he was developing AJAX applications before AJAX was AJAX. In 1998, he co-architected and developed a browser-based front-end for OLAP using XML/HTTP when both IE5.0 and SQL Server 7.0 were still in Beta. Few people know that Rob also has a Masters degree in International Finance from Thunderbird, The American Graduate School of International Management.

Topic:
Visual Studio 2008
 

VS 2008 is ready for release. This is a good time to get your hands wet with VS 2008. Its cross framework support (.Net 2.0, 3.0, 3.5) gives you no excuse to wait.

We will raffle off 10 free VS 2008 licenses in this event.
RSVP Required.

 
 

December 17, 2007

Sharing Violation when inserting tables using Macromedia in Windows Vista: Solution

Filed under: Other — sacdotnet @ 1:51 am

I saw a lot of posts in with this problem. Here is the solution that worked for me:

1: Exit from dream weaver

2: Change the compatibility mode of Dream Weaver to Windows XP SP2 (properties menu for the executable from start menu)

3: Go to the directory,  C:\Users\<your user id>\AppData\Roaming\Macromedia\Dreamweaver MX\Configuration\Objects\Common

4: Delete the file Table.htm (Save a copy if you like)

5: Restart Dream Weaver

This worked for me, but not completely sure if this is generic solution

Manoj

VS 2008 Install Fest (Re-post to SacDotNet)

Filed under: Uncategorized — sacdotnet @ 12:49 am

Anand Iyer and team did a great job in organizing the VS 2008 event targeted for Norcal User Groups. While the motivation for getting a free VS2008 License was strong, my primary motive to attend was getting back into the community, which I missed for some time due to extensive travel.

Registered attendees received a VS2008 Trial DVD. They will receive a free license as soon as VS2008 is released. The DVD included .Net framework 3.5. The product was introduced to the group by Scott Stanfield followed by a few other presentations. Cal Schrotenboer spoke too. Among many great new features, some of the notables are multi-framework support (target frame work could be .Net 2.0, 3.0 or 3.5), Java Script intelligence and debugging, LINQ Support and XML Enhancements in VB.

There were a few folks from Sacramento .Net User Group who attended. The trip was worth it, I guess. The food was good, all items were vegetarian, with a “free add on feature” (chicken) for those who are non-vegetarian. Being a vegetarian, I usually end up in the losing side, but not this time….

Manoj

December 16, 2007

Microsoft Windows Live Spaces Blog

Filed under: Uncategorized — sacdotnet @ 9:06 pm

Attempt 2, to use Microsoft Windows Live Spaces Blog as the Sacramento .Net User Group Blog. I was thinking that the newly added “linked id” feature will allow multiple Windows live IDs to post to the same blog. It looks like it is not supported. Anyone knows?

Until then, we will continue with the WordPress Blog

March 19, 2007

check if a file is already opened, using .Net

Filed under: C#, VB.net — sacdotnet @ 6:42 am

Does anyone know how to check if a file is already opened (by another application), without actually opening the file?
What .Net Class/Method to use?
Thanks…

March 2, 2007

Hello world!

Filed under: Uncategorized — sacdotnet @ 4:03 am

We want to let you know that we have a blog now!!!.

« Newer Posts

Blog at WordPress.com.