|
Hello all.
I'm having a problem letting one form inherit another. I have a simple wizard implementing the base functionality and then I have a couple of wizards that inherit from the base wizard, where I add the necessary textboxes, comboboxes and so on. I saw it called "Visual inheritance" at one place...
At first it worked relatively well but now it is all a mess. My problem is this: if I add for example a textbox to an inherited form in the designer and I change a couple of properties on the textbox (AllowReturn set MultiLine to true, set some default text e.t.c.), I save the form (usually goes well) and then I compile and suddenly the textbox looses all the properties I have set -except for the ID, and moves up to the upper left corner of the form!?! Or I don't compile but I add an eventhandler for some other control, goes into the code and then returns to the designer and KABOOM! The textbox is in the upper left corner without the properties I gave it!
What have I missed? I had minor problems before, that the controls occasionally lost the properties overriding the basewizard properties, but not like this. I don't know if it is related but it seems that since I moved to WinXP servicepack 2 about a week ago, it has stopped working alltogether.
Any ideas? Getting a bit desperate as my project is due soon!
Thanks
/EnkelIk
|
|
|
|
|
hi,
This may not the reason but still you can check the Modifiers property of the object's that you are trying to access. Change it to public. Cause you are changing the values after inheriting the object.
Change the property Modifiers and set value true.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Thanks!
That may very well be a solution to some of my problems; I'll try that.
I restarted my computer and that helped on the most frustrating thing (the textbox now keeps it's size even after saving and compiling the project), so maybe I just really need to reinstall my computer, but hopefully your tip can solve the other properties being lost (which I have had since I started with the inherited forms).
Thanks
/EnkelIk
|
|
|
|
|
Hi,
I created a scheduler for make some tasks every days.
I used a treeview.
SCHEDULER
|->MONDAY|-> TASK1 : HH:MM:SS
| |-> TASK2 : HH:MM:SS
|->TUESDAY ...
...
Now I can used this interface if I have only the start TIME.
But today, I would like to used START TIME and STOP TIME and in this view the interface is very complex.
I looking for an interface that I can select like calendar in outlook with my mouse or keyboard to determinate the start and stop time.
Best regards
youssef
|
|
|
|
|
Use a datagrid to display all the schedule details.
Kev
|
|
|
|
|
hi,
We have lot of articles in codeproject which help you to customize the experience of your treeview control. Please search for 'treeview' here in codeproject.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Have you found a calendar for your application? I'm looking for the same!
Thank you!
Jordi
"Catalonia is not Spain"
|
|
|
|
|
I have a web browser control. following code give me access to the body cotents.
IHTMLDocument2 doc = (IHTMLDocument2)WB.Document
str= doc.body.innerText;
Now I need to access the whole page contents from to
need the code
|
|
|
|
|
Try the ASP.Net forum, they should be able to help you
Kev
|
|
|
|
|
hi,
You wrote : Now I need to access the whole page contents from to.
Now you are accessing the text content. What you need to do is the individual objects which is avilable in the web form. Am i right.
if so, use this code block to access the controls.
foreach(controls ctl in Page.Controls)
{
}
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Dear,
why i cann't find the "System.Runtime.Interopservices" reference in the Add Reference list of .NET and COM? I cann't find it in my PC too.I have to use the DLLIport attribute in my c# project.What should I do?
Thanks a lot!!!
|
|
|
|
|
|
Hi!My dear,
Thank you very much!May God bless you!
momer;)
|
|
|
|
|
Hi!leppie,
How do you know this?
|
|
|
|
|
hi,
That is not at any miracle. By the help of experience or extensive reading. You will also get this after experience. Now you already came across this problem and you will help others if they have the same. am i right ?.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Take a look at the MSDN.
At bottom of the overview page for a type you find the Requirements section which specifies its namespace as well as the assembly providing the type.
www.troschuetz.de
|
|
|
|
|
hi,
I am getting Invalid File Format Exception in following snipet, please point out the mistake.
-------------------------------------
string _report = CreateReport(); // returns rich text formated report
ms = new MemoryStream(Encoding.Unicode.GetBytes(_report));
richTextBoxEx.LoadFile(ms, RichTextBoxStreamType.RichText); // Exception
-------------------------------------
regards
|
|
|
|
|
|
infact it is.
if i save the string using folowing
-----------------------------------
FileStream MyStream = new FileStream(saveFileDialog1.FileName, FileMode.Create);
StreamWriter MyWriter = new System.IO.StreamWriter(MyStream,System.Text.Encoding.Default);
string _report = CreateReport();
//writing the report
MyWriter.Write(_report);
-------------------------------
i get the rtf file.
i don't know whats going wrong.
what i am intending to do is, instead of saving the file on some location and then loading it in the RichTextBox, give the Stream (that is prepared from "_report" string) directly to the RixhTextBox.
please give some inputs
regards
|
|
|
|
|
hi,
Use a StringReader object to save the content of a RichText.
StringReader StrReader;
string Content=RichText.Text;
StrReader = new StringReader(Content);
And then continue.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Thanks for the reply.
I am not using the contents of rich text box, i am creating the file at some other place, and using the rich text box for printing purpose only.
regards
|
|
|
|
|
got it
"System.Text.Encoding.Default" has done done the job for me...
|
|
|
|
|
hi code guys!
How can I disable script error dailog box in web Browsr control.
|
|
|
|
|
hi,
Good question. I recomand you to post this question in Asp.Net forum.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I am working on a project in which the I have to output the data in an excel file. The input is also an excel file which contains certain headings (with defined format). I need to read these headings and query the database for their values. Finally, I need to output the data in the excel file. The format of the data is also defined in the input file by setting the format of a particular cell (the cell location is known). The problem is that I need to read all the cell formats and data up to certain specific range.
Your help will be appreciated.
Thanx.
Rahim Rattani.
|
|
|
|