visual-studio-2008

How Can We Have A SCROLLABLE GridView With Fixed Header???

Hi my dear lords : How Can We Have A SCROLLABLE GridView With Fixed Header???(in vs 2008 - asp.net with c#) Fixed Header is my problem! i test many ways for doing that and see some live demos / but they did not work. can u show me a simple way 4 doing that with an example? thanks in future advance ...

Why isn't Visual Studio allowing me to compile this Bresenham code?

I want to make this code run, but I'm still too much of a n00b on C, and OpenGL and VS 2008 to identify on which of them is the fault: #include <stdio.h> #include <stdlib.h> #include <GL/glut.h> #include<math.h> void init(void) { //set display-window background color to white glClearColor(1.0,1.0,1.0,0.0); //set projection paramaters...

Why bother with initializers? (.net)

I have this: AudioPlayer player = new AudioPlayer(); player.Directory = vc.Directory; player.StartTime = vc.StarTime; player.EndTime = vc.EndTime; But I could have this: AudioPlayer player = new AudioPlayer { Directory = vc.Directory, StartTime = vc.StarTime, EndTime = vc.EndTime }; If I convert to 'new way of writing t...

Bracket Checker Using Stack and Queue in C#

I am having an issue solving Bracket Checker . i cant seem to solve the problem if user input this sequence of bracket then my program must print its not a right sequence Input: ({}[) Output: Not a Right Sequence My code is below Stack s = new Stack(); Queue q = new Queue(); bool isok = true; st...

regex to validate double values

Hi, I'm trying to come up with a regex to validate a double value. I will admit that I am crap at regex and really should buy a book... Anyway the range is large so here goes: .01 to 99.99, is the range, with the leading '00' being optional, as is the '.' and the same for the trailing '.00'. So the user could type in 0.1 00.01, 0.11...

How to change my server side use of ASP:ImageButton to HTML img tag only

I am trying to wire some fancy Javascript (PopBox) to an ImageButton control and I am getting a very strange run-time (Compilation) error. <asp:imagebutton id="imgBtnPicture" runat="server" class="PopBoxImageSmall" pbshowcaption="true" title="Click to magnify/shrink" onclick="Pop(this,50,'PopBoxImageLarge');" ...

Visual Studio 2008 debugger detach

My Visual Studio debugger detaches every time when I try to access a property in a web application. I don't use Visual Studio's inner webserver, just the standard IIS. It seems like that property has somewhere a stack overflow (Server Application Unavailable) , but I can't find it. There is an error message in the EventLog: as...

visual studio 2008 web application project reloads as web site project

Hi, We are Upgrading our old ASP.Net 1.1 Web Service Solutions to .Net 3.5 I followed this link http://msdn.microsoft.com/en-us/library/aa983476.aspx for upgrade and converted the project as web application project. However whenever i reload the solution, the project gets reloaded as web site project. Any ideas where am I going wro...

Adding references adds wrong version

When adding a reference to VS 2008, the version is listed as v1.0.0.0 when it should be v1.1.0.0 - as far as I can see there is absolutely no reason why it is adding the wrong version. Both projects are written from scratch, no other refs reference the assembly I'm trying to add and when I look at the file in windows, it has the correct...

VS2008 assembly load problem

Hi, I have .NET solution in VS2008. In my solution there are 20 projects. In Debug configuration everything is OK. But in Release configuration there is problem with loading one specific assembly(class library from my projects). Could not load file or assembly 'Solution.Project, Version=1.0.3929.32377, Culture=neutral, PublicKeyToken...

Is there a team explorer client for Visual Studio 2008 for Windows 7 64bit?

I installed Visual Studio Team System 2008 on my Windows 7 (64 bit) machine. For some reason, it doesn't appear to be any menu items related to team explorer. In addition to this, when I try to install the stand alone Team Explorer 2008, it displays a message that it's not supported (I'm assuming because I am running Windows7 64 bit). ...

How do I store value to string with RegOpenKeyEx?

I need to grab the path from the registry. The following code works except for the last part where I'm storing the path to the string. Running the debugger in Visual Studio 2008 the char array has the path, but every other character is a zero. This results in the string only being assigned the first letter. I've tried changing char res[1...

How to add assembly manifest to a C# .NET class library project in Visual Studio 2008?

I'm having a similar problem to what Paul had a year ago (see How to add manifest to a .NET DLL?). That is, I have a C# class library project in Visual Studio 2008, which outputs a dll. The dll references some private assemblies, so I want to add an assembly manifest to the dll that specifies those other referenced assemblies. I know ...

"Attach to Process" as a post-build event

I have an application that runs hosted under the "w3wp.exe" process. While debugging, I often find myself following these steps: 1 - Make some change 2 - Build the project 3 - Attach to "w3wp.exe" using the "attach to process" dialog under the Tools menu. 4 - Perform some action in the application to make my code execute, so I can s...

How to generate xml documentation for asp.net website in visual studio 2008?

I am trying generate XML comment for my asp.net website pages. But when i right click on the website in the solution explorer i can't find Properties instead i find Propert Pages. How to get started with xml documentation? Any suggestion. More specifically here: http://msdn.microsoft.com/en-us/library/azt1z1eh.aspx ("To build the XML Do...

Peculiar behavior of immediate window in VS 2008

Today something peculiar happened while debugging in VS 2008. I will give the small code snippet List<IPageHandler> myPageList = TaskSOM.PageList; if( myPageList != null && myPageList.Count > 0 ) { PageHandler aPage = myPageList[0] as PageHandler; ...; // Some more code below } While running the application the typecast f...

Qooxdoo Application load very very slow under VS2008

When i run a Qooxdoo Hello World application directly from file system, it loads in a blink while from IIS its takes few milli secs, but when i load it in a vs2008 project and add sdk in that project too then on running very same hello world app takes 8 to 10 minutes to load. Actually i want to make a .Net application and qooxdoo appli...

Excel Visual Studio Design Time Adapter Add-in Error

Hi.. I am trying to open excel workbook 2003 using VSTO. but i am getting error again again like " Project cannot be created because the application add-in is not working correctly and might have been disabled. To check for disabled items in the Microsoft Office application, open the Help menu, click About Microsoft Office Word or Abo...

Looping through all directory's on the hard drive

Hey all i have this piece of code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strFileSize As String = "" Dim di As New IO.DirectoryInfo("C:\") Try di.GetFiles("*.*", SearchOption.AllDirectories) Catch End Try Dim aryFi As IO.FileInfo()...

Why Won't Visual Studio Stop When Exceptions Occur?

For some reason Visual Studio 2008 doesn't always stop when an exception occurs to report the exception when I am Debugging. Sometimes it just jumps up an arbitrary number of frames in the stack and continues on with program execution. This results in bugs that are very difficult to resolve. Frankly, its rather annoying. I want to kno...