Hi which is the default script used in dot net?
GunaChinna
Posts
-
Default script in dot net is? -
Assigning a TextBox object to another TextBox objectHi i tried my level best to achieve the task with the help you provided. But couldn't get the desired. Here is the snippet of code that i use. Can u please use this code to achieve the task with the help you provided [Icloneable interface or reflection or copying properties through code]? TextBox tbxFirst = new TextBox(); TextBox tbxSecond = new TextBox(); tbxFirst.Location=new Point(100,100); tbxFirst.Text = "First"; tbxSecond.Location=new Point(10,10); tbxSecond.Text="Second"; tbxSecond = tbxFirst; this.Controls.Add(tbxSecond); this.Controls.Add(tbxFirst); What i want is to have both the textboxes at the specified location with its text.
-
Assigning a TextBox object to another TextBox objectI wanna assign a textbox object to another text box object, so that to accomplish, all the properties and values present or assigned to that textbox object will be copied to this textbox object. For example, I have a textbox with it's location as (x=10,y=10) and name be "First" then another's as (x=100,y=100) and "Second". Now if i assign the first object to second object... what will happen is, it will just make a reference to the previous one. When printing.. both will point to first object only. What i want is all the properties of first object should be copied to second object and if i change some values of the second object.. it should accept those values. [I wanna have both the textbox printed in the mentioned locations]. How can this be achieved?
-
Microsoft Chart control 6.0-Row DataCan the Microsoft chart control take row values as double? If so how?(Any code example). And i want to plot the row values against the coloumn values.(as the coloumns contain a pointer on the chart for the specified coloumn value).
-
InvalidActiveXSateException was unhandled- MSChart control 6.0To get rid off that exception, Just add the control first with your container before using any of it's properties or methods. AxMSChart20Lib.AxMSChart m_objChart = new AxMSChart20Lib.AxMSChart(); this.Controls.Add(m_objChart); m_objChart.Title.Text = "My first chart";
-
FileName as CommandLineArgumenti am trying and hope i will get it soon. And will get back to u if i need...
-
FileName as CommandLineArgumenti am NOT running it from console. i have to run it in windows mode. A sample code would help me better.Could u please?
-
FileName as CommandLineArgumentHow to pass a file name as command line argument in main function?
-
registry.classesrootYaa. Sure. Thanks a lot for ur time and patience.
-
registry.classesrootYes. But it couldn't serve my need. My need is, i have created my own application, also it contains my own extension. When i click on files that are created with my application, it should open its contents in my application. This needs to be registerd in registry. So with the help of this class, I hope it can be achieved. Can u pls give a code to achieve this.?
-
registry.classesrootCan some one provide me a demo code using this class.
-
My own application and My own extension-how to add in Registry?My own application and My own extension-how to add these in Registry?
-
New EditorYes it works. Thanks a lot.
-
New EditorWill get u back if i get more doubts.
-
New EditorIt shows me 'IndexOutOfRangeException Unhandled' in program.cs Application.Run(new Form1(args[0]));
-
New EditorAnd my main function is in Program.cs file
-
New EditorI dont get what u try to say. This is my code. Can u suggest with this code....(ofdFile=Openfiledialog,rtbFile=richtextbox) void btnOpen_Click(object sender, EventArgs e) { ofdFile = new OpenFileDialog(); ofdFile.DefaultExt = @"*.gun"; ofdFile.Filter = @"Gun Files|*.gun"; if (ofdFile.ShowDialog() == System.Windows.Forms.DialogResult.OK && ofdFile.FileName.Length > 0) { //ofdFile.FileName. rtbFile.LoadFile(ofdFile.FileName, RichTextBoxStreamType.PlainText); } }
-
New EditorThe error is ok now. and i have done main(string[] args) or Environment.GetCommandLineargs..... But still when i double click the created file(file with .gun extension),, it still doesn't contain the content.
-
New EditorHi, When i use Main(string[] args) or Environment.GetCommandLineArgs; it shows me the following error. Error 1 'string' does not contain a definition for 'rtbFile' (Richtextbox instance)
-
New EditorRequirement: I want to create an application, which should be able to create a file, with the file extension be specified by me. And, when i double click to open that file, it should open it's content in that application. How can this be achieved? ( like word,excel..etc) Code so far: For example.. I have created a application with a Richtextbox control to display data,buttons to create a new file, openfile,savefile and to exit. And let my file extension be ".gun". Time to Answer: Now, what happens is i create new file, save(savefiledialog) it with .gun extension. This files gets opened when i open it using 'open(openfiledialog) button' which is present in my application. But when i double this file (which is placed on desktop) it opens only the application and not with the content.? How can i get it with the content when the file is double clicked?