Answer Questions
Chris Adams - IIS Newbie needing help with his n's
I'm relatively new to the c sharp language, and i am making a program that works out the number pattern of an nth term equation. If that didn't make sense to you, it dosn't matter, the bit i am stuck on is how do i read the equation the user typed in and work it out. I guessed that i would have to get the equation into a string, then analyse it somehow to pick out the individual commands in it like multiply etc. I have to admit that wasn't very ...Show All
dimple_dimple Generics and Inheritance question
K, after an hour or so of playing with generics I've already hit my first snag... How do you declare an abstract property to return an instance of a template class that will be instantiated with the type of the derived class (what a mouthful!) i.e.: public abstract class Node { public abstract NodeList< > ConnectedNodes {get;} } public class GraphNode : Node { private NodeList< & ...Show All
XxxFG Print a Header on each page
I'm programatically printing from C# using a class derived from System.Drawing.Printing.PrintDocument which handles line wrapping and multiple pages by overriding OnPrintPage(). This is all in the Microsoft example. Is there a handy way to print a header on each page, for instance the way notepad does, with like a title and the page number Or customize the print dialog so as to get header and footers like in notepad, excel, IE, etc ...Show All
Trent Swanson !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! This makes me laught! You are kidding, right All the .NET Languages just create MSIL code, so the .NET Framework is allready only for 1 language. But please tell me, what is wrong with a 3 ...Show All
Dan Ribar serializable class
Help!!! I need to create a serializable (xml style) class to write it on a DB field (type memo/text on sql). This class contains a collection. To understand i have a db of similar things with a Levels field. Here i want store the level structure, style xml. <Level1 name=""> <level2 name=""></level2> </Level1> Give me some indications to write this class and some code to start, please. ...Show All
faf38 Auto Posting Web page
i need to have a Web page automatically refresh itself every 5 min without any user intervention. It contains a datagrid,a code behind file and displays data from a MSSQL Server DB. Thank you for your support <META HTTP-EQUIV="REFRESH" Content="20; URL =Page.htm"> This will refresh every 20 seconds. Dan Thank you for taking the time, it worked perfectly! Muchas g ...Show All
webdev writing images from SQL in a table...
Hi, I would like to know if there is a way to print in a html page a table with 4 images, and it's description queryed from SQL Server... Like, I have already a page, and in the body, I have <% response.write(table) %> And in my .cs I insert all html....and together with this html I need to put the image !!! Thanks what you'll need to do is make additional http requests to another file that will retrieve the bi ...Show All
Allen LeRoy how to grab port 80 from IIS
Our Server application will be outside the firewall which is publicly published. And our Client application is an intranet web application which will be inside the firewall. So here we are using one component on each side which will acts like a web proxy. Component at customer side will establish a connection with publicly available Servers component. So if the machine where this server component is running has any web server like IIS, we can ...Show All
salyok !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! ahh, just screw em! Hahaha, just kidding, that's a good point. They should have just made it part of WindowsXP install originally, but oh well, I guess we just have to deal with it. ...Show All
SanjeevUpd ToString() -- 'No overload for method ToString takes 1 argument' error
Hi: I'm trying to display a dateTime value in the format '07/31/06' but when I use the ToString() as follows I get the above errormessage, despite the fact that the documentation clearly shows that ToString( string ) exists. What's up with this string timeStr = myDate.ToString("mm dd yy"); I also tried string timeStr = myDate.ToString( "d"); with the same result... Thanks for all help! John F. ...Show All
Alberto Ramacciotti (not working still) :-( keypress style for alphanumeric textbox help plz
hi, i am very very new to C# and although i am used to VB 6 and a bit of C++ andJava .. i cant seem to find how to control the inputs on a text field. i need a filter for my textbox that only accepts alpha numeric input. i was thinking over the line of having a keypress event and checking at textbox_change that each char is alphanumeric. how to do this. plz can anyone give me a skeleton or the textbox_TextChanged function! I am using Framework ...Show All
Kenneth H How to open a window
Hi, I have made a button and by clicking on it a new window opens. The code in the button is Form myForm = new Form(); myForm .Show(); This works fine, but how do I actually work on myForm visually Or how do I make myForm one of the files of my project I'm using Visual C# 2005 which includes .net. Thanks, Behrouz Hi, I did that but the visual form (that was added from the Add New Item) does not have an ...Show All
Gholson Interop and Struct
Hello all, I try to call another dll from C# but so far it's not returning the result that I want. And I think the problems are reside on the way I declare the unmanaged code. So If I have following class in C++. How should I declare the unmanaged code in C# typedef void * MQISDPCH; /* Connection Handle */ /* Information required for MQIsdp server connection */ typedef struct struct_SVRS { long portNumber; char ipAddress[MQ ...Show All
mowalker Why I can not get image from Northwind Database ?
I can get image from my own database into picturebox but I can not do this with Northwind database. Please tell me how I can get image from this database. Thanks a lot Please tell us why you can't! What kind of exception do you get Please, what is your problem, where is the faulth located, what goes wrong, why you can't get it Can you please provide us some more information. [code language="c#"] //Original code ... ...Show All
Fiumag What does this error mean?
I recently started learning C#, and I am now trying to play a video file in it. I tried out something simple as follow, but i get error when I try to debug this. (Without debugging it doesn't give any error which is strange) The error is included following the code: private void button1_Click_1( object sender, EventArgs e) { Thread aba = new Thread ( new ThreadStart (targ)); aba.Start(); } public void targ( ...Show All
