Michelle A.'s Q&A profile
.NET Development Email Reports
How do I go about emailing Access reports, via Outlook Please stick to one topic for this discussion......(in the other thread you have replied to) yes, COM interop and different than directly invoking the default email client. As they say, there is always more than 1 solution to a problem in most cases ...Show All
.NET Development Downloading files in C# 2.0
Hi, I want to build a utility in C# 2.0 that can download large files (25 GB) kept at a location. If the file terminates in between, it should warn the users. Can someone guide me how to go about it. Which is the best class to use in System.Net Any samples would also help. Thanks , Lalit. I'm assuming you mean from a web-server using System; using System.IO; using System.Net; class TestDownload { private void DownloadFile(Uri uri, string fileName) { WebRequest request = WebRequest.CreateDefault(uri); WebResponse response = request.GetResponse(); Stream responseStream = response.GetResponseStream(); CopyStreamToFile(respons ...Show All
Visual C# Construct Enum dynamically possible ????
I was wondering if it was possible to construct an enum at runtime Let's say i have a lookup table, and i'd like to have an enum for that lookup table. Is it possible to construct the enum dynamically Thanks, Yes, It's called a "Control Designer" (which is what I suggested before). Designers for the standard controls live in the System.Windows.Forms.Design namespace. ...Show All
.NET Development How does Process.Start() redirection work?
Hi All, I've been working on creating a program that automates my program building and testing. I am doing the code in C#, but there is a problem with the StreamReader.ReadLine() function where if it tries to read from a Process output pipe before the Process finishes writing to the pipe, it causes the thread reading from the pipe to block and the process then blocks too. However, if the process is short lived, I have a likelier chance of getting all the output. So now, I'm testing the Win32 API equivelants and a portion that I'm having issues on is collecting the stdout and stderr on process's children processes (the output is collected properly in .NET). My que ...Show All
.NET Development failed to connect to an oracle 8i database
Hello everybody, I hope someone would be able to help me… I need to programmatically talk to an Oracle 8 database located in a remote server. I have installed the client oracle 8 + Toad into my computers (Windows XP) and I have no problem connecting to this database by using toad. Then I added the System.Data.oracleClient dll to my project, imported it and tried to connect via my application, and had the ORA-12560 error. I can’t open the connection. My connection string is : “BaseName. UNIV-PARIS.COM (from the names.default_domain in the sqlnet.ora file); user id= ; password=” Have you any idea of what my problem is Thanks you for your help, Susana Hello, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Capabilities Viewer
If you come from DirectX to XNA you may know the CapsViewer that is part of the SDK. As the XNA framework is based on DirectX the caps are valid for XNA too. Naturally the DirectX version uses the DirectX names for everything. As many things like the surface formats are renamed for the XNA framework it could be hard to use the DirectX Caps Viewer for XNA. Therefore I have written a small viewer which shows the capabilities of your graphics adapter(s) using XNA identifiers. Download I will provide the source later (needs a little cleanup first). ...Show All
Windows Forms Database install question
I was wondering how the datafiles get copied and updated. I came across a link and that looks good. In that there is a psuedo code and I have a question on it, if someone can help me http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=116568&SiteID=1 In this code, there is a variable called customMigrationOrMergeNeeded, I couldn't find it in ApplicationDeployment.CurrentDeployment namespace. Where is it I checked microsoft web site and I couldn't find any either. I can check and see if .pre folder exists in the data folder, but is it still true Thanks in advance. ...Show All
Visual Studio Express Editions open new form
i need the open new form code. it looks something like this: "Dim clone new form1" i dont follow that. it should open it. in addition to the open and save file dialogs, you could apply a filter to only show certain file types http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemWindowsFormsFileDialogClassFilterTopic.asp ...Show All
Windows Forms How to reduce flickering
Hi, I have a form with a panel. The controls in the panel need to be redrawn quite a few times which causes flickering. I have double buffered set to true but that doesn't help. Can anyone suggest how I can reduce flickering Thanks! I'm not sure which control your using. But double bufering should not flicker. Do you swap the buffer right after clearing the second one You should only swap when the buffer is fully drawned. Some control have a BeginUpdate that remove flickering. ...Show All
Windows Forms Setting the mouse cursor to be different on the system settings
I am currently trying to develop a software application that will change the way the mouse cursor behaves on the user's computer. I know the code required to change the mouse pointer when it is for example hovering over a component in the C# form but what I am trying to do is alter the mouse cursor that is used by default on the system as a whole. I am using System.Runtime.InteropServices; already to change the double click speed and mouse speed, is there a similar way I can change the mouse pointer Grateful for any help or suggestions. Thanks for the warning, I know that in most circumstances this would not be a wise move but for this particular user group we are working with being able to change it from ...Show All
Audio and Video Development New HD DVD players
Toshiba recently announced new HD DVD players, the cheapest one is $499. But unfortunately True HD tv's are still very expensive. BTW anyone knows if they support persistent storage, or do all hd dvd players have this as default and how much http://www.hardwarezone.com/news/view.php id=5455&cid=5 128M of persistant storage is mandatory for all HD DVD players. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=415927&SiteID=1 TrueHDs are expensive Where do you live They are pretty cheap in the USA (comparable to tube TVs of equivalent size of ~5 yrs ago). ...Show All
Visual J# how to: simultaneously data transfer between two forms
hello, i have a problem. i have two forms: Form1 and Form2 in Form1 i have label1 and button1. they both are created as public. in Form2 i have a button2. in buttun1's click event, i wrote: Form2 frm = new Form2(); frm.ShowDialog(); and Form2 opens. in the form 2, theres button2. in button2's click event i wrote: Form1 f = new Form1(); f.label1.set_Visible(true); in here, i dont want to close form2. i want both of them open. but when frm1 is not active, when i compile these codes, label1's visible doesnt change. can anyone help me in this subject please. Hi, I think your problem is that you want to interact with both the forms simultaneously. The reason you are not able to ...Show All
SQL Server Different data types
I have successfully made a couple of SSIS packages to read data from a legacy AS400 to SQL Server 2005. These are working fine. I am now working on one that is trying to pull some financial data and I keep getting the following error for the decimal columns: "The component ciew is unavailable. Make sure the component view has been created. The input column "input column AMT1 (2870) cannot be mapped to "external metadata column AMT1(2852) because they have different data types." Now I made sure that the data sitting on the AS400 is of type decimal and the SQL server column is the same. What else do I need to look for Thanks for the information. how did you do that, may I ask ...Show All
Visual C++ VC8 LoadLibrary access violation
I am doing load library but getting access violation CString strModule(_T( "MyWatch.dll" )); HINSTANCE hModule = ::AfxLoadLibrary(strModule); DWORD dwErr = ::GetLastError(); //998 Access violation in one of the dependent module but when I preload them like HMODULE hModule0 = ::LoadLibrary(_T( "gadgetd.dll" )); HMODULE hModule1 = ::LoadLibrary(_T( "gridd.dll" )); HMODULE hModule2 = ::LoadLibrary(_T( "Mylib3_2d.dll" )); HMODULE hModule3 = ::LoadLibrary(_T( "Myclient3_2d.dll" )); HMODULE hModule4 = ::LoadLibrary(_T( "ot900asd.DLL" )); I am getting access violation in my module MyWatch CString strModule(_T( "MyWatch.dll" )); HI ...Show All
SharePoint Products and Technologies Sharepoint Designer + Expression - Frontpage = ?
I just downloaded the Frontpage replacement which consists of two products named Microsoft Sharepoint Designer and Microsoft Expression. From what I can tell the two products are practically identical in functionality. Questions: 1. What is the difference if any 2. It looks to me like I can accomplish the same things that either of these two products are capable of using Visual Studio 2005. Am I wrong I do appreciate qualified feedback and thank you in advance. - ppothier MBA/CIS, BS/BIS, MCSE, CNE, CCNA, A+, MCAD (in progress) P.S. Happy new year and looking to forward to a wealth of new Microsoft products to work with :). ...Show All
