Answer Questions
mrehpine How to convert Image files to stream...
Hi, How to conver an image files like bmp, jpg, gif, tiff, etc into Stream or MemoryStream. The image may be from local disk or database like Northwind. Cheer. Prabu - It looks like your first question was answered. As for your second question, it would help to split this into a seperate thread (it helps keep question/answer pairs more clean). Also, I'd try the SQL Server Data Access Forum. Forum for data access to SQL Se ...Show All
Johnny D Whats so great about BCL's
I was wondering what features does the base class libraires add when i am programing in C# are there certain features that i need to know dealing with the .Net Framework...and what is a good book for Intermediate-Advanced C# programming Hi, Everything that you need is in the Base Class Libraries. C# language only provides syntax for using them. Here are some good books which you may want to buy for C#: Programming C# (Third Editio ...Show All
AndrewWhitechapel Releasing and Excel Object
I have creaated an excel file in my code and access, populate and download the Excel object fine. After the Download occurs, I need to Delete the file on the Server. I Close the sorkbook and THe file with the code below. However when I delete the file I get the exception that says the file is in use by another process. Any thoughts from anyone on how I release the file before Deleting it objExcel.Workbooks.Close(); objExcel.Quit(); ...Show All
diddlewotsit Copy Local Fails
I have a large solution (16 c# dll projects, 1 c# exe project) where the dll projects are project references of the exe project. I have set copy local true for all the projects. The problem is on alternating rebuild-all builds one or two of the 16 dll's are not copied into the exe's bin/debug directory. On the good build, all references are there and on the next build, some of the dll's are missing. Any suggestions SB ...Show All
DF WOSC alexandrpaul's problem
i have the same problem anayone with a suggestion about stop closing the application when the user presses the X button thanks I dug back to the previous post, and I understand the question now. private void OnFormClosing( object sender, FormClosingEventArgs e) { e.Cancel = DialogResult .No == MessageBox .Show( "Close " , "" , MessageBoxButtons .YesNo); } This works fine for me he ...Show All
MADCookie Transparent background
Hello.I have a question.I use VC# and I wan' to create a nonrectangular form.I have create the background image with the transparent key: blue, but when I compile the project the application is not transparent! I most change the color depth of my Windows environment!!! This is a big problem.When the user launch my application, I cannot tell him: "Hey!Change your color depth to 16 bit because the applicatio ...Show All
Johnny_R2 How to catch windows messages in normal class
Hi, During the development of a project with threads i was supposed to use windows messages. I know how to catch windows messages in forms, but not in a normal class. Can anybody help me with this problem With kind regards, Jeroen Olie Look at the documentation for IMessageFilter. This allows you to specify any class to get a peek at Windows' messages flowing to your application, even if that class is not a Form or Control. ...Show All
TimFitzpatrickmsdn Is it acceptable to have code in get or set?
Absolutely every example I find on the net with regard to C# properties go like this: private string label; public string Label { get { return label; } set { label = value; } } My question is: is it acceptable to put code in the getter Where do you draw the line > is it acceptable to put code in the getter Yes, definitely. > Where do you draw the line Code in a getter should not modify the state of ...Show All
Grigoriy Pogulskiy How C# talk with Flash Communiaction Server
Hi buddies, do any body gone through, how C# communicates with Flash Communication Server any idea.. please help.. thanks, Vinu Thanks Vikram. This link is very informative. Regards, Vinu Hi buddies, Can anybody please help me with a sample code or any article on how C# communicates with FCS via remoting. Regards, Vinu Hi V ...Show All
Iainr Problems connecting to application over network
Hello, I have an application that I have developed via C# Express that uses a SQL Server backend and I have successfully installed it on a Windows 2003 server using ClickOnce deployment. My first question is this. What do I need to do in order to launch this installed application from a client machine Currently if I try to create a shortcut to the installed application on the client, the application will not launch. But it runs fine on the ...Show All
Paul Stubbs - MSFT how to dealloc memory allocated by COM server?
Hello, (I accidentally posted this question previously in the Visual Studio General forum, when I was intending it for the Visual C# General forum. My apologies for the duplication.) In my C# client, I am calling a COM server's method that allocates a buffer and returns the buffer and its length. It is the responsibility of the client to deallocate this buffer, but I do not know how to do so in C#. The .NET signature looks like: ...Show All
Jan Pukovec Forms conversion guide
I've found a guide on the ASP.NET conversion necessary from Beta1 to Beta2. Is there a guide on the net for converting Forms applications from Beta1 to Beta2. The Beta2 compiler gives all sorts of Designer generated code errors when building a Beta1 product on Beta2. Most of this code is not edited directly by C# forms developers so it would help us to have a conversion tool or guide to editing the Designer file for Beta2 compl ...Show All
J1102 windows messages
How can i learn windows messages... like mouse move keydown.. When the mouse mouse what is windows sending to my app is there some article about this like is very long and i dont really understand all of whats there Spy++ is an invaluable tool for logging window message activity. It comes with Visual Studio (and possibly the Platform SDK, I can never remember). ya i know i bhave spy++ from VS2005 but i`m not actualy ge ...Show All
Wokoek HTML Pagination
Hey All - I'm taking a datatable, converting it to XML, transforming that with an XSL file, and then sending the HTML string to a WebBrowser control in a local WinForms application. Is there a way, via the HTMLDocument class perhaps, to control the pagination of the document For example, after the table occupies a certain height, the table concludes, and a new table, containing the header of the first table, is inserted and continues display ...Show All
markep12 trouble using delegate in WndProc
when i use delegate like this: ----------------- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void WndProc(ref Message m) { delegate_ReplyFromDataProcess = new PrepareDelegate_ReplyFromDataProcess(ReplyFromDataProcess); delegate_ReplyFromDataProcess.BeginInvoke(m, null, null); } delegate void PrepareDelegate_ReplyFromDataProcess(Mes ...Show All
