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

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

ijprest

Member List

AmolB
Dave Anson
Rohland
James Todd
Stev92
leafsky
NeerajAg
ding3r
Venkatesh Mookkan
Javan
Milo T. Minderbinder
Suture
lxhvc
Rick T
Frank_9
SecurityBreaker
wromee
ar3
Muzammil Baig
Massimo Mascaro
Only Title

ijprest's Q&A profile

  • Visual Studio Team System Check for throw or rethrow in a try block

    Thank you David ...I have another question.... How can I check if there is any sentence in a block ... for example i want to check an empty catch and I do this: public override ProblemCollection Check( Member member) { Method method = member as Method ; bool isCatchExists = false ; bool isThrowExists = false ; if (method == null ) return null ; InstructionList iList = method.Instructions; for ( int i = 0; i < iList.Length; i++) { if (iList .OpCode == OpCode ._Catch) { isCatchExists = true ; } if (isCatchExists) { if ((iList .OpCode == OpCode .Throw) ...Show All

  • .NET Development SQL Question

    Is it possible to do this with an SQL statement My table contains name,address,phone,email I want to return all rows where email exists in table more than once, i.e. i'm checking for duplicated email addresses Thanks SELECT name,address,phone,email , COUNT(*) FROM MyTable GROUP BY email HAVING COUNT(*) > 1 ...Show All

  • Visual Studio Team System vsmdi relationship to TestCase/TestMethods

    I am trying to determine how an entry inside the vsmdi file relates to a test case method. Each test case item in a test list appears to have a unique Guid and the relative path to the assembly that the test case belongs in. However it does not list the test class that the test case belongs to. This information is visible when viewed from the test manager, but does to appear to be stored on the filesystem. Does anyone know how this relationship is maintained Yep, thats' it cracked. To summarise what is required, here's a bit of C#: SHA1Managed crypto = new SHA1Managed (); byte [] bytes = ne ...Show All

  • SQL Server Using a parameter for the "IN" clause

    All, Having some trouble with getting the "IN" statement to return results from a stored procedure. I want to pass in a string of values, such as ('999999', '111111'), to my stored procedure and use it in a select statement. The SP looks something like this... @someNumbers [varchar](1200) SELECT * FROM someTable WHERE someNumber IN (@someNumbers) This doesn't return any data. How do I define something like this in the stored proc Thanks Mike Hi friends, Have you seen this article This discusses about  passing a list of values to use in the IN clause. " How to pass array of values into SQL Server stored procedure using XML and Vis ...Show All

  • .NET Development Progammatic ClearType

    I'm trying to find a way to programmaticlly enable clear-type and/or font-smoothing for either specific windows forms controls, my windows forms application as a whole or the client workstation itself.   Thanks! Shaun Wilson   Font.FromLogFont() appears to reset most of the settings I've specified in my LOGFONT struct. The framework docs do not mention that this should or should not happen, and if it should, nothing on the net mentions why. Suggestions public static void EnableClearType( Control control) { LOGFONT logFont = new LOGFONT (); control.Font.ToLogFont(logFont); // do checks if ( (l ...Show All

  • .NET Development [system.net.mail.smtpclient]: Does anyone know of a *real* way to validate a successful email send?

    I've looked in the intellisense, online .Net docs, and on here... long story short i can send email but want to read the status code of those emails... preferably the SMTP status code. so far the only close solution to verifying a successful send is using the mailmsg.deliverynotificationoptions.. but that's hardly a solution... that is based on a return email for delivery notification... for catching errors it's easy enough... just try/catch it and grab the status code there... but i'm looking for something on the success/delay (delays can still be successful) status code as well. I'm looking for a status code (250 OK, 500 ERR, etc) ...Show All

  • SQL Server Joining different datasets with parameters

    Hi all, lets say i have one table with colour ids and colour names, and another table with broad-leafed trees and different colour id fields for root, leafs and trunk: Table colours:     integer field colour_id, varchar field colour_name Table trees:     varchar field tree_type, integer field leaf_colour_id,     integer field trunk_colour_id, integer field root_colour_id one way to get the fields would be: select T.tree_type, C1.colour_name as leaf_colour_name,      C2.colour_name as trunk_colour_name, C3.colour_name as root_colour_name from trees as T inner ...Show All

  • Visual Studio Team System Team Foundation Server MSSCCI Provider Beta 2 Now Available (Feb 20, 20006)

    The Team Foundation Server MSSCCI Provider Beta 2 is now available here . IMPORTANT:   Beta 2 is not strongly signed, so you'll need to disable strong name validation as mentioned in the README.  You can find details at http://blogs.msdn.com/buckh/archive/2006/02/21/536260.aspx . New in this beta: Support for Visual Studio 2003 and Fox Pro in addition to the already supported VB6 and VC6. Integrated Checkin - you can now associate/resolve bugs and specify checkin notes with your checkin Improved performance - opening controlled solutions, get, checkout, checkin, and compare/diff are much faster M ...Show All

  • Windows Forms TextBox Focus

    I cannot get my textbox to focus on the load event of the form. I have tried using the  TabIndex = 0 both during design mode and runtime mode, but my Focus always falls on the last item i.e. the CANCEL button on the form. I need to TAB once to get the focus back to the textbox. Is there a reason why this is happening Its worki ...Show All

  • Visual Studio 2008 (Pre-release) data binding with viewport3d

    Is it possible to bind data in a viewport3d so that 3d visuals can be generated from data Something along the lines of ItemsControls and DataTemplates for enumerating a list of data points and assigning coordinates etc to a visual representation. This is simple to do in XAML for 2D controls, but I'd like to do it for 3D elements. Any help would be greatly appreciated! Cheers, -robin Check http://msdn.microsoft.com/windowsvista/default.aspx pull=/library/en-us/dnlong/html/introdecctp.asp#introdecctp_topic7 ...Show All

  • Visual Studio Express Editions Q: Check user Entry

    hi, How can i validate the user entry in a text box if its number or text like for example in vb i used to use this if isnumeric(textbox1.text) then how can i do that in c# thx hi, just i want to add something its not IsNumeric its IsNumber i didn't found isnumeric static void Main() { string sentence = "to day is 21/6/2006 (it was a nice day), ." ; int letters = 0, digits = 0, punctuators = 0; foreach ( char ch in sentence) { if ( char .IsLetter(ch)) { letters++; } else if ( char .IsNumber(ch)) { digits++; } else if ( char .IsPunctuation(ch)) ...Show All

  • Windows Forms Outlook Control

    Hi, Looking at the screenshots for the new whidbey controls and a simulation of Outlook 2003 is there.  Will these Outlook controls be available in whidbey or is Microsoft just showing what can be done if you feel like re-creating something from scratch like Outlook in .NET Tom, I am interessted. Would you please post the code thanks Daniel ...Show All

  • Software Development for Windows Vista Problem Using ifElseactivity in an Embedded workflow designer

    I'm trying to use a ifElse activity in an embedded workflow designer ( Workflow Designer Control Example   downloaded from here: http://www.windowsworkflow.net/Downloads/Examples/Workflow%20Designer%20Control%20-%202005-09-24.exe ) I added a IfElse activity and then select one of the branches. In the property window I select a System.Workflow.Activities.Rules.RuleConditionReference Condition and then when I try to edit the Name   property of that condition (pressing the "..." button) I receive this error: Value cannot be null. Parameter name: activity If I do exactly the same in Visual Studio, I get a Select Rule Condition Form I ...Show All

  • Visual C# visual c# database

    im getting this error when trying to run a form which saves details of a new user to the database. Please help its an emergency System.Data.ConstraintException was unhandled Message="Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints." Source="System.Data" StackTrace: at System.Data.DataSet.FailedEnableConstraints() at System.Data.DataSet.EnableConstraints() at System.Data.DataSet.set_EnforceConstraints(Boolean value) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) ...Show All

  • Visual Studio Express Editions Advice Needed Regarding C# and C integration

    I have a project where I am given C code and I have to implement a GUI for that code. The C code was generated on with a Linux box and gcc. My first thought was to implement the GUI in C# and pass the input parameters to the C file. I researched how to do this but I wasn't coming up with many results. I read about converting C++ files into DLL files. I also read this thread regarding converting C files into C++ DLL files with C++ Express and then using C# Express. I have been talking to my TA who said that this process might be troublesome as the converting process is not very successful. It was suggested to try using the *.exe fil ...Show All

©2008 Software Development Network