gleason78's Q&A profile
Windows Forms Collapsible property for custom control
How can I make property for my custom control collapsible at design time Similar to Size, Location, Padding and other properties. I want to create Dimension property for my control which has collapsible x and y element. Thanks You'll have to implement your own UITypeEditor derived class. I'll move this thread to Windows Forms Designer. ...Show All
Software Development for Windows Vista Digital Signature.
How can we obtain digital signature for the existing application Is it neccessary for running it on Windows Vista Hi Oliver , I have this confusion because of what I had read in compatibility CookBook ,there it is said "All 64-bit drivers have to be digitally signed for Windows Vista 64-bit editions. Unsigned drivers are not supported and cannot be installed on 64-bit Windows Vista" in the Windows Vista 64-Bit section. And is the siginig process is done by the Verisign during Vista Logo Certification or we are provided with some files to sign it ourselfs Please clarify me on the above mentioned doubts. Regards Vikas. ...Show All
Visual C# rsa public key for c# .net
Hi. I have a problem. I try to traslate a Public Key Rsa to a valid format to use in ImportCspBlob. but this code don't work. I find solucion on internet but don't work. http://www.mcse.ms/archive113-2005-6-1681898.html I don't know format for public key rsa for .net and i don't find documentacion. I use framework 2.0 visual studio 2005 I don't know what i need to do... help me please! using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; namespace ConsoleApplication2 { class Program { static void Main( string [] args) { string RsaResult = null ; //questa e la loro chiave rsa pubblica string PublicKeyRsa = &q ...Show All
Smart Device Development regarding moving a directory including all its sub directories from device to storage card
hi all, i have a requirement that i move a directory including all its sub directories from device to storage card. i need to do it in a control's event like some button click. i have tried using: MoveFileW(LPCTSTR lpexistingfilename, LPCTSTR lpdestfilename); i have seen no success. is there any other windows api i can use to do this thanks in advance. kulkarni Hi Mahesh The only other API is CopyFileEx - which is avaliable starting with Windows Mobile 5.0 (Windows CE 5.0) If none of the two APIs work, you'll have to come up with your own implementation. Michael ...Show All
SQL Server SQL Query - Fetching Records
Have a table with following structure ID DeviceName Status 1 Sony Good 2 Toshiba OK 3 Sony Bad 4 Tata OK I need to return the following records ID DeviceName Status 2 Toshiba OK 3 Sony Bad 4 Tata OK If there are more than one record for the Device, then record with the latest ID should be returned. If there is only one record for the Device, then that record should be returned. Can this be achieved through a single query. Any help is appreciated. Thanks, Loonysan One way create table #test (ID int, DeviceName varchar(49), Status varchar(51)) insert #test select 1, 'Sony ', 'Good' union all select 2, 'Toshiba',' OK' union ...Show All
Visual Studio How does assembly ref debugging work?
I copied a dll I had created to another folder and then attached a reference to it (from a WinApp). If the dll build is Debug I am able to step into it and it even finds the original path of the source code. A Release config, obviously, cannot be stepped into. I opened up the dll in ildasm and I didn't see anything that helps VS2005 track this. How exactly does this happen seems the path is there after all, I checked some dlls, they all contain something like this: RSDS D:\\path\\to\\dllname.pdb I also found the reason for problem I mentioned previsouly: seems I forgot the entire directory tree was moved to another disc, the dll still contained the path to the previous location... Interesting. edit: checked the dlls with a hex edit ...Show All
Visual Studio 2008 (Pre-release) Reading and Writing image "Rating" metadata
I'm looking for a way to read and modify "Rating" metadata that Vista uses to rate image files. I'm able to read the rating although I noticed that the rating is written in several places in metadata... and I'm not sure which Vista is using... it looks like all of them are changed at the same time and are kept in sync... so do I have to modify all of them to keep them in sync /xmp/Rating / xmp/xap:Rating /app1/{uint=0}/{uint=18246} When I'm trying to modify the rating... nothing happens... I'm using this code Stream fileStream = new System.IO. FileStream (path.LocalPath, FileMode .Open, FileAccess .ReadWrite, FileShare .ReadWrite); BitmapDecoder decoder = BitmapDecoder .Create( this .fi ...Show All
Visual Studio Express Editions Accessing records for processing in VB Express / SQL Server Express
I am a rank VB newbie and have run up against a brick wall with the app I am trying to develop. How does one embedd SQL inside VB code to access data in the database for processing The documentation and tutorials talk about using predefined widgets (like tables and grids) to view and edit the data by I want to read records into variables to do stuff with them . I just want to connect to the database, embed some SQL inside my code so that I can access and process records in the database. Make sense I would appreciate any help... Simone here is some pseudo code for you to take a look at.... Dim cmd As New OleDb . OleDbCommand Dim cnxn As New OleDb . OleDbCo ...Show All
Visual C# Go to class member quickly using keyboard only
I'm migrating to VS 2005 (C#). Up to now I've been using VS 2003 with Resharper. I see VS 2005 now implements many of ReSharper "goodies" (refactor, rename, add 'using' etc). However I still can't go to a class member quickly using keyboard only. E.g. in ReSharper (VS 2003) I'd press a shortcut which would display "file structure", then a member would get selected as I type letters it starts with, hit enter and I'm in the member. Long time ago (VS 97/VC++ 5.5 I think), "Class Members" combo box (VC++ editor) were "trackable" (i.e. selection would position on the member starting with the letters type) and one could assign shortcut to expand/focus on members combo box. It's long not the case a ...Show All
Visual Studio 2008 (Pre-release) What facilities does WPF have for restricting input to a text box?
I'd like to prevent my users from entering negative numerical values. You could add a custom ValidationRule which tries to parse the input value into a number. If the number is negative, return a ValidationResult which indicates failure. Or you might want to throw an exception in the setter of the property which is bound to the TextBox if the value is negative. The WPF binding/validation system will catch the exception and register it as an error associated with that binding. Or handle the TextChanged or KeyDown event of the TextBox and validate the input value as the user types it in, and disallow negative values that way. ...Show All
Visual Studio Express Editions Qns on SQL 2005 EE, use with C# 2005 EE.
Hi, got qns here regarding SQL database. Can my program with SQL database run correctly on another com using win xp home edition, with only C# 2005 EE installed Is it compulsory for every table in a database to have a primary key Can I extract a data from a specific cell in a database table(click button get data) How do I go about doing it (the simplest n straight forward method) Many Thanks in advance. That means reader[0] will read the first column in my table starting from the first row, right For example, my "Time" column is the second column in the table. That means if I put reader[1] it will read the second column which is the "Time" column But I thought the query string tells th ...Show All
Visual Studio 2008 (Pre-release) Duplex works from Server to client (callback) but not client to server
I have specific problem: When I send strings from my client app to my server, the server responds as if it has received something but that something is always null. The response (callback) to the client works perfectly (eg. an echo). This sounds like im always sending the server null but i've confirmed the following: the parameter is not null on the following method public void Msg(string _msg) { base.Channel.Msg(_msg); } Any insight would be awesome. Thanks Thanks for the response! First off, im using the NetTcpBinding, tried with both no security and message security. Here is the client, it started as the generated one from the Duplex example but then was str ...Show All
Visual Studio Express Editions Uninstalling Express Edition
i can't uninstall the xpres edition tried that blog thing and i deleeted all those sql things and all i have left is the xpres edition to delete and it won't let me cuz it said it cant check for a valid ordering blah blah blah... i tried to delete it in the regedit but still some parts left... can someone help me Based on your original post, your system is in an unknown state... Try re-installing .net 2.0, then uninstall the express apps. Do they still show up in Add/Remove Programs -Tim <MSFT> ...Show All
Windows Forms splashscreen problem
Hi, I've got a problem with my splashscreen; I want to show my splashscreen as long my application is not fully loaded and I don't want to use a timer, it must be "real", so I realy want to see it as long as the application isn't fully loaded. And how can I see what the application is currently loading give me an answer if u know something about it regards tom If you want the delegation usage in VB.net, here's the example: http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=7B1E743D-4287-4787-A316-56CF93C6DFC7 ...Show All
Visual Studio 2008 (Pre-release) Soap Header in WCF
How to use Soap Headers in WCF The samples using MessageContractAttribute doesn't help to solve this. Thanks, Sangeetha Here's a sample of the second method inside a Client MessageInspector. http://wcf.netfx3.com/files/folders/message_inspection/entry3783.aspx Thanks! S ...Show All
