visual

Background Image on Panel flicker when scrolling

I've got a panel in windows forms (Visual Studio 2008) which has a background image (A book shelf). When scrolling the image flickers and does not redraw so looks awfully - I've tried creating a new object to use double buffering but this has no effect, any suggestions? Public Class DoubleBufferPanel Inherits Panel Public Sub New() Me...

Problem when creating C# derived components on Visual C# 2010 Express

I used to create components by writing a derived class from some other component (like WebBrowser, for example), and then after successfully running my application the component would appear in the Toolbox as a normal component that I can drag and drop in my forms. After installing Windows 7 and reloading my old solution, even though I...

Visual Studio - "The data provider or database you have selected is not supported" problem

When I'm trying to add a new local database to my visual studio project, It tells me "The data provider or database you have selected is not supported". How can I fix this error? Thanks in advance!!! ...

Visual studio Attaching debugger to windows service -- attach greyed out

I am trying to attach to a windows service using the Visual Studio 2010 --> Debug --> attach to process command. When i scroll through the list of processes my windows service is greyed out and the attcah button is also greyed out. I have tried changing the service account to loacal service, my account, etc but it remains greyed out. Any...

Notification when rendering a Visual in WPF is complete

Is there a way to get notified (e.g., by an event) when a Visual has been (re-)rendered? Basically, I would like to take a screen shot whenever a Visual's appearance has changed. I assume the rendering thread is taking care of this in the background. I am trying to avoid grabbing a screen shot periodically since I am only interested in...

Mutliple Executables From Single C# Project in Visual Studio

I currently have a single solution with a single project and this generates executable A.EXE. The project consists of dozens of C# source files, forms, etc. I now need to generate executables B.EXE and C.EXE as well. B.EXE will use about 95% of the code base for A.EXE (i.e. a subset of functionality). C.EXE will use about 80% of the cod...

Visual studio code documentation does not show up

For example: When I type Console.WriteLine and the intellisense pops up, the tooltip for that function reads only "void Console.WriteLine()". It no longer shows the summary of the function, "Writes the specified data, followed by the current line terminator, to the standard output stream." or what the values of the parameters should be....

How to enable Snaplines in VS2010 Winforms?

HI I just migrated from VS2008 to VS2010 Pro. When I use windows controls in forms in Visual Basic, the snap lines to other control does not appear to help to place the the controls with others. I checked the the option, all was checked and set to be enabled but still no guide lines!! Any ideas? Regards ...

Specify an icon for app with Visual Studio

I am have some trouble specifying a custom icon in my WPF applicaion. I went to Properties/Application and down in resource I pointed towards where the icon is stored (Resources/MyIcon.ico). However when I run the app I get the default icon. Has anyone else seen similar problems? ...

Voicemail in Android?

Hello Friends, I am developing one Android application in which i have to integrate voice mail feature means First of all i have record one audio file and save it as a voice mail then i will assign this file to any contact so when a call is coming from a particular contact then my application is start and the assigned voice mail will st...

Effectively highlighting column and row on a DataGridView as mouse moves

I am trying to highlight the row and column which the mouse is on. Essentially this means to change the background color of all the appropriate cells. Currently I am trying to do this in the MouseMove event. However, this is causing slow performance. I was suggested to use WPF for better performance, however I do not wish to go that rou...

Trick of My.Computer.FileSystem.WriteAllText?

Hello. Method strongly promoted as an alternative to the deprecated methods MSDN writing files this clever, that's just scary:). He not only writes and appends the contents of the file, but also penetrates the written. For example, create the following code: Dim fl As IO.StreamReader = My.Computer.FileSystem.OpenTextFileReader("C:\src....

Can't add event handler in visual studio 2010 (mfc project)

I've recently converted an MFC visual studio 6.0 project to a visual studio 2010 project and I'm experiencing problems whenever I try to add event handlers to controls on certain forms within my project. On one particular page I have a radio button and I've tried to add a click event handler to it using 3 different ways: 1) By right cl...

Visual Studio 2010/2008 Error: An Invalid Argument Was Supplied

All of a sudden I am unable to run any web application in Visual Studio 2010. I get an error message (shown in the image below. I get the same message when I try to run or issue the View in browser or Browse With command. The project compiles properly and then I get this error message. I am able to run WinForms applications normally. ...

Can't Add Service Reference in VS 2010 to a net.tcp endpoint

I've got a service running (well, it doesn't crash), but when I try to add a Service Reference to it, I keep getting: Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. If the service is defined in the current...

Visual Studio and TortoiseHg: folder not visible in VS

I created a C# project and added it to source control (mercurial). I can edit files in VS, commit it and push it using TortoiseHg. It goes to the server. When some one pulls they get the files. In my visual studio I added a folder and a file inside that folder. I used TortoiseHg and it saw the new file in the new folder. I committed it ...

Microsoft Office 2007 Macro - Odd behavior. Cursor Jumps

Hi, I hope someone have some insight into this. I have a check box on page 1 and when it's clicked, it will launch a macro & insert a value to a text box on page 10. Simple The problem is, the script in the macro is looking for the value of another text box on page 5 to do some calculation. Whenever i do text5value = Val(oFFld("Text5...

Making your own cusctom workflow developed in visual studio 2010 available in sharepoint designer 2010

Well my requirement is : Need to develop a custom workflow,the workflow should take properties like site url, list names etc., From the client. I am able to develop the workflow, but i need to make it available in designer. I tried the method mentioned here: http://www.chaholl.com/archive/2010/03/13/make-a-custom-activity-available-to...

Problem with msvsmon in visual studio 2008 in a web aplication

When I try to debug the solution I got this message that said that debugin cud not start in the web server, debugin remote components are not registered or arent been executen in the web server. Make sure you are executen the correct version of the msvsmon in the remote machine. What can I do? ...

help with linking my dll to my executable in visual studio 2010

its been about three days now since ive been trying to link my dll to my executable but everything i try wont work. i have tried placing the lib file in the linker. i get error 1>new3.obj : error LNK2019: unresolved external symbol _dllLoadBitmap referenced in function _WndProc@16. i have tried to load the library using loadlibrary. l...