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

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

KenLinder

Member List

GMS0012
MaliciousGeek
Jassim Rahma
Raja-kandasamy
Bharat Gadhia
redneon
J-Pixel
JR-XNA
noname2513788
user__2006
Derek Nedelman
shabanriaz
phani kumar ---help me out
JoeWood
davidw
Kamen
Averied
RPagels
ssfftt
sweetCoder
Only Title

KenLinder's Q&A profile

  • .NET Development How to create an object relying on a Type structure?

    I am new to .NET, and many basics of it have not been grasped yet. Can you help me about this: //-------------------------------------- class A{}; A^ obj_sample = gcnew A();  // I am using C++/CLI //If I can get obj_sample=>GetType() as a Type structure, how can I use it to create another A Class instance on the condition that I am unaware of the Declarator of Class A //Though, I use Object^ myobject = Activator::CreateInstance(obj_sample->GetType()); //the myobject is Still a Object type one, but I need a A type one, otherwise the members defined in A class can not be accessed.(Compiler can not get through). // I know A^ myobject = (A)Activator::CreateInstance(obj_sample->GetType()); //should work, ...Show All

  • Visual Studio Express Editions Desperate !!!!

    Hello Please help me in this mather !!! I have an application that runs as a service. At a certain point it will need to login to the computer. How can I do this I've found AdminAutoLogon in the registry but that only works if the PC is restarted. I need this to work even if the previous user logged off and the computer is at the logon screen. Is there a standard function in VC++ that foces a login with certain users and password Thank you Control Panel + Administrative Tools + Services. Double-click your service, Logon tab. By default, services login with the "Local System" account. If you are doing this because you intend to display a window on the desktop, beware that Windows Vista no longer supports the " ...Show All

  • Visual Studio Express Editions problem with c# express CurrentSettings.vssettings

    i am unable to open new project since currentsettins.vssettings file is not available to write.but it is there and not working.i tried import and export settings and reinstall setings but it's not working hoe can i rectify this problem This is strange; what is the exact error that you're seeing There is a Tools | Options setting that points to the file that should be written. It's in Tools | Options | Environment | Import and Export settings (the name of the option is "automatically save my settings to this file." Try changing that file to something else, and see if that helps. Anson ...Show All

  • Visual C# DLL shared by two application instances - How does this work?

    I'm fairly new to C#. I am developing an application that uses a multiport communication board that is supported by an older style DLL. The application code uses a statement : [DllImport("PCIDX.dll")] when declaring the DLL function prototypes. The application .exe and DLL's are located in the same directory. We plan to load an instance of the application for each port we wish to use. When the first application instance is loaded it makes a DLL call to get a handle for the adapter and is able to use this handle in subsequent DLL calls. When a second instance of the application is loaded, the open fails, indicating the adapter is already in use. No biggy, I just use the handle number obtained from the first application i ...Show All

  • Windows Forms Combo Box Problem

    Hi, All my problem is quite simple but I am just stucked. First I would like to ask what is the best way to populate combob box in windows application. Some articles says datareader and some say using dataadapter then put into dataset n finaly in datatable. I am quite confuse over here. Now I am trying to use a datareader to fill a combox and getting an error of IList not support member. Can some body show me how to fill the combo using datareader. Another extra question is that beside the data that I get from the database I want my first line the combo to show a value like "Please Make A Selection" how can I insert this line as the first in the combo which is not part of the database. I wish to thank if any body could help ...Show All

  • .NET Development Primary key collision

    I am rather new to the web development but is currently working on a small project that would store the data on the production office output. As the part of it, the system will provide a form to insert the order placed. 1.The order is intended to have a unique OrderID key and would store several items with their respective qtys under the same OrderID. 2.This means that there will be two tables in the DB - Order and Order_Item in order to tie the order items to the orderID. I would be using a stored procedure to insert the data in the DB. 3. There is a need to identify repetitve orders within a certain period of time (i.e. 2 weeks) in order to avoid the duplicates. THEREFORE ------------------------------------------------------ ...Show All

  • .NET Development Stripping diacriticals from string?

    Is there a .Net string method that will strip diacriticals from strings That is, what can I replace ToNoDiacriticals with to get the following to work: string foreign = "Bia owie a"; if (foreign.ToNoDiacriticals().Equals("Bialowieza"))     System.Console.Writeln("Works!"); I made a typo; the comparison should be if ((c < 0x0300) || (c > 0x03FF)). Are you sure you're using NormalizationForm.FormKD The others will convert accented letters to their canonical form, which is not what I want. When I tried your string I got "Bia owiezaeee". I wondered why the " " was not decomposed, and it turns out " " is a separate letter in Polish and not considered an accented character. I will check wit ...Show All

  • Windows Forms OpenType or TrueType font ?

    How can I check if a Font or FontFamily is an OpenType or TrueType font When browsing the C:\WINDOWS\Fonts folder different icons are shown but I can’t find a way to make the difference in .NET. Is it also possible to retrieve the filename of a font ...Show All

  • Audio and Video Development Mutl-input and multi-output

    Hello: I am writing a media source that output 2 streams. One is a video stream and another is a audio stream. When start play, I got a error code from session get event (MEError, E_FAIL -> no any meanful information). But if I Deselect any one stream, another stream will play normally. so what is the problem about this issue About other similar issue. I write a MFT which accept two streams from 2 media sources and then output a single stream to audiorenderer. After set topology and play it, I got a error about "not support topology". I don't know what is the problem It is caused by 2 media sources or multi-input MFT Thanks Hi Fei-tian, Whoops, I should have stated this more clearly: The MFv1 pi ...Show All

  • Visual Studio Wrong notes for "How to: Create Custom Configuration Sections Using IConfigurationSectionHandler"

    The documentation for How to: Create Custom Configuration Sections Using IConfigurationSectionHandler states "This topic uses the System.Configuration.IConfigurationSectionHandler interface, which has been deprecated in the .NET Framework version 2.0.". Neither IConfigurationSectionHandler nor any of its members are tagged with the ObsoleteAttribute attribute. Could we get some clarification as to whether IConfigurationSectionHandler is or is not obsolete for .NET 2.0 veloce wrote: I will redirect the problem of the obsolete attribution in the binaries to the responsible group. It may be helpful if you send me the list of the classes that still use the interface specifying the .NET Framework version. ...Show All

  • .NET Development RFID Reader Project

    Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read anything. I also wanted to ask you if you have any code samples to send me or if any of you has written a similar program that works. I need to fix t ...Show All

  • .NET Development Web Services, Authentication,Authorization. where to go?

    Hi, im building a yahoo messenger type application using # and Web Services. I have experiance in php/mysql ect. Can people suggest what authentication/authorization system to implement. Should I add sign-up's to a sql dartabase and when they sign in, give them a random sesson string and authenticate against it. Or should i use what mirosoft have provided (what is that ) I'm new and don't know which way to go. So some direction or tutorials will be great help. Thank you. Thanks for the link. The approach i wish to use is a UsernameToken but finding a tutorial for SWE3 is hard. I find microsofts tutorials a bit hard to swallow. ...Show All

  • Windows Forms Form.Visible maximizes a form object with WindowState set to Normal

    Hello, In debugging the following code the frmChild.WindowState is set to FormWindowState.Maximized directly and immediately after the frmChild.Visible = true; line is executed. Please note frmChild is a System.Windows.Forms.Form object. This behavior is incorrect and indicative of a bug in the manner Form.Visible is implemented. Please suggest a workaround. // BEGIN EXAMPLE CODE frmChild.MdiParent = this ; frmChild.Visible = false ; frmChild.SuspendLayout(); if (openOrientation == 1) { frmChild.WindowState = FormWindowState .Maximized; } else { frmChild.StartPosition = FormStartPosition .Manual; frmChild.Location = new Point (xPos, yPos); frmChild.WindowState = FormWindowState .N ...Show All

  • Visual C# winform application "help" function

    hi, i have a search button on one of the forms in my winform application, i want to put a little "help" icon (or image) next to the search, when user moves mouse cursor above the help icon or use "tab" key on keyboard to highlight the icon, a small dialogbox type of window comes up showing the tips for the searching function. is this achievable plz help Use ToolTip Control and set it's property IsBaloon = true and set whatever color, text you need on it. You can also owner draw it. Is this what you need Best Regards, ...Show All

  • Windows Forms Too Many Handles - Do would YOU code it ?

    I have a Diary application that needs to show a long list of 'Groups' down the left, each of which with a '+' that can op[en up to show people, and dates across the top. It needs to have smooth scrolling up and down and left/right. There could be 2000+ groups down, each which can open up to 50+ people in each. I have created a nice control based on a grid design and it works fine with limited volume of data. The problem is when a lot of data is loaded and therefore a lot of User Objects are created in the control it has a problem with Creating a Windows Handle. Thought I could get around the problem by only making the objects that would be viewable in the control Visible as they were scrolled in and Invisible as they scrolled ou ...Show All

©2008 Software Development Network