yongsim's Q&A profile
Windows Forms Custom Columnt type, painting bug
Hi i did custom control as was shown in http://www.windowsforms.net/Forums/ShowPost.aspx tabIndex=1&tabId=41&PostID=20613 now i have painting errors - only cells in edit mode are painted, all other cells are not painted at all! i used RichTextBox as base for cellcontrol. whats wrong i have visualC# express 8.0.50110.28 .net fwk 2.0.50110 i actually got the reason: it seems that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C++ or C# ??
I've been programming professionally for 8 years - all web and business programming in ASP, ASP.NET, and Java. I have a very solid knowledge of OO application development but I'm simply not challenged. The apps are all the same - build database, put front end on database to present data, allow data to be edited/updated, allow data to be deleted. Wash-rinse-repeat. I've been a gamer since I was 8 and I still play games like mad (own a PSP, DS, Xbox, and XBox360). It seems to be the only thing that has really stuck with me (I know, pathetic for a 36 year old! ) and I feel like I need to modify my skillset and break into game programming. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Terrain Rendering
I have a quick question... What are some of the best/simplest ways to render large terrains for games such as a MMO or a FPS like Far Cry I have skimmed over some LOD stuff using quadtrees and this seems to be ok but I was thinking of using an LOD technique that changes with distance from camera. I am not sure what this is called. But i was wondering if this would be a good way to go about it. Thanks in advance. Sorry to hijack a bit here. But I have heard abou streadmin/paging before, but it is hard to find any info on it. Info like, how big should the terrain parts be, and how do you load the other terrain In an other thread with low ...Show All
Smart Device Development Visual Studio 2005-Connecting Windows CE.NET Device
Hi Guys I am trying to install a Visual Basic 2005 application on a windows CE.NET device. I cannot see a CE.NET device in the list so I tried selecting Windows CE 5.0. It gave me a message cannot create a file as the file name already exists. Is there any option to connect to a Windows CE.NET device Any inputs will be highly appreciated. CE 4.x (AKA CE.Net) is not supported by VS 2005. NETCF V2 SP1 currently in beta would add CE 4.2 runtime support. Please see this for more info: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=362741&SiteID=1 ...Show All
Visual Studio MenuCommand doesn't fires event
Hi, I have created few menu commands. I am able to work with them in QueryStatus and Exec command but suppose if i register an event with them it doesn't works. the wizard sample is working file here is a sample code :- OleMenuCommandService mcs = GetService( typeof (IMenuCommandService)) as OleMenuCommandService; if ( null != mcs) { // Create the command for the menu item. //CommandID MyMenuCommandID = new CommandID(GuidList.guidMLPackageCmdSet, PkgCmdIDList.cmdidAddMyFile); //CommandID My2MenuCommandID = new CommandID(GuidList.guidMLPackageCmdSet, PkgCmdIDList.cmdidAddMy2File); CommandID MyMenuCommand ...Show All
.NET Development .NET Framework 2.0 dependencies
When I install .NET Framework 2.0 on Win2000 SP1 machine, a popup dialog appears saying that it require MS Installer 3.0. When I install MS Installer 3.0 on that machine, it then require Win2000 SP3 which is big group of components. I am surprised when I try to deploy my .NET 2.0 application to customer's Win2000 or lower computer, there are big group of prerequisites needed. Honestly, I am not dare to do Win2000 SP3 upgrade to customers' computers. Any suggestion I don't think we can draw any conclusions about what the shipping Framework 2.0's final requirements will be. It is possible that the curren ...Show All
Smart Device Development Hotkeys in .NET CF
I want to setup hot keys in .NET CF as the device I'm using has a keyboard. Any tips/recommendations to deal with hotkeys in .NET CF Figure this would be useful for anyone writing .NET CF apps as it'll speed up UI. Thanks, Jeff. Hi Jeff, You can via P/Invoke tie into WinCE’s Hot Key functionality. See http://msdn.microsoft.com/library/default.asp url=/library/en-us/wceshellui5/html/wce50conaccessibilityhotkeys.asp for more information. If this does not completely answer please respond with the specifics of your solution. ...Show All
.NET Development how to keep connection live while using httpwebrequest?
hi i am using httpwebrequest and httpwebresponse to send request and get response respectively. i want to keep connection live after sending one request in order to send another request using same channel. so plz help me. HTTPWEBREQUEST.KEEPALIVE = TRUE is not working. by Default as u might be knowing it is set to true can u post some code that shows the problem. ...Show All
Visual C++ MSVCR80.DLL Unable to locate component
Hi, I am trying to use Visual C++ 2005 to build the project which was create by Visual C++ 2003. When I run the code, an error message pops up. "MSVCR80.DLL - Unable to locate component" who knows how can I fix this problem Thanks a lot! Yang Yang. wrote: Hi, I am trying to use Visual C++ 2005 to build the project which was create by Visual C++ 2003. When I run the code, an error message pops up. "MSVCR80.DLL - Unable to locate component" who knows how can I fix this problem Thanks a lot! Yang Are you running that on a different machine Or on the same machine that has VC++ 2005 inst ...Show All
.NET Development Is this a bug in IPAddress?
I have recently run across something that appears to be a bug in the IPAddress class. I am including a source example below. In short, the IPAddress class will return a byte array using the GetAddressBytes() method, however, that byte array can not be used in the constructor of another IPAddress object. It looks like IPAddress requires the byte array used in a constructor to be 16 bytes, but the one returned by the GetAddressBytes() method is only 4 bytes. In addition, another minor bug is that when the class throws an ArgumentException, the Message property is set to the parameter name, and the Parameter property is s ...Show All
SQL Server Update Statement not working
I've got the following update statement: UPDATE ISSUE_ACTIONS SET BAE_FLAG = 2 WHERE IA_ISSUE_NO = 399 AND IA_SEQUENCE = 20 The fields BAE_FLAG, IA_ISSUE_NO, and IA_SEQUENCE are all of the type int. When I run this code inside of my windows app (C#), cmd3.CommandText = "UPDATE ISSUE_ACTIONS " + "SET BAE_FLAG = 2 " + " WHERE IA_ISSUE_NO = 437 " + "AND IA_SEQUENCE = 13" ; try { cmd3.ExecuteNonQuery(); } catch ( Exception e) { throw (e); } I get a timeout error: Timeout expired. The timeout period elapsed prior to completio ...Show All
SQL Server Where has my SSIS Package gone?
I created a Package in the Import\Export Wizard, requested it be Saved on the server, and ran the package. But I can’t find any trace of the Package under SQL Server Management Studio. Where has it gone TIA, Barkingdog P.S. I remember the “old” days of sql 2000 where packages were proudly displayed, prominently, under the ”Data Transformation Services” option folder. Sigh ); Packages have more reason to be proud now - SSIS has its own object explorer tree, not just a node under SQL Server. See the whitepaper at: http://www.microsoft.com/technet/prodtechnol/sql/2005/mg ...Show All
.NET Development System date
Hi there.. In my program I want to show show the current system date in a textBox. How can that be done I read about DateTime structure but couldn't understand it well. Thanks in advance. Hello. You would just need to do something like the following: this .textBox1.Text = System.DateTime.Now.ToShortDateString(); ...Show All
Visual Studio Tools for Office Excel VBA Freezepanes
Hi, I have an Excel 2003 model where I create and work in two windows. At the end of a module, I freeze panes at cell B10. This works in window 2 but not in window 1. Code for both windows is identical. The pane freeze at the end of the sheet. The code is as below. Application.Windows(1).Activate Worksheets(ActiveWorkbook.Worksheets.Count).Activate Range("B10").Activate ActiveWindow.FreezePanes = True 'change zoom for window ActiveWindow.Zoom = 75 Any help would be greatly appreciated. Thanks. I recommend that you post your question to a forum that deals with Ex ...Show All
Visual C++ Getting Error - Regarding stdafx.h
I'm trying to fool around with the new Visual studio version (2005 Beta 2) and for some reason it keeps telling me: \Practice.cpp(1) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory A long time ago someone told me to go into the properties of the project and change the default to CLR support. I did this time but it doesn't seem to build. Can someone tell me what to do Here is my code: #include "stdafx.h" #using <mscorlib.dll> using namespace System; int _tmain() { int Number = 5, Number2 = 0, Number3 = 7; int sum = 0; Console::WriteLine( "hello world." ...Show All
