Shubham's Q&A profile
Visual Studio Express Editions What component for a table of strings?
So, I want to display a table of strings, and let the user edit them. What component suits best here I looked at the DataGridView, but it seems either too complicated or I didn't find a simple enough yet workable example I quess I am asking either a suitable component, how to use an array of text edits or how to use the DataGridView to achieve the equivalent of Component[x,y]="string at x,y position"; SomeString= Component[x,y]; Thanks again! Wow, this is even easier than I tought it would be! Thank you for your help. I find myself likng this Visual C# more and more every day. ...Show All
Visual Studio Express Editions Book Recommendation to Learn C#
Hi Everyone, Anyone know of a really good book on learning C# 2005, that is easy to read and understand, without a lot of fluff and page fill Two that I have been looking at are "Learning Visual C#, 2nd Edition, by Jesse Liberty, and the Microsoft Visual C# 2005 Step by Step, by John Sharp. Both about 500 pages. I have the MSPress "Visual C# 2005 Build a Program Now", that the Express CD comes with, but need more information about things like delegates, interfaces, abstraction, collections, etc. that are to the point and won't put you to sleep in less than 1 page. Any thoughts would be very much appreciated. Tha ...Show All
SQL Server Table created in SQL Query Analiser won't work
Hi all, We're facing a rather strange problem here: Oe of my colleagues is trying to create a table using Sql Query Analiser. the "create table" command returns no errors. But when we try to access the table, it says it's an invalid object name. I've checked sysobjects, and the objetc is there. Can someone give me any clues Thanks Can you include the 'create table' command that was used Chances are that it was created in the user's default schema, or in a schema other than 'dbo' and your default schema's don't match...if you can get the schema that the table was created in, try ...Show All
SQL Server Variables Not Seen In Custom DataFlow Destination
I have run into a HUGE problem (possibly a BUG)! I have a custom XML Destination script which uses a FILE Conn to send to another path using the original file name. (found in my foreach container (varFileNm) The problem is that my destination will not use the value found for the varFileNm. I can see the value just fine in the Flat File Receive, but I can't see the value in my custom XML Destination Script using a File Conn (also tried a Flat File Conn for laughs and giggles) In additon, I have tried several other ways to set the varFileNm to some value (both dynamc & s ...Show All
Visual Basic How to set a control's visible property.
I have a form that has a combo box with 7 items and also has 7 group boxes. Basically, I would like the user to click an item in the combo box and have the corresponding group box appear. If the user clicks a different item in the combo box, then I want the visible groupbox to become invisible, and the new corresponding groupbox to become visible. Could someone help me out with the code Instead of a hardcoded Textstring being used to call the DisplayGroupBox function you would use the combobox text property Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As Sys ...Show All
Windows Live Developer Forums WLM Invite PLz.....
Last week, the Messenger team offered Windows Live Messenger Beta invitations to the first 5 people who submitted Activity Apps that passed the provisioning process. Drum roll please... And the winners are: 1. Notesaic by Daniel Tse 2. Quatro by Chris Weeink 3. Boter kaas en Eieren by Glenn Klijn 4. Let's Play Chess by Prasad DV 5. CooperYoung by Frans-Willem Hardijzer Congratulations to the winners! You will be receiving your beta invitations shortly via the email address used when you submitted your application to the contest. Keep the apps coming! The Worlds Best App contest continues until midnight (PST) December 31, 20 ...Show All
Windows Forms How to improve Listbox performance in ADO.NET 2.0?
I have a bunch of listboxes on my windows forms with a couple of thousand records in each one of them. It takes almost about a minute to load a form in .NET 1.1 We are migrating the application to .NET 2.0 and was wondering if there is any way to improve the performance in ADO.NET 2.0 so that the listboxes are loaded faster in .NET 2.0 I tried running speed test as per: http://msdn.microsoft.com/msdnmag/issues/05/11/DataPoints/default.aspx fig=true#fig6 and was really satisfied with the promising results. Please let me know if you have general tips / suggestions to improve performance of ADO.NET Windows Forms Application in g ...Show All
Visual C++ Impersonation and printing
Hi. I'm developing an app which runs as a different user through LogonUser/ImpersonateLoggedOnUser, and which has to print a page at some point. It seems that unless the "original" user is the same as the "impersonated" user, the printing will not work. Depending on the printer driver I'm using, I get nothing, or a blank page, or a strange error message (pdfmachine, for example, says "cannot find the specified file" in a window where it says - falsely - that the printer driver isn't running). If I RevertToSelf right before calling EndPage(), then everything work. Here's the code I'm using for printing - fairly straightforward. // imperson ...Show All
Visual C# get the next value of identity
Hi how can i now in sql.. what will it be the next value of identity try: SELECT MAX(ID_COLUMN) FROM TABLE_NAME This gives the current max, so add 1 for the next value. ...Show All
Windows Forms TableLayout control
I'm testing the TableLayout control. I must say the basic idea is stupendous, an analog of the HTML table for WinForms. The only problem I have with it is where the analogy stops. Maybe I'm not getting something right about this control but I find myself wishing I could get direct access to rows and columns (like in the web, server-side table control). I was specialy looking to remove entire rows by doing something in the idea of "myTableLayout.Rows.Remove(2)". Instead I just have access to the collection of controls contained within the table. I can work out something similar but tha means: 1- Looking for or explicitly calling the controls ...Show All
Smart Device Development Read specific line from a file?
Hi, Is there a method to read a specific line of a text file The StreamReader class does not seem to have a method to do so. The Peek method isn't what I'm looking for either. Would appreciate your help. Thanks. Will threading help If you know in advance what is the file to be processed, you can start a thread to index it first. I did a simple test program, and indeed, with indexing, reading any line is extremely fast. In my program, if the user wants to read a line that has been indexed, the result is displayed immediately, otherwise, a timer is started to repeatedly check if the line has been indexed. Here ...Show All
Visual Studio 2008 (Pre-release) VS2005 Extension fro WinFX Installation problem
I've got an issue with VS.NET 2005 (RTM) extensions for WinFX Nov CTP: Here's the path I use for the extensions: http://www.microsoft.com/downloads/thankyou.aspx familyId=2202a637-2b68-40c0-b3ae-9235d60f42c4&displayLang=en&oRef=&Hash=T3PTRQ7 Here's the message I recieved: Setup has detected that a prerequisite is missing. To use Microsoft Visual Studio 2005 Extensions for WinFX you must have the WinFX runtime installed. Please install the WinFX runtime and restart setup. Hmm... Aparently all the examples from Nov CTP are working just perfect, I've installed all the stuff (Runtime + SDK) onto a clean PC - what co ...Show All
Visual Studio Team System Difficulties in getting Code coverage information
I am testing ASP.NET web controls and am facing difficulties in getting code coverage information from my tests. For testing our web controls, I am using the [HostType("ASP.NET")] and [UrlToTest(" http://localhost/TestSite ")] attributes in my test projects to either test a website that has these webcontrols, or dynamically add these controls to a empty test website and test their properties and methods. So my project structure is like this c:\> - InetPub -wwwroot -UnitTestWebSite & ...Show All
Visual Studio Local mode and good instructional material
I am using VS 2005 (VB) strictly for client/server winform applications. I need a good report writer and Reporting Services seems to be it. However, I have noticed that the books that are available (at least the ones I've seen) kind of skimp on what to do and how to do it when it comes to writing reports in local mode. It seems that SSRS was writtein primarily as a web or network solution and that writing applications locally is kind of an after thought. Are there any books or white papers that talk more about the issues specific to local mode For example, paramters. They seem to be handled in an entirely different way in local mode as ...Show All
.NET Development EventLogPermission
I am getting an EventLogPermission exception when calling my assembly from an ASP.NET 2.0 app. I tried setting the assembly to FullTrust via caspol.exe, but I still get this exception. Firstly, I am not attempting to log from ASP.NET directly, but from a dependent assembly (albeit in the same process space - effectively the same thing, I assume). I am loading the web app and assemblies over UNC. I am also impersonating a Domain Admin account in my web.config. My trust level is the default setting of "Full". I have tried various caspol commands such as "caspol -m -fulltrust \\mydomain\dfsroot\dfslink\myapp\bin\myassembly.dll " with n ...Show All
