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

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

XiaoFaye

Member List

pbd
pbarnsley
AVD
Ryan Byington
MGrant
msdmo
Dominic Morin
nosajis
jmsides
tekra
******
eric_c007
puy0
Xavier Divini
Mish87879
mangs_22
Eric Oostergo
Daigo Hamura
Vipul123
Jeffrey Liu
Only Title

XiaoFaye's Q&A profile

  • Visual Basic How insure something runs when form is loaded

    I had a problem today of not being able to make a certain textbox on a winform receive focus at run time. That is, I had code in the Load event something like "textbox.focus", but when the form was loaded the textbox did not receive focus. I figured the problem out (thanks to this forum) and found two different ways of dealing with it. One was to simply change the code from textbox.focus to textbox.select. Another was to put the original textbox.focus code in another event; the shown event. Though the immediate problem is solved it raises another question I have come up against numerous times in VS 2003. I wonder if VS 2005 h ...Show All

  • Visual Studio Express Editions OOOPs wrong uninstall

    I unistalled .net framework ver 2 beta 1 before uninstalling CTP of Sql express now I can no longer uninstall sql express should I just reinstall .net 2.0 beta 2 and then uninstall SQL Express and everything else.  Thanks Please try to re-install Framework back before trying uninstallation. The order to uninstall SQL components matter as well. It is order of SQL express first, SQL tool and SQL native client. Uninstall instructions for pre Beta 2 Express products chemas-microsoft-com ffice ffice" /> > > http://lab.msdn.microsoft.com/express/uninstall/   ...Show All

  • Visual Basic include attachment in SMTPMail

    Hi, I would like to ask how to attach a file as an attachment in the mail. i have try but it does not work. however, no error message was produced. this is my code: Dim message As New System.Web.Mail.MailMessage message.To = "li-ching.ooi@avagotech.com" message.From = txtMail1.Text message.Subject = txtsubject.Text message.Body = txtMsg.Text message.Attachments.Add(txtAttach.Text) 'Try ' SmtpMail.Send(message) Try SmtpMail.SmtpServer = "relay.smtp.avagotech.net" SmtpMail.Send(message) The following has an example of just what your looking for. http://www. ...Show All

  • Visual Basic Vertically center a drawn string

    Hi, Is there an easy way to vertically center a string drawn with the DrawString method The following code will center the text horizontally, but I haven't found how to center it vertically (apart from calculating the position myself, of course...): Dim StringFormat As StringFormat = New StringFormat() StringFormat.Alignment = StringAlignment.Center e.Graphics.DrawString("Some text"1, New Font( "Arial" , 10), New SolidBrush(Color.Black), New Rectangle(10, 10, 100, 100), StringFormat) Thanks, Patrick Hi, Perfect ! That was easy, but I could not find it !! Thank you. Patrick ...Show All

  • Windows Forms ClickOnce Install Error

    I am new to the concept of click once, but liked the concepts.. Putting it into practice seems to be a little harder than I expected though.. App scenario. Winforms app that uses a webservice located on the same site that the app is going to be click onced from.. Webservice uses default aspnet account to access a database via stored procs.. I did a&nbs ...Show All

  • Visual Studio 2008 (Pre-release) ListView, I would like somthing like SelectionMode.None ?

    I know it’s a little odd. But is there a way to make the ListView “readonly”. I was thinking something in the line of: ListView1.SelectionMode = SelectionMode.None; I know I could just ignore the SelectionChanged event. But the problem is that the styling shows that an item is selected. Best regards,   Thomas S. Andersen   BTW, as a workaround I'm using this at the moment: ListView1.SelectionChanged += delegate ( object sender, SelectionChangedEventArgs e) {     (sender as List View ).SelectedItem = null ; };   You should just be able to change/remo ...Show All

  • Visual Studio QuickWatch-ing ADO.Net objects

    Why does the QuickWatch not show any data inside most ADO.Net objects For instance, if I have a DataTable, I can see its name and structure, including the RowCollection, but I can't get get to the data in it, e.g., I can't reference items (the dreaded " cannot view indexed property"). Is there a way around this (other than writing tons of code that copy the data to other objects) Thanks. Kamen Right, it doesn't work in C++ for me either, but I think it's supposed to (at least the visualizer, not sure about the syntax for the Watch). Personally, I still use C++, but only for unmanaged applications. Whenever I'm writing ...Show All

  • Visual Basic How can I override the "always on top" property of the Windows taskbar?

    I'm writing a windows application in VB.net that I would like to give to other users.  I've discovered that the Maximized appearance at runtime of my startup form is partially obscured at the bottom by the Windows taskbar if the user has set the property (via Control Panel) of the Windows taskbar to be "always on top" of other programs. I need the full client area of my start-up form to display various pieces of information, and an always-on-top Windows taskbar obscures some of that info.  Is there a way, programatically, that I could turn off the always-on-top property of the Windows taskbar for the duration of my applic ...Show All

  • Visual Studio Express Editions how to use a control using a string

    Hi All, I want to change the properties of a control, by calling it names. I have several labels in my form (L1...L100 for example) and in the code I want to select one of these label, using a string ("L" & i) in order to modify it property. I can write Activecontrol=L2 But not Activecontrol= Numlabel where numlabel = "L2" But if L2 is a result of a calculation how can I select the proper control. Not sure it is clear ( ) thanks, VSC I dont think the method u said is posible. However, i can give u alternate solution , make a class which inher ...Show All

  • Visual C++ code doesn't working, help.

    In Win32 project i have a code, that simmulating a left mouse click on Windows Start button and it work very well: #pragma comment(lib, "User32.lib") Add that just after the #include to <windows.h> (or anywhere else you find convenient for that matter) Alexxey wrote: In Win32 project i have a code, that simmulating a left mouse click on Windows Start button and it work very well: ...Show All

  • Smart Device Development Where can I find/request/buy the Windows CE .NET 5.0 Product Key ?

    Subscriber downloads have Windows CE .NET 5.0 under the Developer Tools->Windows CE tools. I downloaded all 6 CDsand when I try to install it it asks for a Product Key. I looked into the download page (sometimes they have product keys in there) and also at my Product keys sections but there is no such key. Where can I find this key I am not clear on how you are doing this scenario. Is this off of your MSDN subscription or is this the evaluation edition The eval edition should not require a product key. If it is MSDN, I am assuming you have the Academic SKU Please let me know. ...Show All

  • Visual C++ Vs.Net 2003 Lib/Dll for VC++6.0 Developers

    Hello, We have been working with VC2003 to build a programming library which we deliver to several other people. One of them has to use VC++ 6.0 1998 and has asked if it is possible to use our libs (built with VC2003) with VC++ 6.0. Obviously the linker fails when he tries to do so. Is this possible to convert newer libs to the old lib format Thanks, mderdem I believe the answer for both is NO unless other folks has other ways. You might try linking statcially the libraries in both versions to avoid runtime breaking changes. Support for the VS6 compiler offcially expired and hence I don't believe the bi ...Show All

  • .NET Development What does the "local-name" mean?

    What does the "local-name" mean After you read the code below, could you tell me what the "local-name" mean is the "local-name" a constant //--------------------Code------------------------------- declare @my xml set @my=' <Folder Name="Root" Id="a6dce8fe-749c-4e38-ab2f-3d03d9711b3d">   <Bookmark BId="f8dce8hj-846c-4e38-ab2f-6d03d9711b80">     <Title>CodeGuru Forums - ASP.NET</Title>     <Url>http://www.codeguru.com/</Url>     <Description>This is a good site</Description>     <InputDate> 2005-12-23</InputDate> &nb ...Show All

  • Visual Studio HELP HELP HELP Debugger doesn't parse through the file set with breakpoints

    Someone has asked this before but i didn't see any replies to it. I'm running a local copy of a project that already exists on VSS under a different project name. I've changed the code in the local copy and need to debug it, however during debugging any breakpoints set in the local copy point back to the exact location in the VSS copy i.e. while debugging it opens up the VSS copy and sets the breakpoints there even though I see that it is running local copy in the browser. I've done rebuild proj, solution, start/stop IIS, reboot, deleted VSS copy breakpoints in the breakpoint window, deleted cache using VSTweak, so far no luck. PLEASE HELP ...Show All

  • Visual Studio Help still broken

    Just installed the release version of VS2005 standard. Alas, F1 help is still broken. If I position the cursor over a word (for example HANDLE) and hit F1, the following happens: 1. If MSDN is set to use local help only, it always displays the topic-not-found page, even though on the left hand side, the topic is not only present, but selected. A single click on the highlighted item displays the correct information. 2. If MSDN is set to use online help first, then pressing F1 takes up to a minute (looks like multiple redirections happening), then either displays the topic-not-found page or displays something only vaguely related to the select ...Show All

©2008 Software Development Network