Answer Questions
::BulletMagneT:: Which is better?
i'm currently developing a Multiple Choice Question(MCQ) application in C#, where student can practise their lesson & participate in an test exam. The test exam will be generated page by page. In each page there will be 2 questions(read from database); there may be more than 100 questions. So tell me which one is better: 1) predefined form for each two questions( it will take 50 forms) 2) forms & control will be generate at runtim ...Show All
RobSmith What happen... class2 a = new class1 (); ?
Hi: Id like what happen in PC memory when I do: a) class1 a = new class1 (); b) class2 a = new class1 (); Id like to know the difference and where there is something to read about it. Thanks While it's important to understand objects, it usually isn't necessary to understand them to the depth that you're going. Unless you're really interested in that type of detail. And I thought the refere ...Show All
Bryan St. Amour adding Favorites Functionality from IE to a Form??
What needs to be done to add "Favorites" Functionality to a Form like in Internet Explorer I'm not sure what needs to be done to get that kind of Functionality in my Project.. Thxs for the Help in Advance.. Set the Group box to Auto Size and set the Dockings for each in the Group Box, Also set the Docking for the Splitter to the Left,Rich Text Box to the Left and left the Picture box UnDocked. ...Show All
Jones Ekvall intercepting onclik
Strange request... I have a program written in asp.net and vb. I want to try to intercept a click on a button with my program. Is it possible I explain better: i want my application (console/win/web) does click of the other program (winform).. thx winform... yes you have understood! It will be difficult, you can do it with putting messages in the message queue i think. But that is hard and can not be done with manag ...Show All
M.L BUG: Namespace conflict & missing assembly error?
Hi, I'm running VS.NET 2003. I have a web project called Com.Test.Site and it includes/references an assembly Test.Net.Mail. When I try compiling I get the error "The type or namespace name 'Net' does not exist in the class or namespace 'Com.Test' (are you missing an assembly reference )" VS.NET mistakenly looks for 'Net' in 'Com.Test' instead of 'Test.Net'. The assembly is properly included and I can tell VS.NET is looking at the wrong place ...Show All
Hery Susanto WR large datasource causes slow datagrid response
I create a datasource with one master table and 7 related tables. The form has 7 tabs with datagrids to display the tables. There is also detail fields on the bottom half of the tabs. We followed the walkthrough logic of dragging the datasource relations onto the grid and form. We added parameters to the dbconnections to minimize the data fetched. It seems to be running very slow. Just moving the cursor to another row on the datagrid has a notic ...Show All
overture MFC OnKeyDown's UINT nChar vs KeyEventArgs in c#
Is there any way to get the equivaleny UINT nChar (used by CWnd's OnKeyDown method in MFC) from a KeyEventArgs instance in c# You can use the KeyCode and cast that to a Char or you can use the KeyValue property. What is the problem your are trying to solve I don't know what kind of output you expect, but i have made a little example. The ToUnicode method, is that a custom method private void cont ...Show All
Vicki Ecker FileStream and writing out in chunks
hi all, i have a byteArray i read into from a httpposted file, i would like to write it to a new filestream in chunks of a size i specify. I can write the file out no problem at once, using myFileStream.Write(byteArray,0,postedFile.Length) but i want to break it up into chunks so that it stores smaller amounts at a time and doesn't kill the aspnet_wp. i have tried FileStream newFile = new FileStream(fullSavePath + sFilename, FileMode.Creat ...Show All
Chris Cosgriff C# equivalent to C "union"?
Is there a C# equivalent to the C union typedef I have a 64 byte array that can either be byte or int (USB data packet). I would like to be able to access these bytes as either type. In C I would declare: typedef union byte_array { struct { byte byte1; byte byte2; byte byte3; byte byte4;}; struct { int int1; int int2;}; };byte_array ...and access them by: byte_array myarray; mybyte = myarray.byte1; myint = myarray.int1; ...Show All
gpsmobiler creating a COM object with c# and using it in VB6
hello all, I've been searching for some tutorials/walkthroughs to do this, and I have not been able to find anything on it, could anyone point me in the direction any documentation that demonstrates this thanks! -ken Let me see if I understand what you are looking for. You want to write code in C# that can then be accessed from VB6 Is this correct If so then what you are looking for is a COM callable wrappe ...Show All
Joaop_neves file.delete and file.move
Process: Receive an html file through ftp in a folder on server A. C# console application runs every three minutes on server A looking for this file in the ftp folder. If found, the app checks a folder on server B to see if the file exists. If it does, the app attempts a file.delete on the file on server B. If successful, the app then does a file.move from server A to server B. The users are supposed to only open the html file with the browser ( ...Show All
Philip Harris How to Display ASP.NET Template Contents in New Website dialog **
Hello all, in VS 2005 When clickin on New - Web Site- New Web Site Dialog. in this dialog Under Visual Studion Installed Templates. It is showing only Windows Application, Class Library, Windows Control Library, Crystal Reports and Device Applicaion. How to get ASP.NET Web Site Contents (it is suppose to display ASP.NET WebSite, ASP.NET WebService....) i am wondering that why New Website Dialog is not displaying those. where as other PC ...Show All
mkassa 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 What do you want to do If you don't want to close the app, then don't have the button there to start with, anything else is counter intuitive. I dug back to the previous post, and I understand the question now. private void OnFormClosing( object sender, FormClosingEventArgs e) ...Show All
Creative Bind to a private member variable of my own class.
Dear Friends, I have a class with two Member variables inside it as follows : public class MyView { private string name; public string Name { get{return this.name;} set{this.name = value;} } private DataView dv; public MyView(string vName,DataTable dataSource) { this.dv = new DataView(); this.dv.Table = dataSource; &nb ...Show All
PaisleyBud Bitwise operators
I am really new to C# and am still learning its many idiosyncrasies. While learning how to code for the RichTextbox control (I'm reading the book "Beginning Visual C# 2005" from Wrox Press, I ran across this piece of code that has me rather stumped. I know it works but I don't have any idea how it works. After reading about bitwise operators it got me even more confused. The code checks the selected text and changes the FontStyle to Bold ...Show All
