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

Software Development Network >> Joe Pickering's Q&A profile

Joe Pickering

Member List

Focus
Colin Reid
Naheem
sparkymark75
Malcy
dchurch24
TaiChiMaster
MindyW
Stéphane Beauchemin
Davve
gmaenrile
Tarey Wolf
FlemmingLaugesen
dron747
Mowali
heyram
Toni Greco
c_shah
jte
TheAgent
Only Title

Joe Pickering's Q&A profile

  • Visual Studio 2008 (Pre-release) Orcas Mar CTP Samples?

    Are any/all of the EDM/LINQ samples included in the Mar CTP I've been successful forward-porting the October EDM samples, but I don't see any samples in the CTP itself. Am I missing something obvious Thanks, Bob I hope that they work on documentation for future releases. I was impressed with the level of documentation and samples since the initial PDC LINQ CTP. Finding them in this drop has been an effort in frustration. I'm wondering if they are just planning on ripping the previous documentation and putting it in a MS Press book. So far it has been hit and miss on migrating code from the May CTP (yeah, I know this is slightly the wrong forum.) Trickiest things so far have been the changes in query ...Show All

  • Visual C# How to pass a method as a constructor parameter

    I have a Counter class that runs in parallel to the main form of my app. I want the counter to know the method in the main form to call when the counter stops or reaches 0. How do I pass the address of the method in the main form to the counter in C# This would be fairly easy in C++. Or, would it be better to generate an event that is "sent" to the main form like somebutton.Click += new System. EventHandler ( this .timer1_Tick); Can I do: counter.something += new System.EventHandler(this.counterhandler_method); Thanks. Thank you. I just read up on delegates and event handling, and I think I got it. However, I wasn't thinking of passing the form to the counter. I wanted to know how to pass an arbitrary method ...Show All

  • SQL Server Dedicated Administrator Connection

    Hi: I am trying to connect to my local instance of SQL Server 2005 using Dedicated Administrator Connection by using Admin:Servername\Instancename and I end up with the following error. Dedicated administrator connections are not supported. I enabled the connection in the SQL Configuration Manager and still get the error. Any ideas on how to resolve this error . Note: SQL Browser service is running. Thanks Ak You can check the sqlserver log to see if DAC is enabled/listening (and on which tcp port). Use sqlcmd -A to test. Also, you cannot use DAC for Object Explorer connection. It only works on query window. So, connect normally first, then open a new query window wi ...Show All

  • Visual Studio Express Editions Is this function ok

    Hello, Is this the most efficient way to write the function below Regards, Ken Friend Class form1 Dim A As Boolean Public Function Inpt_State( ByVal A1) If A = True Then A = False Return A Exit Function End If If A = False Then A = True Return A Exit Function End If Return A End Function Public Sub PictureBox1_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown Dim x As Integer = e.X Dim y As Integer = e.Y If x > 0 And x < 20 An ...Show All

  • Software Development for Windows Vista ExternalDataEventArgs Serialization problem

    I've got a custom class A that extends from ExternalDataEventArgs. That class has to include a class B that is not marked as [Serializable] then when I raise an event that uses A I get an exception. I know this is because B is not marked [Serializable] but I’m using it from a library then I can’t modify it. Any ideas What’s the correct design to solve that issue You could register a surrogate selector for B. Jon has a post with an example: WF and Serialization Part One ...Show All

  • Visual Studio Team System Intellisense????

    I'm delighted and amazed that this product is coming however I already have one RFE....object Intellisense, the like of which is done by Prompt SQL (which has just been bought by Redgate). e.g. I type a table name followed by a period (.) and intellisense pops up a list of all the columns names. Any chance of getting that in Thanks -Jamie Vince, You are very welcome. We appreciate any feedback you provide, no matter how painful it is. We, obviously, realize that lack of Intellisense is a problem, and working to close that gap as soon as we are ready. Thanks again for your great feedback, and don't forget to download our CTP - it is online now! ...Show All

  • Visual Studio Express Editions Serials

    Hello all, Could someone please help me, I want to incorporate serial activation into my product i know alot of people use there own algorithms but im not sure how to do this, what i would like to do is be able to print out bulk serial numbers aswell. with serials being easy to crack these days how would I incoporate online serial check to see if that serial is valid or not. hope someone can help example code would be very apreciated. Thanks guys, Stu You can check out the shareware starter kit to get some ideas along with alot of 3rd party tools already on the market: http://www.ionworx.com/SerialShield.html http://www.winappslist.com/developer/copy_protection.htm http://msdn.microsoft ...Show All

  • Visual Studio 2008 (Pre-release) WCF and REST based Web Services - Queries

    Hi All, I had been through the articles and blogs for .NET 3.0 (formerly Indigo and WCF). I have few doubts and need more info to get a head start on WCF. I am planning to use REST based Web Services using WCF. Performance for me is critical issue since I will have to pass fair amount of Data Sets across the Services layers (using DTO pattern here) Can someone give some hints for me to kick start on how to begin building Web Services using REST pattern leveraging WCF Also when we use WCF what would you suggest 1) ServiceHost to host Windows Communication Foundation endpoints within application domains. OR 2) Hosting the Service in IIS With what binding would it be faster ...Show All

  • Visual Studio Express Editions sendinput code to perform sendkeys, keyboard events

    Anyone have a sample of code demonstrating how to set up sendinput Documentation is poor at best. There are a few samples on web, but are incomplete and despite tinkering can not get them to work. I read sendinput will be the best method to learn with vista coming, as sendkeys etc wont work well with it. So any help appreciated. I understood initially that the receiving program 'field' would be a richtextbox. The revised code should work for any richtextbox that last had focus when that program (the receiving program,) last lost focus. Just add ALL the handles of the richtextboxes (Fields) to the 'list' of handles in the revised code. When the sending program sends the 'trigger ...Show All

  • Windows Forms identify line numbers in a multi-line textbox

    Hi Guys, I need to identify the line numbers in a textbox and then insert each line of texts into database. For example in a textbox contains texts: text1 text2 text3 text4 text5 It will insert each line into database table as follow: column1 || column2 || column3 || column4 || column5 || text1 text2 text3 text4 text5 Appreciate your help. Thank you very much. Regards, Tommy Thank you,Bob, but still unable to read the each line texts with the codes. It will just prompt me "1". I am using for loop and msgbox to read each line, but can't. Appreciate your assistance again. Thank you. ...Show All

  • Visual C++ In vc2005 environment, how can I switch between .h file and .cpp file easily ?Because when I use vc6.0 and assist10.0 it has a

    In vc2005 environment, how can I switch between .h file and .cpp file easily Because when I use vc6.0 and assist10.0 it has a button for switching between .h and .cpp file. I appreciate your help. Two short-cuts I can think of: - Right-click the filename in the #include statement and choose Open Document. - Add the header file to your project and simply double-click it in the Solution Explorer. ...Show All

  • Gadgets Need help with outlook email gadget

    Hi, i am wondering how i would do the following: 1.Pull the "Subject" text of an email from outlook 2. Pull an Unread email message and have it displayed in a Flyout on my gadget. 3. send an email via gadget through outlook. 4. Get Outlook "Contacts" (like the Contacts gadget that manages "Windows Contacts") Please let me know if you can help me out with this i would greatly appreciate it!! Thanks in advance! Bill First have a look at the existing Gadgets, which will contain the basics: Outlook Upcoming Appointments Outlook info Outlook Tasks Then have a look at Sue Mosher's code site, where you'll probably find all the help you need. I'd advice buying her book, which I've found very useful when deve ...Show All

  • .NET Development how to check if ExecuteScalar returns null (datetime) value?

    Here's what I want to do ( please pardon the formatting ) public static DateTime CustomerLastCallbackDate(string custID) { if (custID != null) { string sql = "SELECT LastCallbackDate" + " FROM Customer" + " Where CustID = @CustID" ; SqlCommand cmd = new SqlCommand(sql, dbSession.CN); cmd.Parameters.Add("@CustID", SqlDbType.VarChar).Value = custID; dbSession.CN.Open(); object result = cmd.ExecuteScalar(); dbSession.CN.Close(); if (result == null ) { return DateTime.MinValue; } else { return (DateTime)result; } }} My problem is that if the value from the database is null, the check for "result == null" doesn't work right ( I don't know why ) and processing goes to the retu ...Show All

  • SQL Server Error with Inserting data into DB2 database using SSIS

    HI, Inside SSIS's Dataflow task, i'm getting data using ODBC connection(in DataReader Source) for an iSeries library and trying to insert that into DB2 database (using OLEDB destination ). Mappings etc work absolutely fine,but on execution get error as given below: How do i resolve this error and load data in DB2 , Need help at the earliest. Thanks in Advance Amit S Here is the ERROR Message: SSIS package "Package.dtsx" starting. Information: 0x4004300A at Data Reader to DB2, DTS.Pipeline: Validation phase is beginning. Information: 0x40043006 at Data Reader to DB2, DTS.Pipeline: Prepare for Execute phase is beginning. Information: 0x40043007 at Data Reader to DB2, DTS.Pipeline: Pre-Execute phase ...Show All

  • Windows Forms Closing original Form

    If I have a startup form that allows the user to open other forms is there a way to close that original form or hide it until the user needs it again Thanks Thomas OK two things then : 1) If I changed shutdown mode how could I close the original form since I am not creating an instance of that object I know that with each extra form I create I have to use: form1 form = new form1(); form.ShowDialog(); but with the startup object you cant close it without exiting the application, or at least there is no way that i am aware of. 2)If that is not possible what needs to be done to hide that form until it is needed again Thanks Tom ...Show All

©2008 Software Development Network