Software Development Network Logo
  • Visual J#
  • VS Express Editions
  • Windows Forms
  • VS Team System
  • .NET Development
  • Visual FoxPro
  • Game Technologies
  • Visual Studio
  • Microsoft ISV
  • Windows Live
  • Smart Device
  • Visual C#
  • Visual C++
  • Architecture
  • Windows Vista

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

korihelvete

Member List

JohnWP
Garry W
Ronan Jordan
crack
Sydelis
Keldon Alleyne
lordmenace
mikhailb
astubble
Cynicszm
TA123
nikkah
Phillip Carruthers
Sinan Do?anl?
Larry4321
ch8anshetty
Olle SW
bearnhar
ps0118mj
simon mcinnes
Only Title

korihelvete's Q&A profile

  • Visual C# Compiler seems to fail to check the restriction of generics

    Hi, The VC#2005 compiler accepts the example below, but the assertion (*) fails at the runtime nevertheless the type T is restricted to a class. The actual _t is an Int32 passed at the line (***). I suppose that the compiler should reject this code. Actually, the instantiation of generics (**) is wrong because the argument IComparable can violates the restriction "class". The compiler should detect this and reports the violation. public class Foo<T> where T:class, IComparable { private T _t; public void SetT(T t) { _t = t; Debug.Assert(_t.GetType().IsClass); //(*) } } public class Test ...Show All

  • Visual Studio Express Editions Header Problems

    Hi, I was experimenting with DirectX and the PSDK, when suddenly when I attempted to compile the solution I recieved an error about the compiler complaining about the syntax of one of the PSDK files!! Is this a bug in my code or is there really an error in the PSDK libraries, which i find unlikely. Any ideas Thanks, Mike You probably forgot to include a header file. Shows us the error message and the list of #include statements and we might give you a more accurate answer. ...Show All

  • Visual C# How to handle Ctrl-C event on a multi-threaded console application?

    Hi All I'm using SetConsoleCtrlHandler to handle Ctrl-C event. But I have a problem using it in multi-threaded applications (it doesn't invoke handler function). What is the correct way to handle Ctrl-C event in a multi-threaded application Basel You can add a MessageFilter to the Application object(System.Windows.Forms.Form)and look for WM_KEYDOWN (or any specific windows message with Crtl+C produces)and see if the pressed keys are Ctrl+C.This should work for any application regardless of whether is single or multithreaded,I would think. ...Show All

  • Windows Forms List box and textbox

    I have to forms. a.vb and b.vb. on A.vb I have a text box "a.text", and on form b.vb I have a listbox with a few names.  I want to know how do I chosse or click a name from the listbox in b.vb and when I have click the nameI want, how do I get it to show in the a.text box in a.vb. Can you plase walk me true this Thanks Hi, If your using VB2003 it would be a little more tricky. It really depends on who's the parent form (which form shows first). I'll just assume that Form A is the parent of Form B. Here's the code: ' Place this on the part of Form A where Form B is being shown: Dim frmB As New B frm ...Show All

  • SQL Server Package Configuration for Oracle Connections

    Hi there, I created some configurations for my package as Jamie described in http://blogs.conchango.com/jamiethomson/archive/2005/11/02/2342.aspx for my Connections. I use ADO Connections as well as OLEDB Connections for Oracle (MSDAORA). Everything works very fine, until I store passwords in the file. Yes I know, I shouldn't, but the main idea was to keep the machine-dependent data in an external configuration file, so you don't need to re-build your package if you want to put it onto another machine. This scenario is only possible, if the passwords are the same for the two machines, but in my case the passwords are different (even the user ...Show All

  • .NET Development Security - Data Access Best Practices

    Hi there, We're developing an in-house employee self-service portal that allows employees to access and modify various pieces of private data such as vacation requests and so forth. We have the options of either using a smart client application (deployed via ClickOnce) or a web application. If we went with a smart client application, the number one security issue I see with direct database access is the connection string. I don't believe integrated security would be an option, since we're not granting permissions based on database objects (i.e. tables or views). Rather, we're granting permissions based on data content (i.e. an emplo ...Show All

  • SQL Server .query / .value failing when elements have "xmlns" attribute

    I'm having difficulties running the queries I'd like to against xml type columns containing SOAP response envelopes from web service calls I'm making. I've reduced the problem to a fairly small representative example: declare @testxml XML set @testxml= '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   <soapenv:Body>     <MySoapCallResponse xmlns="myvalue">       <Ack>Success</Ack>     </MySoapCallResponse>   </soapen ...Show All

  • Windows Forms Getting Reference to an existing Control's object @ runtime ?

    hi all In particular I want to get the reference of a control dynamically based on the Control’s Name, I’ve control name and I want to get the reference of it so that I can disable or do any operation on that control at runtime. UserControl has one method GetContainerControl() it is returning IContainerControl But how do I get my desired control from this list. Or do we have any other method Thanks! Regards Karthikeyan I'm getting all the Control's name and its reference by calling GetContainerControl() of a UserControl's object, but how do I get a particular control's reference from this list Note : ...Show All

  • Windows Search Technologies Address bar - locked

    my address bar will to type in the full name of a web site, but once complete it will not pull up the site, it stays on the main msn page. Like typing in www.miamidolphins.com - but while typing it will drop down and offer a list of sites, if i pick one of those I can go straight to the sight or choose from my favourites. but to actually type a new site name in the address bar and click go - it goes no where. how do I solve this i do have google and msn tool bars open help maggie ebersold Hi Maggie, Your issue doesn't appear to involve Windows Desktop Search - does it Thanks, Bill ...Show All

  • SQL Server Exporting data with SMO?

    I have searched low and high for some information on how to export data with SMO. My old build scripts were using SQLDMO.BulkCopy which was using BCP and it worked fast on entire database. I can't find a way to do the same with SMO. As alternative, I tried using bcp.exe on each table but it's awefully slow because initial process startup overhead. Please don't recommend Transfer class as I'm not looking to transfer server-to-server but server-to-hdd. Backup isn't right as well. Any suggestions Thank you. Alex I'm not certain but I think the functionality you're looking for is now in the SSIS (SQL Server ...Show All

  • Visual Studio 2008 (Pre-release) Compact Framework Support?

    We currently use .NET Remoting for our inhouse line-of-business applications. The main problem with .NET Remoting is that is not supported in the compact framework (which is really a compact framework problem not a remoting problem, remoting rocks!). This keeps us from developing applications that integrate with these systems. Will Indigo/WCF be supported from the compact framework Take a look at http://binaryformatter.net , BinaryFormatter & Remoting.Client for Compact Framework compatible with the full .NET Framework. ...Show All

  • Visual Studio Express Editions How To Change PaperSize When Printing

    After a lot of errors, false starts and senior moments, with the help of several generous souls who responded to a query I made on the VB Express Forum and with several revelations from the book “Mastering Microsoft Visual Basic 2005,” by Petroutsos, I am a closer to understanding printing and modifying the papersize and other printer parameters. I am including the code for a small VB windows test program that programmatically creates two different paper sizes. I hope it will help others as they implement printing in their applications. The code contains no error handling and is something that should be added in a full project. The ...Show All

  • Visual Basic VB.Net, Word Object Model

    I want to populate my Text box controls with data from a oledb database, i want to take the selected value of the text box controls and print them on a word document but its not working properly here is the code, any help would be great!! info is the name of the textbox oPara.Range.Text = Info.SelectionLength.ToString() ...Show All

  • Visual Studio Team System Migrate work items from Beta 2 to Beta 3?

    Ok, first of all let me state clearly for the record. I fully realize that MSFT does not officially support work item migration from Beta 2 to Beta 3.  I also realize Beta 2 did not have a GO-LIVE license with it, so I am officially on my own on this one.  Having said that, "un-officially" is there anything I can do to half-way get this to work When my team moved from Beta 1 Refresh -> Beta 2, we exported all of our work items to Excel, then created a new work item list within Excel for Beta 2 and then did a builk entry that way.  While this worked ok, we had to manually copy over all of the history text from th ...Show All

  • .NET Development Active Directory Syntax

    I am doing Active Directory Integration in C#, and facing a small issue: Returned properties of an users such as "memberof", "telephone",... are not recognized as singularly-valued attributes so normal syntax like "memberof=MyUserGroup" will not work. If anyone has come accross this problem, or can refer me to another forum to get help,please give me your insights. Thanks. PS: I could filter the returned objects to get the collection I originally want, but that's not prefered. I wanted to query users only in a particular group, say "MyCustomGroup", but such syntax wouldn't work: (memberof=MyCu ...Show All

©2008 Software Development Network