akira32's Q&A profile
Visual Studio Express Editions Showing "1 000" instead of "1000" in textbox.
OIkai, this might be very simple, but I have a textbox with "1000000" in it. And I want it to be shown as "1 000 000". There must be a way to get the data out and change it, and then put it back in the textbox again. Anyone know how And question 2, I found a old vb6 code: If KeyAscii > 26 Then If InStr("0123456789", Chr(KeyAscii)) = 0 Then KeyAscii = 0 Its for making a texbox accept numbers only, but it keeps giving me error on KeyAscii. How can I make it work in vb exp bankbalanse.Text = Trim(Format(CLng(bankbalanse.Text), "# ### ### ### ###")) It made this error: System.StackOverflowException was unhandled But the strange thing is, it only make that error when I add more than one of those codelines. If I like add another to an ...Show All
Visual Studio Toolbox customization
I have built some custom controls and would like them to show up in a group that I specify in the Visual Studio (2005) toolbox. Right now they end up in a group called "[My Solution] Components" but I want to create and name a new group. Is this just an attribute I can specify on my controls I would appreciate any advice Have you had a look at the new Toolbox Control sample It shows how to add a regular control and a web control onto the toolbox and it has a wix-based setup example as well. You should be able to find it under \VisualStudioIntegration\Samples\Controls in the latest VS SDK. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. device type : Reference
How can i create a GraphicsDevice with DeviceType.Reference How i can attach this graphic device to the GraphicsDeviceManager thanks. ...Show All
.NET Development Hash Table - Kindly help me
Please help me in creating hash tables with value directed to another hash table. Kindly quote some websites which contain such source code. In .NET 2.0, use the System.Collections.Generic.Dictionary class. It uses a hashtable under the hood. The MSDN docs have lots of examples. ...Show All
.NET Development SqlConnection Problem
I have a program that connects to a SQL database. The program works fine when run on the same machine that has the database, it also works when run under the debugger (Visual Studio 2005) on a different machine. The problem is that it throws an exception when run from the command-line on a different machine (and I have tried several): The exception stack is: Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Data.SqlCl ient.SqlConnection' threw an exception. ---> System.TypeInitializationException: The type initialize r for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception. ---> System.TypeInitializatio nException: The type initializer for 'System.Data.Sq ...Show All
Visual Studio Express Editions weird exception
THe below codes create an Access violation exception which I could not fix ptmp = a; sortedlist=a; //process of joining both lists, into a single list begining at a while (ptmp->next!=NULL) { ptmp=ptmp->next; } ptmp->next=b; Would you please help me Thanks There is full list of node whose head is a. p =a; then we pass through the each nodes to reach the last part and then we can merge/stick the second list of nodes to the " p ". ...Show All
SQL Server No internet search findings
When doing a search I do not get any of the internet findings (Questions, MSDN Online, and CodeZone Community). Does anyone know why this happens There is an error message: The request failed with HTTP status 407: Proxy Access Denied. Is there a way around this I can access the internet in the Document Explorer. Thanks, Fred It could be that your firewall settings are not letting the BOL client get to the Internet. Check to make sure the Books Online Client is allowed out of your firewall. Buck Woody ...Show All
Visual Studio How to change value for %RecursiveDir ?
When deploying our solution we have to copy different folders into a deploy folder. As the application runs on compact framework too, we have special directories for net and netcf within the source directory. Directories only needed for net have the suffix .pc whereas directories needed for netcf have the suffix .mobil e.g: C:\Test\A\config.pc\*.* C:\Test\A\forall\*.* C:\Test\device.pc\*.* C:\Test\interface.mobile\*.* In the deploy folder i do not need the suffix anmore. The example above should be deployed that way for net: C:\Deploy\A\config\*.* C:\Deploy\A\forall\*.* C:\Deploy\device\*.* This is what I do in my msbuild file ($(Suffix) holds pc or mobile): <!-- Create Item --> <CreateItem Include="$(MSBuildProjectDirectory ...Show All
.NET Development problem with .Net code running on framework 1.1 stopped working on 2.0
Hi, I have an application built on VB6.0 using VB.Net dll built on .Net framework 1.1. It has a piece of code in .Net that downloads a file from database using System.IO.BinaryWriter and saves on Windows folder. It's fine working when .Net framework 1.1 is only my system but started downloading the files with 0 bytes(though the files is 73 KB) after installing .Net framework 2.0 Can someone let me know what could be the reason for this issue and how to fix/make my existing application work for all the the versions of the .Net Framework. Please post me if you have any references/links for this Thanks in advance Esh Michael, Here is the function that causes the problem... this ...Show All
SQL Server Msg 3910 Transaction context in use by another session.
We are testing SQL 2005 SP1 in a multi-server environment. Stored Procedure 'A' is executed on server.database 'A'. It calls SP 'B' on server.database 'B'. SP 'B' in turn calls SP 'C' which is back on server.database 'A'. So in essence A calls an SP on B, which calls an SP back on A. Linked servers are present on both servers to enable these cross-server calls. This scenario works in our SQL 2000 environment. In the SQL 2005 environment, we get the Msg 3910 message stated in the subject. Is this truly a 'loopback server' situation and if so, why does it work in SQL 2000 Did this functionality change in SQL 2005 In SQL 2005 SP1 This may seem to be a klugy way to do things but unfortunately, it is a core part of our application securi ...Show All
Visual Studio Team System Custom rule
1 Can i write a custom rule to check after keyword "return" and "goto" ,there is no "()" for instance return (a) ;is wrong return a; is right 2 To check "{}" is exist when "if" and "for" has one statement for instance if (a == b) return a; -- is wrong if (a == b) { return a; } -- is right You can use String.StartsWith to check the name of your property (you'd do this in a Check(Member) rule). FxCop does not expose a mechanism to determine whether a token constitutes a verb or adjective, though. ...Show All
Windows Live Developer Forums Custom pushpin images not showing up in 3D mode
Hello All, Each pushpin I map has a custom image and that image shows up fine in 2D mode but is replaced with an orange thumbtack or something in 3D mode. Has enyone seen this before is there a solution TIA Andrew You need to use a full path, not a relative path for your image URI. The 3D control doesn't know the base URI to add to relative paths. This should be documented in the SDK. Also, the 3D control does not have access to any local files (security restriction). ...Show All
Software Development for Windows Vista Help: Vista RC1 install problems Build 5600
hello not sure if this correct area for this is I get blue screen of Death when RC1 reboots at completing install. Don't know why screen blows by so fast can't even read errors. I did have Beta 2 installed but not all the correct drivers but it was running. Any help 74 gig raptor is split partion for xp and vista, have an additinoal 320 gig WD drive if that helps for reasons why Sata drives. Oh and I did an Upgrade install and clean drive install hanged both times. Abit AN8 32x, BFG 7950 GX, AMD FX -60, 2 gigs of Corsair DDR ram 74 gig Raptor im afraid these are the incorrect forums. The best place to ask your technical issue is ...Show All
.NET Development Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
Hello, Is possible to "change" the sub created by a button, for another sub I mean... Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click Public Sub ConnectSocket() ... Changing the first, for the second, what is the handle And how can I do it Because I need to make an action that now is being executed by pushing a button in a form, and I want it working calling a sub that does the action.. Now, i've changed the definition, and i get the error Cannot block a call on this socket while an earlier asynchronous call is in progress. but before in the: Clientsocket.Send(bytes) it shows me an error: A first chance exception ...Show All
Visual Studio Incorrect Disk
My computer's hard drive (Boot Drive) failed. I found myself starting over. I am installing Visual Studio 2005 and MSDN from a network share and I keep getting "You have inserted the incorrect disk. Please insert MSDN disk 1." Does anybody have any ideas as to how I can get past this I followed the instructions found in the readme.htm as best as possible.. (The Visual Studio IDE installed fine.. It is the MSDN that keeps failing..) Thanks.. Hello Dave, are you installing MSDN via the "Install Documentation" shortcut that's part of the VS 2005 setup, or launching MSDN setup independently You may have more luck with the latter. ...Show All
