RajatTalwar's Q&A profile
Windows Forms Populating Textbox from Combo Box Selection
Friends, Looking for suggestions on how to populate a textbox based on a combo box selection. My instinct tells me that I will need to have two seperate data tables...One to populate the combo box with values from a data table and another against the same data with a query parameter. For example, my combo box contains values from data table called Departments. In the combo box I would like to display all the department numbers available... ...Show All
Visual Studio Express Editions Unexpected end of file problem
Im reading a tutorial at cplusplus.com and Ive got this code: #include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; } And so I go to build and then build solution because im pretty sure thats what you have to do before compiling and I got this: ------ Build started: Project: example2, Configuration: Debug Win32 ------ Compiling... example2.cpp .\example2.cpp(8) : fatal error C10 ...Show All
.NET Development RSA Encryption
Cant find much info about this one on the net, but my problem is that cant encrypt\decrypt long string, im getting "Key not vaild for use in specified state" error.The key size is 2048, but string over 200-250 chars just dont get encrypted.. Thanks all This is the function I use to encrypt the data, doesnt work with long strings ... public string Encrypt( string publicKey, string ...Show All
Windows Forms .net 1.1 - Apply Windows theme on all controls
Is it possible to apply the XP style to the Tabpage control background and the numericupdown control I'm writing my app in vb. Application.Enablevisualstyles doesn't render these ones in the desired style. I spent a little time playing around with this and have now added the control to my download section, so if you don't want to write it yourself then feel free to download my version. http://www.dotnetrix.c ...Show All
Visual Studio 2008 (Pre-release) SvcUtil.exe /s Adds Suffix "Property" to properties
Why does the "/s" argument to SvcUtil.exe change my proxy classes I've been generating my proxy classes w/o "/s" and have been writing code against them. Now I want to mark them as serializable but it is changing the property names on me and breaking my build. Is there a way to get SvcUtil.exe to not do this Example: I'm generating proxy classes for my Indigo services using SvcUtil.exe and they look something like ...Show All
Visual Studio Crystal Report in VS-2003 not print bilingual text using printtoprinter() method
I am trying to print crystal report in vs2003 in hindi (mangal) and english(us) font simultaneous . Report is shown in both the font in browser but when i go for print using crystal report viewer printtoprinter() method it print only in one language either in hindi or in english not in both .It depends on font of text box control of crystal report . but when i print from windows browser print it comes in both the font NOTE: I want printing th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. c# and DirectX Simple2D - replace tiles with background image
I'm new to c# and DirectX and I'm trying to use the Simple2D as a basic example to my Asteroids game. So I took out alot of functionality from this program, but I'd like to have a background image (night sky) instead of the tiles. I think I saw how to load a background image to a form, but I don't think the Simple2D example uses a form. Thanks for any tips. If you need the source code I'll gladly send. Yuval. ...Show All
SQL Server Merge Replication & Update on Keys
Hi, I'am using several SQL 2000 servers with different working merge-replications. Actually I wrote a .NET assembly which makes updates to key values in one of the replicated tables: Ex: update ReplTable set key = -key where key between (1 and 100) Loop ...... update ReplTable set key = NewKey where key = .... end of loop Intention is to resort the datarows. So I made two updates to every keyvalue in a very short time. At the ConflictVie ...Show All
Visual Basic Stupid Question
In VB 6 I could set all my database connections pretty easy at runtime so they would be in app.path "path". VS2005 is a little weirder...... SPAth = System.Windows.Forms.Application.StartupPath and it returns the debug folder.....no problem right When I install this will it be smart enough Database connections.....when made with the designer....are they ALSO smart enough to transform themseves with the installer so that the program ...Show All
Software Development for Windows Vista Where can I get the Windows Vista Beta2 ?
I find that the download link in Microsoft website now is down because of high demand! So how can i get it Help me please! Hi, You can Download Windows Vista by Microsoft Windows Vista Customer Preview Program We invite you to be among the first to experience the clarity that Windows Vista can bring to your world. The Windows Vista Customer Preview Program makes a pre-release edition of Windows Vista Ultimate ...Show All
Visual Studio Attaching to process through Attach2
So I have this Add-In which emulates (to a degree) what the SQL Server Project is doing; deploying assemblies to SQL Server 2005 etc. I now want to implement a debug functionality, so I loop through the processes until I find the sqlservr.exe (the process for SQL Server). I then want to use the new Attach2 method on the process object, which can take an Engine collection as param - as I want to use the T-SQL engine and the managed code engine. H ...Show All
Visual Studio Team System Links control.
Hello. I customized many of work item templates. But now i have a problem. In Links control i cann`t add columns - this is known v1 issue. I wan to change title of work item by adding some symbol like "+" according on work item`s state. For example, i have a bug which assosiated with requirement.If i close the bug then some symbol like "+" must automatically become added to title. Is it possible He ...Show All
Visual Studio Team System VSIP equivalent DLLs in Latest SDKs
I have developed an application in VSTS2005 Beta2 by using VSIP. now i am converting the same application into Beta3 and i have downloaded some recent VS SDKs. any help/suggestion would be appreciated if anybody can tell me which are the equivalent DLLs in Beta3 for the following which exposes the same functionalitiy. Microsoft.visualstudio.teamsystem.elead.common.dll Microsoft.visualstudio.teamsystem.elead.sdk.dll ...Show All
Windows Forms Row validating event not firing in datagridview2005
Hi, I have a datagrid and a button in my screen. The rowvalidating event for the grid has been added in the code. When i enter invalid data in the grid and then press button with out leaving the cell in the grid the event is getting fired. But on subsequent clicks of the button the row validating event doesnt seem to be firing. e.cancel of rowvalidating event is set to true once its fired so that event should get fired again and ...Show All
.NET Development AD member of - recursive?
Hi, I am trying to get a listing of the groups a user belongs to. All is working well, except, if the user is in group a, and that group a is in group b, I can't get group b to show up in the retrieved list. Here is part of my code. Can anyone help Dim de As DirectoryEntry de = New DirectoryEntry(" LDAP://DOMAIN/OU=DOMAIN USERS,OU=XX,DC=DOMAIN") de.Username = "xxx" de.Password = "xxx" ...Show All
