moulincourt's Q&A profile
Windows Forms How I can add a context menu to right mouse button click?
Can somebody help me Because I couldn't make it work. I add onMouseDown and try to catch rightclick, which it does but doesn't add context menu to control. Just add a ContextMenuStrip to your form, assign it to the ContextMenuStrip property of the control in question and voila, the rest is magically taken care of for you. ...Show All
.NET Development Memory usage of application increasing automatically !
I have made a simple windows GUI application in VB.NET. There are combobox, buttons,menu and text box on my application form. The strange thing is as I move my mouse on my application form or move the focus from one control to another using Tab, then the memory usage seen in task manager for my application goes on increasing. There is no mousemove or tab focus change handler in my code. The memory usage continuosuly keeps on incre ...Show All
Visual Studio Team System Specify Parameters on Build Initiation from VS2005
All, I can successfully initiate the build process from the Team Explorer Plug-In within VS2005 but I cannot find a way of getting VS2005 to prompt for the parameter values within the build script. For example we have an element called FinalVersion within the build script and ideally I would like the UI to prompt for the value before the build starts. I realise that this can be achieved from the command line and I realise that this could b ...Show All
Visual Studio Team System Full Circle error MSB3202
I'm having trouble building a team build. I am able to define a team build just fine, and when I try to run it, the log files seem to suggest that it can find the source files just fine. But I end up with a lot of errors. My solution uses Enterprise Library 2005, so here is one of the errors that reference it (so, I don't think it is custom code related): error MSB3202: The project file "..\..\..\..\..\..\Program Files\Microsoft Enter ...Show All
Visual C++ stl queue - why don't you work
I'm wondering why I get this message when I try to use a stl queue in a managed class. I'm using .net 1.1, so i can't use the new 2.0 typed queue. error: error LNK4006: "class std::queue<short,class std::deque<short,class std::allocator<short> > > * (* ALDaps::que)[64]" ( que@ALDaps@@3PAY0EA@PAV $queue@FV $deque@FV $allocator@F@std@@@std@@@std@@A) already defined in main.obj; second definition ignored So, I added ...Show All
Visual Basic I have problems in my registry app, please help?
Hello, I got this application which was compatiable with Visual Basic 6.0 so i upgraded to Visual Studio (basic) 2005 BETA 2 and then it didnt work. What it does you click a command button and it inserts keys to the registry and adds a Shell Context Menu and 'Upload to GuruImages' will appear when you right click a .png file. Could somebody tell me why this doesnt work, and how would I make it insert these keys into the registry on installati ...Show All
Software Development for Windows Vista Dependency Property Problem?
While I see the benifit of using dependency properties to hold onto state during the execution of activities within a workflow, I also see a potential problem. For many workflows, the state that is represented by these properties is actually stored and managed in a SQL Db (legacy app). As a result, if you have a workflow instance with dependency properties that represent a snapshot of the data in the database at a particular point in time, ...Show All
Visual Basic How do I control navigation in datagridview. ie to go sideways on <enter>
When the user presses enter in a cell for a certain column I want to sent the next cell to the next column, like doing a <tab> instead of going to the next row. I have used the keypress event, but this is not fired if the user is in edit mode and presses enter. Anyother action to set currentcell changes the column, but the process still moves to the next row. Does anyone have any ideas. Ok, here goes nothin ...Show All
Smart Device Development waveform audio in pocket pc 2003
Hi all, Today, i make some example to interact with audio in pocket pc device (XDA IIs). I am using: waveOutGetID waveInGetID it always return MMSYSERR_INVALHANDLE. Like that i can use waveOutOpen,waveInOpen and other function. First,when i tested in emulator i thought that in emulator doestn't support audio (while i can use PlaySound from emulator to play wav ). So i test in device,the same result. How can i test for this fun ...Show All
Visual C# Double values in text boxes
Hey, can anyone tell me how i disable users ability to enter anything else but double values into my text boxes which are used for calculations thanks You should either use one of the many numeric text boxes floating around on the web or use a regular expression to validate the data in the text box. Depending on how you want to handle it you can either prevent the user from entering anything invalid or ...Show All
Visual Studio Express Editions unable to update data in a database
Hello! I am using VC#2005 Express and trying to work all off the video tutorials. When I started to work on Lesson09, I encountered a problem: I follow instructions from video lesson, but when I try to update data in a database, I receive an error: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. I use default settings for tableaddapter and dataset, in a same way as in video, and here is ...Show All
Visual C# DLL - What`s that :D
Hey i`m not so good with dll`s in fact i know allmost nothing about them The only thing i know about them that they are programs too and u pass information to them/.. but i dont think that eather good So My Questions Are: 1. What is a DLL 2. How to use a DLL 3. Makeing a DLL (the language) 4. How to know what a DLL contains Thanks A lot Guys !!! Hi, A DLL stands for a Dynamic Link Library. ...Show All
.NET Development Just-In-Time Debugging not working through ActiveX script in DTS package
we do a lot of our coding in ActiveX script tasks within DTS packages. Normally, you can type the keyword "stop" or "x=1/0" on a line, and when you run your script, it forces the JIT debugging window to pop-up and then you can step through and debug your script within .NET or Interdev. This used to work on all of our work computers. It now only works on one remaining computer and we have not been able to figure out what is ...Show All
Visual Basic HELP txt file to textbox, textbox to txt
Hi, I'm working on a program and I was wondering how do you make the txt file you selected to display in a textbox this is what I have now, I know that just opens the open dialog but how do I open the text to textbox1 Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My .Computer.FileSystem.SpecialDirectories.MyDocuments OpenFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" If ( ...Show All
Visual Studio Team System Parsing method body
Hi I am trying to parse a method body in a custom rule for FXCOP and filter some words. e.g. void SomeMethod() { statement1; statement2; statement3; } The method.Body.Statements does not contain the text of the statement. Is there any other method to get the result Thanks That is correct. If you need to perform source-based analysis, you could consider writing a V ...Show All
