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

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

Senefelder

Member List

cookie365
Johan Hallberg
frusciante
vindos
innivodave
Kathleen Koclanes
nelson br
BA
Martin Bonner
Nobody you know
urubin
Sino-Gary
pederjohn
Tyson882
GhostlyDeath
bthumber
gs2006
eci
shandon
Big5824
Only Title

Senefelder's Q&A profile

  • Visual Basic Making a picturebox have a transparent background

    I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All

  • .NET Development WSE 3.0 creating the proxy class

    What do people recommend as the best way to create a proxy class when not hosting the service is IIS and from within Visual Studio 2005 Is there a nice add-in to point to a service library or better still a running service to get it's service description... Thanks BenW I followed these steps: 1. Create a Web Service WebSite hosted on the file system 2. Add a project for your client 3. From the client project bring up the Add Web Reference dialog 4. Click on the Web Services in this Solution link 5. Select your web service The Visual Studio web server will be started automatically and the proxy will ...Show All

  • Smart Device Development Serial Port Error: COM1: does not exist

    I have a PPC app that I am simply trying to open a serial port for using the SerialPort control in VS2005. As soon as I try to open the port it will give me "Error 57: The port 'COM1:' does not exist. And it does this for COM2, COM3 & COM4 too. This is a Dell Axim x30 with Wifi if that helps at all. Anyway, I cant figure out why it keeps throwing this error. If anybody has any ideas what may be going on I would love to hear em'. Thanks Mike Are you sure you have COM1[2,3,4] There might be no COM port at all or it might be pretty much any number, depends on particular device. ...Show All

  • Visual Studio 2008 (Pre-release) Error - hyperlink in a WBA in an IFrame

    I have a hyperlink in a WBA which is hosted in an IFrame. The hyperlink is pointing to an HTML page. When I click on it, an error is raised right before the WBA exists and the browser is redirected to the HTML page. The error is here: http://www.valil.com/AmazonBookInfo/error.jpg I have created a sample project to recreate the error: http://www.valil.com/AmazonBookInfo/TestHyperlinkIFrame.zip (double-click on index.html from bin\Debug and then click on the hyperlink) The error shows up only if the WBA is in the IFrame - if it is loaded by itself it works OK. Thank you, Valentin Iliescu Yes, you are right. It turns out Hyperlin ...Show All

  • Visual C++ How to find out the current window that is active due to your mouse click?????

    Hello, I am writing a dialog based program that will take screenshots while the dialog is minimized. The trigger to take a screen shot is through WM_HOTKEY. I like to use the correct API to take the a window that is active due to user's mouse click while the dialog of the program is minimized. Now, I am using : CWnd * pWnd = CWnd::GetActiveWindow() ; while the window I like to take screenshot is active after mouse click. But when I debug it, pWnd is empty and giving me error. Any idea Please help me. Thanks. I believe GetForegroundWindow will be a better way to do this. vcboy wrote: H ...Show All

  • Visual C# Paint

    Hello, I want to create free lines like this: good f ree line , I have figure out this: private void pic_MouseMove( object sender, MouseEventArgs e) { if (shouldpaint) { if (BPen.Checked == true ) { Graphics graphic1 = Graphics .FromImage(Tmp1); graphic1.DrawLine( new Pen (Color1), e.X +1, e.Y, e.X, e.Y); pic.Image = Tmp1; } } } But that gives this lines: bad line , can somemoene help me to make good free lines DIII You need to draw lines from the last point you drew, not just where the mouse happens to be. So, store X and Y from your event args, then then use those co-ordinates fo ...Show All

  • SQL Server New Query Connect Dialog

    The "Microsoft SQL Server Management Studio" opens a connection dialog with every new query. Please tell me there is setting to prevent this. Thanx, Greg I think this is semi-related to your thread, so I hope it's cool to post this here. If you have a query window in SSMS, and drag and drop one or more script files on it, it prompts you for the database to connect to, for each file you dropped. In 2000 query analyzer, it will automatically connect each file to the same server and database. Do you know of a way to accomplish this in 2005 ...Show All

  • SQL Server Table partitioning with multiple key coulmns

    Hi champs! I have one table with around 600 million records. I want to partition this table on 5 different coulumns. year, month. coulumn3, coulumn4 and coulumn5. How do I do this best What is the best way of doing this; is there any best practice on ths The obvious thing is to make a partition funktion based on the year and month coulmns, but I also want to partition on coulumn3, coulumn4 and coulumn5. Many thanks Kurlan You can only partition on a single column, unfortunately.  Plus, there's the issue of partition elimination.   While you can probably concat ...Show All

  • .NET Development MailMessage + Attachment Question =P

    So I've got a little problem that is driving me nuts, hopefully someone has seen this before. What I'm doing is I'm setting up an SmtpClient and a MailMessage and using the two to send an email with an attachment. The attachment is a log file (*.log). So I set everything up and the mail will send just fine and the attachment is there. The problem occurs if I try to access (append text or delete or any other FileIO action) the attachment after the send occurs. I get an IOException telling me that "The process cannot access the file "c:\temp.log" because it is in being used by another process." The file isn't being used by ...Show All

  • Windows Forms DrawString() - ignoring format?

    hi heres the code ***************************** this->format = new StringFormat(); this->format->Alignment = StringAlignment::Near;// this line works this->format->Trimming = StringTrimming::EllipsisWord;// this line doesnt this->gr->DrawString(text, this->font, this->colour, this->area, this->format); ***************************** the text doesnt fit within the area specified. but its not being trimmed, even though ive specified stringt ...Show All

  • Visual Studio How to get current line number

    Hi, How can I get current line number via VS.NET macro I know it is Line property but I still get error when I call it. Probably I am doing something bad. Thank you . This seems to work in Visual Studio 2003: Sub LineNumber() Dim objSel As TextSelection = DTE.ActiveDocument.Selection Dim objActive As VirtualPoint = objSel.ActivePoint MsgBox("You are on line : " & objActive.Line.ToString()) End Sub   Hope that helps! --Tim Farley    SPI Dynamics ...Show All

  • Visual Basic VB app. that uses printer

    Hello, I'm still rather new at this so I apologize if this information is already up somewhere and I simply haven't found it yet. I'm looking to write a simple VB application that can use the printer to print out lines of text (graphics would be even better), and is able to be deployed on other computers with the .NET framework. I've been looking awhile but haven't found any good basic step-by-step explanation/example of how to do it. I'm using VS.NET 2003. I know the Toolbox has Window Forms for "Print Dialog," "Print Preview Dialog," "Print Preview Control" and "Print Document" but I haven't figured out how to use these yet. Can ...Show All

  • Visual Studio 2008 (Pre-release) Transforming An Element...How to get initial coordinates?

    I have some images in a grid. When an image is selected I want to center in the window and scale it up. I can use the transformation matrices on the images, but I can't for the life of me figure out how to get the initial coordinates so I can compute the translation offset. Also...is there a way to dynamically adjust z-position so that a selected image will always appear on top of other images Thanks! 3rd time editing this Thanks for the help...greatly appreciated! Yes, I need to animate the zoom and the grid of images should fade to tran ...Show All

  • Visual C++ Can you use VS 2005 and still target .NET 1.1?

    I have a VC++ project from VS2003, and I would like to start using 2005, but I need to compile to .NET version 1.1 for my customers.  I have other C# projects, where I have figured out to do this, but VC++ is not built with MSBuild. So I would like to know, is this possible at all   ...Show All

  • Smart Device Development Smartphone 5.0 Emulator connection problem

    Alright, I'm pissed off beyond limits. I have .net 2.0 beta 2. I can write smartdevice 2003 application and can open emulator w/o any problem but, when I create Smartphone 5.0 project and try to run it, the emulator never shows up. Not only that it also freezes up my .net ide. I don't know what the heck is going on I'm also running norton internet security ( and it worked with it before ) Any help would be greatly appreciated. Thanks. Vladimir I tried this like 3-4 times and it still does not work...thanks though. ...Show All

©2008 Software Development Network