Hi any one have any clue to How to write a System.IO.Straem to a file on local disk Thanks in advance :(( P.S. PATWAL
pushpi
Posts
-
write IO.Stream to a file -
Horizontal scroll not working with OwnerDraw (List box)i did that !!!! for c#'s sake !!! check the code P.S. PATWAL
-
Horizontal scroll not working with OwnerDraw (List box):(( hi friends i am working with listbox The problem :Horizontal scroll is not working as expected when i use OwnerDraw mode MeasureItemEventHandler please help regards and thank you in advance /**************** code ************/ using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace WindowsApplication1 { /// /// Summary description for Form1. /// public class Form1 : System.Windows.Forms.Form { /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 266); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); } #endregion /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.Run(new Form1()); } private void Form1_Load(object sender, System.EventArgs e) { InitializeOwnerDrawnListBox(); } internal System.Windows.Forms.ListBox ListBox1; private void InitializeOwnerDrawnListBox() { this.ListBox1 = new System.Windows.Forms.ListBox(); // Set the location and size. ListBox1.Location = new Point(20, 20); ListBox1.Size = new Size(100, 100); // Populate the ListBox.ObjectCollection property // with several strings, using the AddRange method. this.ListBox1.Items.AddRange(new object[]{"System.Windows.Forms", "System.Drawing", "System.Xml", "System.Net", "System.Runtime.Remoting", "System.Web
-
Exchage server 5.0Hi i want to access exchane server services through .NET , Does it have some object model sort please guide :(( P.S. PATWAL
-
Exchange server 5.5Hi i want to access exchane server5.5 through .NET , Does it have some object model please guide P.S. PATWAL
-
Exchange server 5.5Hi i want to access exchane server services through .NET , Does it have some object model sort please guide P.S. PATWAL
-
problem with modal dialoghi i have opened a modal dialog box using following script retSearch = window.showModalDialog('SearchCompany.aspx',oArg,'status:no;dialogHide:false;help:no;scroll:yes'); problem is when i submit SearchCompany.aspx form i get result in a new browser window , how may get the result to be in same browser window i have used target option of frame = "_self" , which is suppose to open page in same window !! any helps the dialog window works with html file ! problem occurs only when i use asp/aspx page i.e. when i submit window ! any idea whats wrong !! ? P.S. PATWAL
-
problem -- modal dialog boxhi i have opened a modal dialog box using following script retSearch = window.showModalDialog('SearchCompany.aspx',oArg,'status:no;dialogHide:false;help:no;scroll:yes'); problem is when i submit SearchCompany.aspx form i get result in a new browser window , how may get the result to be in same browser window i have used target option of frame = "_self" , which is suppose to open page in same window !! any helps the dialog window works with html file ! problem occurs only when i use asp/aspx page i.e. when i submit window ! any idea whats wrong !! ? P.S. PATWAL
-
problem using client side validation and Attributes.Addhi i am facing problem !!! Background : As i understand , if we use validation controls in .NET we get an autogenerated javascript to validate control. Problem : My problem is when i use control.Attributes.Add("onClick" , "alert('working')"); on some web control which has CausesValidation as true it never works !!!! and more so, i get two Onclick event call code for the same html control , when i check source of update d html (one of them being for validation control !!) , ..pushpi any answers for the problem or may be some well known workaround ! P.S. PATWAL
-
whats eqivalent for cursor in ADO.NETHi i am newbee in ADO .NET , just curious to know ,whats equivalent to cursor in ADO .NET or how does ADO .NET uses Cursor and LOCKS !! X| P.S. PATWAL
-
SQL connection problemhi thanks for paying attention to my query i got solution for my problem i just needed to use transation for updates :rolleyes: thanks again ! P.S. PATWAL
-
Multiple connection problemeither make ur query serialised or change lock type P.S. PATWAL
-
Using Com in MTSHi , u are bit confused as i was when i started studying COM . COM & DLL ========= DLL is simply an extension for library component,which are ofcourse COM components ,yes dlls are COM DIFFRENCE ========= u may say dll are subset of COM (although this relation is no good u can't compare them ) COM is a technology ,Dll is just an extension to a library file ,which is made using COM standard USE OF MTS ========== MTS handles/is used for following -Transaction control -maintainance -administration -security -Extensibility -Scalability -Resource pooling & making an application in Tiers , u would know many other uses , as u gain experience ;) Hope u get smater by reading the above regards P.S. PATWAL
-
SQL connection problemi need to insert huge database in sql table the problem 1) i need to know any method/process by which u may guess the connection has break 2) if connection is brek i need to roll back all the inserts any idea ? :wtf: P.S. PATWAL
-
asp:omg: text has notthing to do with database , u do the insertion using objects which are ment to play with database Text, however is used to collect informarion from form ;client side P.S. PATWAL
-
Image in BrowserHei it might be because appletviewer is configured to use the vertual machine , which sun ships with the JAVA interpriter . However the browser (i think u using internet explorer)has inbuild virtual machine,JVM 1.0 . Ur code uses Newer classes , i.e. java 1.2.0 and above. solution : :-O 1. use older classes 2. use java pluggin . if u have any doubts , mail me at pushp_i@hotmail.com and put subject as 'codeproject' i am pushpi from india
-
Java swing with IE?hi U may use java plugins instead. but for that u will have to use OBJECT tag instead of APPLET tag(internet explorer). EMBED tag in netscape communicator. and good thing is u can always download newer vertual machine and configure ur pluggin for that. Ur HTML would also run swing object provided u configure client plugin for that and use above mentioned tag .. If u have any further queries ,mail me at pushp_i@hotmail.com and metion 'codeproject' in subject Pushpi from india P.S. PATWAL
-
Alternative to Java Appletshi Alternative to the older VM hmmm !, U may use java plugins instead , but for that u will have to use OBJECT tag instead of APPLET tag(internet explorer). EMBED tag in netscape communicator.:-D :rose: and good thing is u can always download newer vertual machine and configure ur pluggin for that. Ur HTML would also run swing object provided u configure client plugin for that and use above mentioned tag .. If u have any further queries ,mail me at pushp_i@hotmail.com and metion 'codeproject' in subject Pushpi from india