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

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

mr4100

Member List

Peter Huber
arkiboys
pkv
Alberto Acerbis
EricBrown
Prabagarane
James C. Papp
Roy X
sanjeevm
Thomas Greenleaf
iamdon
qt1h00
cnpollux
ArielNY
Dewald Viljoen
Kevinmac
Ranal
Acanthus
ghostnguyen
C#noob
Only Title

mr4100's Q&A profile

  • Visual Basic How to save active page displayed through I.E.6 under text page.

    Hello, I would like , through Visual Basic 2005 command, save under c:\test.txt an active sheet displayed on the screen through I.E.6 browser. I am working Windows XP . Any support will be welcome ! See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1133806&SiteID=1 Sub Main() Dim strHTML As String = _ GetPageHTML( "http://www.microsoft.com/" ) Console.WriteLine(strHTML) Console.WriteLine( "Press enter to exit" ) Console.Read() End Sub Public Function GetPageHTML( ByVal URL As String ) As String ' Retrieves the HTML from the specified URL Dim objWC As New System.Ne ...Show All

  • Visual C++ Has VC a scriptable interface to generate *.sln/*.vcproj files?

    Hi all, the subject pretty much says, what I'd like to know. cheers, aa ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Computeing Color PackValue?

    Does anyone know how the PackedValue propert on the Color structure is calculated Sample: [5769] {R:26 G:16 B:5 A:82} Microsoft.Xna.Framework.Graphics.Color A 82 byte B 5 byte G 16 byte PackedValue 1377439749 uint R 26 byte It is just the 4 components packed into 8 bits each in the order ARGB. You can recreate the value like this: c.A << 24 | c.R << 16 | c.G << 8 | c.B What did you want to use that for Cheers, Leaf. ...Show All

  • Visual Basic Windows Task Manager

    Hi there, Is it possible to have it so the application running can be taken off the current processes running through code. If so please provide a snippet. Thanks, AliQ The thing is that there is no legitimate reason to do this. If someone wants to do this I suspect either that they're trying to do network/system admin work in code or they're up to no good. On the net admin side, if you don't want users to have access to Task Manager, it can be controlled via policies. This is what I've done on point-of-sale and manufacturing system monitoring apps and it works well. As for the "no good" part, this would be a way to cover up spying on users for either legitimate or illegitimate reasons. If you want to try someth ...Show All

  • Windows Forms How do you make a Favourites Menu

    hi, Iwas just wondering if anyone could tell me how to make a favourites menu from scratch and how to program it in C#. Thanks, Zulbaric ok so here we go! Here is a simple application that acts like a favorites menu. Here is the favorite class, be sure to import the System.Xml and System.Xml.Serialization namespaces (using): public class Favorite { private string theDisplayName = string .Empty; private string theURL = String .Empty; private List < Favorite > theFavorites = new List < Favorite >(); public List < Favorite > TheFavoritesCollection { get { return this .theFavorites; } } public string TheDisplayName { get { return ...Show All

  • .NET Development RPC Server Exception

    System.Management. ManagementScope ms = new System.Management. ManagementScope ( "\\\\" + stringMachineName + "\\root\\cimv2" , co); oq = new System.Management. ObjectQuery ( "SELECT * FROM Win32_processor" ); query = new ManagementObjectSearcher (ms, oq); queryCollection = query.Get(); return queryCollection; well guys i am trying to access remote system but in doing this some machines give mein following exception System.interop.Runtime.COmException RPC SERVER IS unavailable (Exception from Hresult:0x800706BA) can u help me this how to solve this Yes, I have verified that the RPC and WMI services are running on the remote computer. I am also able to pi ...Show All

  • Visual Basic daylight.start

    I need to get the start and end dates for daylight savings time throughout the world. I can use daylight.start and daylight.nd to get my local dates. From what I found out is that these routines use timezone.xxx which is normally timezone.local. Does anyone know how I can change timezone.local to a differant country within basic or another way I can get these dates Thanks Richard, Thanks for the reply. I added your code, but now I get: <IPermission class="System.Security.Permissions.SecurityPermThe program '[1964] WindowsApplication1.exe' has exited with code 0 (0x0). ission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version=&q ...Show All

  • Visual Studio Team System Build gets sibling directory trees along with the desired one

    I am working on setting up a new Team Build for my project. In the source control I have a tree with something like: Development\Client\... Development\Testing\... Development\Alternate Client\... I have setup a Team Build and told it to get Development\Client\..., but when I look at the build log it shows Getting... entries for the entire tree, not just the branch that I have specified in the build. This is a problem for two reasons. First, the build takes a long time - MUCH longer than doing it interactively, and I am assuming that this is due to all of the extra Get calls, and second, some of the sibling branches represent abandoned code, which might not always be compilable. Can anyone tell me what I am doing wrong here ...Show All

  • .NET Development ObjectDisposedException

    In the load event for my main form in my C# Windows Forms app, there is a case where I need to call this.Close(); When this happens, I get the ObjectDisposedException thrown. My main routine in program.cs looks like this: using (Form1 frm = new Form1()) { Application.Run(frm); } Any help at all is appreciated!! Your "using" statement is unnecessary, Form.Close() already calls Dispose(). That's however probably not the source of your exception. Be sure to not touch any of the form's properties and controls after you call Close(). If necessary, set a breakpoint on the Dispose method in the Design.cs file and single-step to find out what your code is doing after disposing the form. ...Show All

  • SQL Server Report viewer send print job with a large memory

    i am using reporting service 2005 and report viewer from vs.net 2005. when i send a print job from report view to HP Laserjet 1320, there print job is actually abt 20MB for 20 pages. it happends that the printer will hav problem printing the print job or just hang there.. is there any way to resolve it There was an issue with 2005 that the print control did not get updated correctly if you had the 2000 print control. Is it possible that you have the 2000 print control on the client If so, you can clear the control from the client by going to Tools->Internet Options->Settings->View Objects in IE, then delete the RSPrintControl. The next time you go to use the print control a new one shoul ...Show All

  • Visual C# to _, or not to _?

    The .NET Framework is littered with private variables preceeded with the _ (underscore) character. Is this good practice Or something Microsoft are trying to stamp out Hello, This is truly a debatable topic and many discussions has been already done on it. I would like to contibute a little on it. I worked on .Net Coding standard for my organization about a year back. And from my Study I learnt that Microsoft is moving intentions of their programmers community from old m_ or _ style to new standards which are recomended to be used in .Net. use of "_" and hungarian notation is forbidden. As many other people have said that it depends on the way you feel comfortable I go with this stateme ...Show All

  • Visual Basic Getting a VARIANT* from activex control

    Hi all, I am using Visual Studio 2005, and have created a Visual Basic project where I use an ActiveX control. This control has this method; void getArray(VARIANT *); This VARIANT consists of a CComSafeArray of double precision floating points. Now I want to access this method from a Visual Basic application. As far as I have understood Visual Studio 2005 is using Visual Basic 2005 and that doesnt support the VARIANT data type. Therefore I have tried like this: Dim myVariant As Object = DBNull.Value myControl.getArray(myVariant) Now, my problem is how to access the elements stored in the safeArray which is in the VARIANT Hope someone can help me here! Thanks! ...Show All

  • Smart Device Development Good Book

    Can anyone suggest a good book to buy to help me develop windows mobile applications I am new to this. Also which programming language is best for mobile applications Which language is best Depends on what you're trying to do. Native C++ is the most powerful, but also the most difficult to learn and use. Any managed .NET language is relatively easy -- the same as regular .NET languages, but only supporting a subset of functions -- but doesn't (yet) give you full access to the capabilities of the device. That said, C# or VB.NET are probably fine to get started -- 80% or more of what you might be looking to do, you can probably do in .NET languages. As you get into more complex operations -- TAPI stuf ...Show All

  • SQL Server int vs smalldatetime?

    Both are four bytes, are there any reasons to choose an int for a PK over the smalldatetime Thanks, yeah - I know, strange question. I am trying to optimize for space since I have several billion records, and the field is currently a datetime (8 bytes). Since I don't need that precision, I was going to truncate to a smalldatetime / int. A coworker mentioned that an int was "faster", but I couldn't really see why (at most there's 1 more operation to convert the string smalldate into the underlying int representation, but that's hardly something noticeable). ...Show All

  • Visual Studio 2008 (Pre-release) UsernameToken over Certificate authentication

    I need to use client certificate to validate the domain of the request and user name token to validate the user in that domain. I know that this is a classic case for federation but lets ignore that for the purpose of this post. So the first authentication of the request was through certificates, which was relatively easy. Instead of passing user name and password as arguments to a method, I would like to send a user name token in the request. On the server side, I would like to validate the user credentials in the WCF plumbing. How would I go about doing the second part given that it has to happen right after the first part Thanks. Incidentally, I just made this work through configuration also. Thanks for your help though. Here is ...Show All

©2008 Software Development Network