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

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

Encoad

Member List

Bobby Patrick
ramana reddy
ElMagico
GS80
Kees_de_Waard
Mauricio Castillo E
Shawn Carroll
mwoehlke
Rachad
Eric Wirch
laker_42
japt
Rask
.NETPhreak
nunes_David
mohdtmn
Tony Hughes
Hatkesh
oren
White Paladin
Only Title

Encoad's Q&A profile

  • .NET Development SMTPClient sending anonymous on UseDefaultCredentials

    When sending mail via System.Net.Mail smtpClient, I would like to take advantage of using the currently logged in user's credentials to avoid hardcoding login information. I believe this is as simple as mailClient.UseDefaultCredentials = True /* mailClient.Credentials = New System.Net.NetworkCredential("mylogin", "mypassword") */ In my case, sending e-mail is successful when using hard-coded login information as shown above. However, the process times out if I attempt to use the default credentials. Looking on the server side, I see that the client presents itself as anonymous and the server does not respond because it does not accept anonymous requests. I log into a local domain (Windows 2003 Server) wh ...Show All

  • Windows Forms How do I validate an dataviewgrid and also allow canceling?

    I have a datagridview that I'm letting users enter data into. It is unbound...well it is bound to a datatable I create when the form loads. I want to validate the cells. I used cellvalidateing to check for length, if empty, etc. Seemed to work fine. Until I tried to press the cancel button on the form to close the form. I could not leave the datacell. Is there a way to cancel the validating when a certain button is pressed Is there another way I should be validating Does anyone have examples Thanks. The problem is that the cellvalidating event fires first no matter what. So the button press event doe not fire until after. I use the cancel property to say tell if the validation failed. I'm assuming there has to be another way to va ...Show All

  • .NET Development Interop Thread Leak?

    Hi, I'm hoping for a few pointers for tracking down a resource leak. I developed a VB 2.0 indexing application which is using FileNet's Capture COM objects and we're occasionally seeing a fairly serious leak. It doesn't appear to happen consistently (one user has never had one and I can't seem to reproduce it in my test environment), but it does occur regularly in production. I've been using various tools to poke around in a mini-dump (w/ full memory) and I've seen a few potential problem areas, but I can't seem narrow it down any further. Using PerfMon I found that the leak appears to be in private unmanaged memory. When I open the dump in WinDbg, I get this message: This dump file has an exception of interest stored in it ...Show All

  • Software Development for Windows Vista ICredentialProvider

    Did anybody make a successful user logon using the new ICredentialProvider interface My credentials are displayed, but I can't make them to logon. And what worse - after 20 or 30 seconds, the winlogon crashes completely with no recovery possible excepting hardware reset. I thought I basically did something wrong and decided to wait for more detailed documentation or some sample code. But MS doesn't seem to put too much effort on improving their SDK documentation and I also found that at least one other programmer has the same problem: http://msdn.microsoft.com/newsgroups/default.aspx query=vista&dg=microsoft.public.platformsdk.security&cat=en-us-msdn-windev-winsdk&lang=en&cr=US&pt=&catli ...Show All

  • Windows Forms .net 2.0 visual style

    Hi, I am using winforms .net 2.0 It seems that the visualStyle does not have any effect on the controls looks. for example a button looks as if you are using .net 1.0 Any thoughts please With VB.NET: Project + properties, Application tab, turn on Enable XP visual styles. With C#, ensure your Main() function in Program.cs looks like this: [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } ...Show All

  • Visual Studio Team System Cannot pass a GCHandle across AppDomains

    While working on my Automaton framework for build automaton with Team Foundation Server I've come upon this rather cryptic exception. It seems to happen only once in a while, something I'm able to do successfull requests without this exception. What I have is an .ashx which returns some HTML content to my .aspx, and the .ashx is called using Xml Http javascript call (AJAX). The error occurs when I try to read the .WorkItems property on an instance of the Changeset class. Full exception stack: [ArgumentException: Cannot pass a GCHandle across AppDomains. Parameter name: handle] System.Runtime.InteropServices.GCHandle.InternalCheckDomain(IntPtr handle) +0 System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value) +92 CPr ...Show All

  • Visual Studio Call Exe within .proj file/ MSBuild

    Hi, How can I call an exe from MSBuild or How do we include an exe call within MSBuild I'm new to this.. Please help me... :( ...Show All

  • .NET Development Partial File Downloading

    I want to download file from 3,221,225,472 bytes (3 Gb) to 3,328,599,654 bytes (3.1 Gb) for example Windows Vista Beta ISO if I use HttpWebRequest.AddRange Method (Int32, Int32) occure exception: "System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: The From or To parameter cannot be less than 0. at System.Net.HttpWebRequest.AddRange(String rangeSpecifier, Int32 from,Int32 to)" because 3,221,225,472 > MAX(Int32)=2,147,483,648 How can I download from 3,221,225,472 bytes (3 Gb) to 3,328,599,654 bytes (3.1 Gb) This is what I used, it seems to be faster: public delegate void _AddRange(HttpWebRequest httpWebRequest, string rangeSp ...Show All

  • Visual Studio Express Editions = and != operator

    Hi everyone, In C++ while using == and = operator, if we do not overload them, while using for our classes that we create, does it cause to any compilatio error If not, would you please explain that how the compiler make comparison between objects When we use = operator, if we do not overload copy constructor, what does happen Thanks No, no error, but it's not common. Normally you just do A a; or A a(2); if you have a ctor that takes parameters. ...Show All

  • SQL Server Cannot install SP1 on SQL Server 2005 (64bit)

    Hi, I'm having problems installing SP1 on one of our servers. If I try to install the x64 version of SP1 setup says it can not update my server and I should use x86 version. Trying to install the x86 version results in the message I should use x64 version.... Any ideas Regards, Jan Hi, no I didn't run this package but SQLServer2005SP1-KB913090-x64-ENU.exe (most of our server are german version). With the englisch version installation worked - thanks for the great support. Anyway, the error message is a bit misleading... Regards, Jan ...Show All

  • .NET Development "Plus equals" pattern in IL gives incorrect results

    When people claim to have found a bug in the CLR, I am normally the first person to tell them to go back and find the bug in their own code, since that is far more likely than the problem being in the CLR itself, given how stable the runtime has been since its release. However, I believe I have isolated a case where the runtime, or something operating at or below the IL level, is behaving incorrectly. (Note: the problem I describe here only occurs in version 1.1 of the CLR; version 2.0 does not appear to be affected) This case evolved from a bug I was having in a VB.NET app, but after disassembling the app and playing with the IL code, I am confident that the problem has something to do with the IL itself. Basically I am performing a "p ...Show All

  • Visual C++ Pointer Syntax Question

    Hi folks, I recently migrated from VS 2003 C++ to 2005 C++ and started a new WinForms project to test a few things. Something I noticed right away was that the design environment was declaring pointers to objects with the ^ character, rather than a * - and my usage of * was causing errors. What's going on here I've seen the same thing in the MSDN Documentation for a lot of the .NET sample code, but I'm not sure what ^ means and when I should use it... and what has happened to * -Zero Please see http://msdn2.microsoft.com/en-us/library/yk97tc08(VS.80).aspx ...Show All

  • SQL Server SQL Query Help

    I got a form to return a cd by just entering the movies id. What i want it to do is add a fine to the user if the cd is late and then add it. So i know i need to times the price by dayslate. Rent table contains: cd_id, Member_id, date rented, datedueback, returnedDate, dayslate cd table: cd_id, title, price_band price band: price_band, price, daysRent Member: Member_id, name, fines, noof_cds_rented How should i go about doing this and most of all what would the SQL be to do this Change of plan guys was making it to complicated for myself. What i'm going to do is have two SQL querys. What i need to do is just get the the price of the cd being returned. For this i ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA Course at my local community college

    I just got a flyer in the mail about a non-credit course my local college (Miami Dade College) is offering. Its bout 4 saturdays, 3 hours each. $339. Game Development: XNA Game Studio Express - $339.00 Pre Req - N/A XNA is targeted at students and hobbyists for game development. XNA Game Studio lets developers target both Windows and Xbox 360. You will learn:Visual Studio C# Programming Basics, Network Play basics, input control basics, and Sound Basics;2D Sprites versus 3D game creation, using 3rd Party gaming engines; The XNA Framework, a set of managed code development libraries that make it possible for game developers to be more productive when creating games for Windows and the Xbox 360;The XNA Framewor ...Show All

  • .NET Development Best way to create multiline T-SQL in .NET?

    Hello, What is the best way to create multiline T-SQL commands in .NET besides just concatenating a bunch of strings together Thanks Tom Just to add to Greg's reply, the advantage of a SPROC (Stored Procedure) is not only to save you time from typing out the statement, but is much securer than the existing method you are using as well as being faster since it's already compiled at the SQL end. It's also pretty much better practice overall and advisable to use SPROC's than the standard SQL string commands as you are doing now. ...Show All

©2008 Software Development Network