Software Development Network Logo
  • SharePoint Products
  • VS Team System
  • Microsoft ISV
  • Visual FoxPro
  • IE Development
  • Audio and Video
  • Visual C#
  • Game Technologies
  • Visual Basic
  • .NET Development
  • Visual C++
  • Windows Vista
  • SQL Server
  • Smart Devicet
  • Visual Studio

Software Development Network >> KannanPV's Q&A profile

KannanPV

Member List

Tamim Sadikali
Ceres629
etcheverrjc
PeterK123
jhidey
eroe
jean at spear
David N.4117
hrvat
Gumbatman
Rodolfo Caporale
waterking
Furqanms
Recep TARAKÇIOĞLU
Matt_
MarinosC
Flack
Joseph Shulman
bgrva
Symtex
Only Title

KannanPV's Q&A profile

  • Visual Studio 2008 (Pre-release) WCF - ServiceKnownType with embedded reference to a Type object

    I am working on a WCF service which implements a ServiceKnownType that has an internal reference somewhere to System.RuntimeType down deep. Here is a reference implementation sample [code] [OperationContract] [ServiceKnownType("GetKnownTypes")] public void DoSomeOperation(ComplexTypeWithTypeReference myObject) { //do work } public static IEnumerable<Type> GetKnownTypes(ICustomAttributeProvider provider) { List<Type> types = new List<Type>(); types.Add(typeof(ComplexTypeWithTypeReference)); object o = typeof(object); types.Add(o.GetType()); //cant just use typeof(System.RuntimeType) because of protection level return types; } [/code] I have work through all the errors about System.RuntimeType bei ...Show All

  • Software Development for Windows Vista Use Native WLAN API in managed code

    Has anyone here used the new Native WLAN API from a C# .NET application I'm trying to p/invoke the functions, but have limited success; when calling the WlanEnumInterfaces function it won't return me a proper WLAN_INTERFACE_INFO_LIST. [ DllImport ( "wlanapi.dll" , SetLastError = true )] private static extern int WlanOpenHandle( [ In ] UInt32 dwClientVersion, [ In , Out ] IntPtr pReserved, [ Out ] out UInt32 pdwNegotiatedVersion, [ Out ] out IntPtr phClientHandle); [ DllImport ( "wlanapi.dll" , SetLastError = true )] private static extern int WlanEnumInterfaces( [ In ] IntPtr hClientHandle, [ In , Out ] IntPtr pReserved, [ Out ] out WLAN_INTERFACE_INFO_LIST ppInterfac ...Show All

  • Visual J# Is it possible to make a form snap to the edge of the screen?

    Is it possible to make a form snap to the edge of the screen and the most imporant question is how do i make it impossible for other windows to become under it, like ICQ is snapping to the edge.. So far I just have my windows placed to the rightmost of the screen and it is "always on top". If this can't be done, how can I make it similar. You can read the position and size of other windows on the desktop through Win32API calls. This code could be fired by a mouse hook that you could register in the system through Win32API calls. So your first stop would be to look into the P/Invoke call from J# to the Win32API. After that read about a "mouse hook", and how to get the Window handle to o ...Show All

  • Visual C# C# and VB.NET, which can be learned faster?

    Could anybody help let me know which language I should begin with C# or VB.NET My opinion - If you already know earlier versions of VB then do not learn VB.NET first. This might seem an odd statement to make, however I come from being an experienced VB6 programmer, trying to program in VB.NET, then switching to C# so I have some idea what I am talking about. The reasoning is that if you know VB6 you will think you know what you're doing in VB.NET but here's the deal: You don't. You won't have a clue. People who do this will do what I did, and try to keep doing things the old way. Using the VB keywords such as InStr, MsgBox, and using the On Error method for error handling rather than SEH. .NET is su ...Show All

  • Visual Studio 2008 (Pre-release) How to display fixed columns using a GridView ? (link updated)

    The link to the image have been updated. Sorry, for the invalid link of the original post Does anyone know a way to display left-fixed columns using a ListView/GridView This image show exacly what i need. That exemple was made in Java using Swing. I hope it will challange you guys... As you can see, the "Name" column is left fixed, and when the horizontal scrollbar is used, only the remaining columns are scrolling (see "Telephone 1" header. It is cropped) Knowing a way to add "RowHeaders" to the GridView could be just what I need... ...Show All

  • SQL Server Changing data type from Char to Datetime

    Thanks in adance Platform: SQL 2000 A SQL table has a field named "pay-day" with Char(8) data type. I tried to change its data type to datetime but only with an error message like this. I did right-click the table and tried to modify a data type. - Unable to modify table. The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. The statement has been terminated. Jay This means that some of your data in that column cannot be implicitly converted to a datetime value. Here is some more info on CAST and CONVERT -- you may want to try using these functions specifically to help identify which data is out of range. http://msdn2.microso ...Show All

  • Visual Studio Express Editions Does C++ Express Support subclassing?

    At the bottom of my Form1.h I recently added a subclass derived from a panel... public ref class NoScrollPanel : Panel { protected: virtual void WndProc(Message% m) override { //Do my stuff here return Panel::WndProc(m); } }; The problem is that while I can see it in the Class View and all looks complete and good, I can't do anything with it. I can't add it to my toolbox, I can't drag it onto my form, nothin... Same goes for classes I make using Add Class... How do I actually add these to my form1 O.K. Agreed! Any suggestions or step by step pointers so I can properly learn how to do this... Someone in the Forms board told me my new class should be available at the top of my ToolBox, It isn't... & I'm ...Show All

  • Visual Studio Team System How to test given objects?

    I'd like to generate my tests using reflection, but I can't think of any way to test given objects. Generator generator = new Generator(typeof(TestedClass)); // apply additional information // ... object o = generator.generate(); Assuming that 'o' consists of several test methods ([TestMethod]), is there any way to test these methods For our current system, test can't be generated at runtime. What you could do, if you were so inclined, is use Refection.Emit to emit an assembly with your test class and test methods appropriately marked and then load that assembly into Test View. I need a good bit more info to be more helpful however. Joe ...Show All

  • Windows Forms LinkLabel doesn't work with web-URL

    Ok, I'm totally new to programming, but please help me anyway. When I click a link in any application that should call some "http://..." or "file://..." URL, I get an exception telling me "application not found". Since I've started with VB programming, I've stumbled across this darn bug again and again when testing my first steps as a programmer and learned that it's the command System.Diagnostics.Process.Start that's causing the ruccus. (Well, not exactly since it seems to be some setting in my Windows XP that's really causing it. ) I've posted the very same question in oh so many forum threads all over the web, but never got an answer that solved this problem. Can (pretty please) someone tell ...Show All

  • Visual Basic Layering JPG files in PictureBox

    Hi, I am having some difficulty with a project I am working on and I haven't been able to get much help on it. I want to create a stoplight using GDI+. What I have are 4 images: - A normal stoplight where all three lights are gray-ed out - A red circle exaclty where the red would be on the stoplight - A yellow circle exaclty where the red would be on the stoplight - A green circle exaclty where the red would be on the stoplight All of these images are the same image/canvas size and if placed on top of one another would look like the stoplight has all three colors on. What I am looking to do is layer all these images, on top of one another, in a picture box. When I press a button labeled RED, I want the red light to appear on. Another butto ...Show All

  • Windows Forms Dynamically choosing a UI library

    Hello All. I'm working on an educational app that is targeted for ages 6 and up. I've got two versions of the UI library, simple (for the youngsters) and normal (for the not-so-youngsters). Both libraries are self-contained and localized, so UI upgrade is simply a matter of file replacement. The user can switch between normal and simple at runtime simply by selecting a menu command. The way that I'm doing it now is by maintaining a persistent UIState variable and checking it each time I need to open a form. That's the problem. I'm wondering (can't find anything on the forums or in MSDN) if there isn't a way to make the check once, initially, and responding to the user changing the option, and not having to check again. Basically, ...Show All

  • Smart Device Development Handling 1 application from another

    hi all, I want to handle the key event of the 1 application to be handled in another application. I have made my application, that have key handling event. now when i open camera of the device, i want the key event to be fired when user captures the image. how to do that plz help. slight hint can also lead me to any action. thanx in advance. hi, thanx for the reply, but i tried want u said, but i want to trace the key up event of other application from my application. wht u suggested is for the hot keys. in particular i want to trace the enter key or return key of the another application and handle through my application. thanx for ur response. ...Show All

  • Smart Device Development GetElementsByTagName Causes Memory Leaks

    Hi Everyone, I am having a problem with a memory issue in the compact framework. I have tracked the memory leak down to GetElementsByTagName in the xmldocument class. Everytime this method is called our application leaks more memory. Below is some sample code that will blowup if you leave it running on a device: private XmlDocument oXMLDoc = new XmlDocument (); oXMLDoc.LoadXml( "<RUBBISHDOC></RUBBISHDOC>" ); do { GetElements(); } while ( true ); } private void GetElements() { XmlNodeList olist = oXMLDoc.GetElementsByTagName( "NoElementsWillMatch" ); } Basically all I am doing is creating an xmldoc with some rubbish element in it. Then ...Show All

  • SQL Server Moving records during replication

    I keep reading in various places of the replication documentation that records can be _moved_ as opposed to just being copied. How can I do this I can't seem to find anywhere during setting up the publication, articles or subscription an option that allows me to do that! Thanks, Val The "moved" behavior you heard of is probably because the row is being "copied" to a new location, and then deleted from the old location. A feature in merge replication that might cause this behavior is partition groups with the partition option setting to allow rows being changed out of the current partition. Here is an example: You setup the partition group with the filter that each subsc ...Show All

  • Windows Forms List interface, with "named" indexing...

    Which collection derivative provides for a list-type interface of objects that can be referenced not only by index, but by a string "name" also Like: MyObject["Sam"].Value = 10; or MyObject[0].Value = 10; I've looked through the MSDN Library on Collections, but I must be overlooking something. Sincerely, Gordon E. use HashTable for more info http://msdn2.microsoft.com/en-us/library/system.collections.hashtable.aspx ...Show All

©2008 Software Development Network