user11's Q&A profile
Windows Forms how to add n number of rows (with controls) in tablelayoutpanel at runtime?
i want to add 'n' number of rows (with specific controls) in tablelayoutpanel at runtime...(i come to know about exact 'n' at runtime)....how do i go about doing this i am using vs 2005, c#. thnx. Simply set the RowCount to the wanted number of rows... Once you read up on the GrowStyle property it will become obvious :) ...Show All
Visual C++ Very slow linking on VC2005
We have been using VC6 for a very long time for our 1M line program. When vc7 became available we ported the code to this platform. After sitting back and waiting for 5 minute links for a couple of months we went back to vc6 with a sob. The reason was the /PDBTYPE:SEPT being removed. Now that vc8 is available we again ported all of our code up, an effort that has taken about a manmonth so far. We had seen some posts on MSDN where Microsoft people indicated that slow linking on vc7 was a concern, so we had some hopes that the bubble sort causing all this was being replaced... All to be faced with what is now a 9 minute link time. It is becoming increasingly impossible to go back to vc6 again as we also link third party librar ...Show All
Smart Device Development how to detect if phone is "turned off"
Hi folks, Some of our customers have reported a strange intermittent problem with thier WM5.0 devices. Apparently our application loses it's GPRS connection, and when the user tries to make a call, they are informed that the phone is "turned off" and they are asked if they want to turn it on. Once they do that, our app reconnects and starts sending data again. The app works fine after a device starts up, this happens after the device has been working for a while, it's almost like the device has gone into flight-mode. 1. Any ideas why this might be happening 2. Is there a way we can programatically (vb.net 2005, .netCF 2.0, WM5.0) check to for this condition and turn the phone back on Our app will try to send data ev ...Show All
Visual C++ First-chance exception... access violation... debugger winds up in malloc
Hello all, I keep getting an exception whenever calling 'new'. I'm implementing the singleton function and I have a static * p initialized to NULL. When the 'getInstance' method is called, if the static * p is still initialized to NULL, I call p = new P(); At that point I get a First-chance exception ... access violation message and my debugger tells me the problem is in this function: void * __cdecl _malloc_base (size_t size) { void *res = _nh_malloc_base(size, _newmode); RTCCALLBACK(_RTC_Allocate_hook, (res, size, 0)); return res; } at the line "void *res = _nh_malloc_size...." My program stops running at this point as well. I have error messages that will print just before the new call, but not at the beginning of the constructor ...Show All
SQL Server How to know if SQL Server 2005 trial version is installed?
When I ran @@version I get this: Microsoft SQL Server 2005 - 9.00.2047.00 (Intel X86) Apr 14 2006 01:12:25 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 1) I assume this is a licensed version because the std edition does not have a trial license Can someone confirm this If this were a trial version, what could I expect to see Prior to expiration of the trial version, you can upgrade to the full version by using the SKUUPGRADE command-line parameter as documented at http://msdn2.microsoft.com/en-us/library/ms144259.aspx . You can determine you have the evaulation version by running this T-SQL command against the server: SELECT SERVERPROPERTY ('Edition') ...Show All
Visual Studio Created Items not accessible even after target exits (MSBuild Tasks Properties attribute)
The Project File < Project xmlns = " http://schemas.microsoft.com/developer/msbuild/2003 " DefaultTargets = " foo;bar " > < ItemGroup > < X Include = " 1;2;3;4 " /> </ ItemGroup > < Target Name = " foo " > < MSBuild Targets = " little_foo " Properties = " P=%(X.Identity); " Projects = " $(MSBuildProjectFile) " > < Output TaskParameter = " TargetOutputs " ItemName = " Z " /> </ MSBuild > < Message Text = " [foo] @(Z) " /> </ Target > < Target Name = " little_foo " Outputs = " @(local) " > < CreateItem Include = " $(P) " > ...Show All
Smart Device Development Are background processes supported by Smartphone 2003?
Hello, I don't know if develop for Smartphone 2003 2nd edition or for WM 5 Smartphone (because of availability of the devices). Now, a doubt has arisen: Can I use applications running in the background In the msdn page, in the " What's New in the .NET Compact Framework 2.0" area, it shows: Background Threads The .NET Compact Framework 2.0 adds support for background threads. Background threads are threads that do not prevent a process from terminating whereas foreground threads will keep a process active until all foreground threads are terminated. Setting a thread's IsBackground property to true makes that thread a background thread. Then, does it mean that background processes are not supported for Smartphone 2003 ...Show All
Windows Forms C# and SQL Express Edition, Inserting values to table help.
Hi, this is my first post. I'm just learning c# and just did the learnvisualstudio.net free tutorials on C# and SQL and so know how to view data in tables and modify it using some code. But what I want to know is how to add a record using the same method. What I did was use a dataset with the tables in to produce a form and then added a button with this code on the click function of the button: Yes, after the Insert. You might also allow the user to make several local changes and execute some save command with a button or menu command to update the server data. -- SvenC ...Show All
SQL Server SQL Server 2005 Express - query is (sometimes, at random) slow
Hello, I have an odd problem while using SQL Server Express 2005 which is driving me potty. I have two queries on a view: SELECT * FROM viewName I retrieve rows OK in less than a second. I also have a second query like: SELECT * FROM( SELECT TOP 2 * FROM( SELECT TOP 2 * From viewName T0 ORDER BY T0.VERSIONID ASC ) AS T1 ORDER BY T1.VERSIONID DESC) AS T2 ORDER BY T2.VERSIONID DESC The view has no joins etc - it is just a table with some columns renamed, and no where clause. There are two records in the view. Normally both queries take less than a second to return. However, every so often (apparently randomly), SQL Server seems to go into a 'slow mode' which lasts about half an hour. During this time, the second of the two queries can take u ...Show All
SQL Server Using Merge Replication, Parameterized Filters
Dear ppl, I am using Merge Replication between SQL Server 2005 (Publisher) and Pocket PC (SQL Mobile 2005-Subscriber). I have a Windows Mobile appliction on the Pocket PC that replicates data from the server. I am using SqlCeReplication class on the Pocket PC application to synchronise the data. By default, when i call the Syncrhonise() method, it pulls all the data from the server. What I want is to pass a parameter from the Pocket PC and filter the data based on that paramter. E.g. from the Employee table, I want only those Employee that belongs to a CompanyID that I pass as a parameter. Is there a way to do this, so that i can pass parameters from my PDA application (Windows Mobile), and make the Filters specified in the Pu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. EffectParameters
Is there a performance advantage when setting an EffectParameter as spacewar did such as On create: worldParam = effect.Parameters[ "world" ]; then in render: worldParam.SetValue(World); versus the following in render without create effect.Parameters[ "world" ].SetValue(World); Those should compile into exactly the same thing, ultimately. It really just comes down to which is more readable to you in a particular situation. ...Show All
Visual Basic textbox to textbox #2
i am working with one form, i want the text inputed by a user from one textbox to be displayed in another read-only textbox here is the code: i would like to have the readonly textbox display the current input textbox text and the previous readonlytextbox text so i would imagine it would be something like readonlytextbox.text = inputtextbox.text + readonlytextbox.text thanks for your time Private Sub inputTextBox_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles inputTextBox.TextChanged readonlyTextBox.Text = inputTextBox.Text End Sub ...Show All
Visual Studio Code generator custom tool that uses FileCodeModel ?
Hi, I am trying to write a custom tool that operates on a .vb or .cs file and generates a new file based on some information gathered from the parsed file. To accomplish this, I am using a code generator that gets the FileCodeModel of the project item like this EnvDTE.ProjectItem projItem = (EnvDTE.ProjectItem)codeGen.GetService(typeof(EnvDTE.ProjectItem)); return projItem.FileCodeModel; Where codeGen is a proxy to a BaseCodeGeneratorWithSite (standard class floating around "everywhere"). I manage to get the FileCodeModel successfully, and my code generator generates the correct code now. Problem is, every so often, Visual Studio 2005 crashes when the code generator is run. By crashing I mean it disappears completely from the ...Show All
Visual Basic Problem using the contains function
What am I doing wrong, the code below keeps giving me an error when I'm debugging, stating "Conversion from string "personslastname" to type 'Integer' is not valid.", but I never defined an integer...... If CCPD.Main.MainUC1.Child_Information_DatabaseDataSet.Child_Information.Rows.Contains( "LastName" (TextBox2.Text)) = True Then MessageBox.Show( "this message indicates an attempt to save data to an existing datarow." ) The yellow highlighted area is what is highlighted by the debugger. Instead of the oledb namespace then use the same classes and methods in the sqlclient namespace TheQuietShadow, I am confused also, you have asked the question about a problem using the cont ...Show All
Visual Studio Express Editions Add New Item: Search Online Templates... Are there NO templates available online???
Okay I will preface this by stating that I am just using Visual C# 2005 Express Edition (the kiddie version)... When I go to the Project menu and choose Add New Item... I am presented with a dialogue that resembles the following: This is definitely a usability issue, sorry. The search hasn't been performed yet as you need to specify what you're searching for, then do the actual search. We do have online templates available for Express, primarily in the form of Starter Kits. You can find a list of C# Express friendly Starter Kits at http://msdn.microsoft.com/vstudio/express/visualcsharp/starterkit/default.aspx . Do we need more Yes, and we're working on it. If you have any ideas on what you'd like to see, let me know Than ...Show All
