jaxDeveloper's Q&A profile
Visual Studio Express Editions How do I prevent the user from leaving a NumericUpDown control empty?
How do I check whether the user left a NumericUpDown control empty, removing the value on it For example, if you go to Control Panel, Display, click on the Screen Saver tab, then click on the Wait: spin box control, you can leave the control empty by pressing Backspace. However, if you press TAB or click another control, the program re-populates the spin box with a value of '1'. In my program, if you press Backspace and leave the spin box control empty, it stays empty. I try to check for a NumericUpDown1 = "" but got a runtime error because of the exception of comparing a numeric value with a string. I pretty much expected that, but I gave it the shot just in case. What's the correct way to check for an empty spin box so ...Show All
Internet Explorer Development Sharing data between different instances of BHO
Hi I work in a single sign on system that uses a BHO to complete logins in IE. In IE6 everything worked fine, but now doesn't It seems that the data used to complete the fields isn't beign received. The data is passed throught a shared data memory area inside the BHO's DLL. The question is, with the new security changes, could be that IE7 doesn't allow sharing data between different BHO instances and a controlling app Each tab haves a BHO instance A BHO can send messages via PostMessage to applications I'm testing the BHO in a XP SP2 so no protected mode is involved. And I'm coding in VC++ Thanks a lot Sebastian To answer some of your questions: Yes, Each tab does have its own instance of the BHO. ...Show All
Visual Studio Team System FxCopCmd /successfile
Do the option /successfile on FxCopCmd work According to help print out on FxCopCmd it should generate a file if the are no problems in the analyses: /successfile [Short form: /sf] Create .lastcodeanalysissucceeded file in output report directory if no build-breaking messages occur during analysis I’m running FxCopCmd with options: /successfile /project:MyProject.FxCop /out:BuildLogs I would expect that a “.lastcodeanalysissucceeded” file was created in the BuildLogs folder when FxCop can not find any problems – why do I not get this file -- Erik Pedersen PS: using version 1.35 Ok, now I got it. The problem was this out option. I called my output file "NorFor.FxCop" and when the output file ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I load a 3d mesh (.x file)?
How do I load a .x mesh into my scene The space game seems to use its own format (which it names .swm), and there's nothing in the help. I've been scanning through through the classes in the Framework namespace, but I can't see anything obvious! Is .x the recommended format for objects like this (If not, I change my question to be about the recommended format :D) If anyone knows anywhere that has some nice .x meshes I can play with, that'd be cool too. The only one I have lying around is a chair, and that's going to look a bit funny running around my game :D Oh, bummer :( So the "old" method, that would've been used in the Managed DirectX stuff won't work I don't mind using the meshes f ...Show All
Visual Basic Custom control problem
This may well show my idiocy but here goes. I decided to build a custom control using visual basic in Visual studio 2005. I created a control library and built a control by dragging a Text Control from the tool bar. I managed to add the properties I wanted and modified the key down and key press events to accomplish what I wanted. The idea was of course to have this custom control available in many areas in a project. I then added the control library to the visual basic windows project. I am able to select the control from the toolbar in the project and add it to forms in the project. This all works (the control works as designed). The problem I have is when I add code to say the got focus event of the control in the project th ...Show All
Windows Forms DataGridView Row Selector box - can it be hidden?
I have a DataGridView set up in read-only mode such that clicking a cell causes the complete row to be selected. Is there some way to hide the row selector column that is shown in the far left column of the grid I don't need it and would like to hide it, or set it's width to 0. Thanks, Al G. ITJ wrote: This helped me, but its a shame it is so poorly named, don't you think thanks, anyway i agree... i also spent a fair amount of time trying to find this property to remove Row Selector column. thanks also! ...Show All
Windows Forms Controlling one form to another
Hi, Is there any way to control parent form from child without using showdialog(). I am not using MDI form. suppose I opened Form2 from Form1. Now I want to change some property of Form1 from Form2 then how is it possible Hi, Simply make a public property in form2 which it's type is form1 then set this property of form 2 to "this" in form1 before opening the form2. here is what you need to have in form2: //Don't forget that It's better to use accessors for property members of a class public Form1 CallerForm; and have this in caller form: Form2 form2 = new Form2(); form2.CallerForm = this; form2.Show(); then you can change any property of form1 in form2, for example: this.CallerForm.T ...Show All
Visual Basic Receiving strings from Serial Port
Dear reader, I want to read a string from a serial port. I found the sample code in Help, to do this, with the following code: Using com1 as IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM1") do Dim Incoming as String = com1.Readline() If Incoming is NOthing then exit do Else returnStr &+ Incoming & vbCrLf end if loop end using The problem is that if the return string does not end with LineFeed, the com1.ReadLine command does not return to the application, and as a result doesn not return any value to Incoming, to check it contents. The application give the impression that it is just hanging, untill I stop the application. Also how does the Read ...Show All
.NET Development workaround for halfopenlimit
Hi Dose any one know whether .Net provides any method to communicate with devices Something that can be used in place of DeviceIOControl api call to get properties . I am trying to find way to incresase th number of HalfOpenLimit that was placed on windows xp and it has severly impacted online gaming expereince I came across code to that but it was in Deplhi. I am trying to write a code in vb.net . or dose any one have code in any .Net language ...Show All
.NET Development Memory leak Win32 heap
All, We have a serious, and very difficult memory problem: We have build a .net program in C# wich bundle files and exports files. This all trigered via an Oracle database connection. The program is well tested on several servers (first a development, then acceptance server). followed by the release on the production servers. On the development and test server, there was no single memory problem. But when we start the program on the production server, it takes immediate more memory (10MB on test, 20 MB on prod) even when it has nothing to do (no queue messages on the Oracle queue). When we start using the program, the free memory on the server decrease very strong. We used following tool to find where the memory is go ...Show All
Visual Studio Crystal Report group header problem
I have designed a crystal report in VS 2003. I have a group with group header. This header is displayed whenever the group is displayed. But I need the page header with the list of field names to be displayed after this group. Also, I need the group header to be displayed only at the starting of the group but not in any of the pages. I tried placing the list of field names in the group header. This didn't work as the group header is not being displayed in each and every page. Is there a way to place the page level 'list of names' after a group header and also display in eacha nd every page Any help is appreciated. Thanks Basani You can probably use the built-in function "InRepeatedGroupHea ...Show All
Visual Studio 2008 (Pre-release) Writing about performance?
Hello! How is it now, we may not write about performance issues here, but should write about such things to the Microsoft Connect forum, or may we write about performance aspects here as well Best regards, Henrik Dahl Hello Atul! Thank you very much for your reply. It's very nice you've fixed it. Are you able to tell the magnitude of when we should expect the new version I think that I must admit that as I see 40 minutes on a dual core cpu for inserting three rows my first idea is NOT that this should be optimized. My first idea is that this is probably solved fundamentally wrong if solved at all. Best regards, Henrik Dahl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT audio sounds cutting out
Hi all, I have a static class I'm using to play sounds loaded in the content pipeline through an xact audio project. In my game, several of the same sound can be played within a few milliseconds of each other. They're basically explosion sounds. Now when I hit more than three of these objects and they play their sound within a short space of time, the sounds cut each other out and sometimes don't play at all which is very poor. I'm not limiting instances in the audio project although I've tried every permutation of this I can think of anyway. I know about the garbage collection issue when using cue objects that aren't referenced etc. but I'm actually just using soundbank.playsound and not getting the cue object at all. ...Show All
Smart Device Development how to send SMS on compact framework
how to send SMS on compact framework hi, look this sample how to send sms using .net compact framework using Phone API. best regards, ...Show All
Visual Studio Team System Overriding a custom property in csproj from tfsbuild.proj
Hi, I'm trying to do something simple, which I just can't get to work... In my .csproj file, I have the following: < Choose > < When Condition = " $(AUTHENTICATION_USERNAME) != '' And $(AUTHENTICATION_PASSWORD) != '' " > < PropertyGroup > < ConnectionParams > -U $(AUTHENTICATION_USERNAME) -P $(AUTHENTICATION_PASSWORD) </ ConnectionParams > </ PropertyGroup > </ When > < Otherwise > < PropertyGroup > < ConnectionParams > -E </ ConnectionParams > </ PropertyGroup > </ Otherwise > </ Choose > The idea being that if the USERNAME and PASSWORD properties are set, then it uses one format, otherwise it uses the sqlcmd -E ...Show All
