|
AFAIK, the RichTextBox class doesn't support headers and footers.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
AFAIK, thank's for reply me. About the richtextbox, i'm extendig the class to support a few features like tables, copy, paste, formating, print, etc... all this using windows api. There's no other solution to the solve problem?
|
|
|
|
|
Other than adding support for it yourself, not that I know of.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I've a question about Application.Run, which is supposed to start the main loop for receiving messages for windows.forms applications. What I want to do is hide the form on startup, which I do either with setting the Visibility property to false or calling Hide(); so far no problems with that. But when I start the loop with Application.Run(form); it makes the form visible. The thing is that it makes the form visible after calling the constructor so what's the proper way of starting a form with Application.Run(Form); which will be hidden? Any advice is appreaciated
Regards
|
|
|
|
|
In this form Load event just call :
Hide(); .
|
|
|
|
|
That doesn't work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
<br />
private void Form1_Activated(object sender, System.EventArgs e)<br />
{<br />
this.Visible=false;<br />
}<br />
|
|
|
|
|
Now I remember how I did it. It helps to go back and actually look at the damn code!
Override OnLoad and set the form's Opacity to 0. When you need to show the form, reset the Opacity to 1.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What else do you want to do other than hiding the (main) form of the application? I assume you want to launch another form for login or splash or something similar.
I suggest placing the code that you want to execute while keeping your form hidden in the OnLoad event delegate of that form. At some point, you will return from that code and continue with the execution of the delegate. I guess you could set the Visible property to false within the OnLoad delegate, but then what do you get to do in your application?
Maybe I didn't understand your desired behavior, but I suggest using the form's OnLoad delegate, because before that delegate is finished the form is not shown.
|
|
|
|
|
Is it possible to work with *.dbf files as with database, using SQL???
And how to do it in steps - if it is possible...
And where to find DBF file format? And if someone knows what encoding does it use? And what version of *.dbf files ESRI uses in their shape file format?
|
|
|
|
|
You can create a Dbf file in Visual Foxpro Editor.
And I am not sure which version of .dbf files ESRI uses for its Shape File format, but I think you will get the required information from the Esri Site.
And wat do you mean by "Is it possible to work with *.dbf files as with database, using SQL???"
Thanks
|
|
|
|
|
I mean what classes shoud i use to work with *.dbf file using SQL??? Should i insert new DNS in ODBC?
|
|
|
|
|
I guess, that should work.
Try accessing through Oledb.
Thanks
|
|
|
|
|
Please, could you describe in steps... How to connect to the file... What provider should i use when i create new OleDbConnection("????Datasource=C:\asdf.dbf");
|
|
|
|
|
Well i tried next :
OdbcConnection connection = new OdbcConnection("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=E:\\Visual Studio Projects\\GeoObjects;");<br />
connection.Open();<br />
OdbcDataAdapter adapter = new OdbcDataAdapter("SELECT * FROM uub_location_point",connection);<br />
DataSet dataset = new DataSet();<br />
adapter.Fill(dataset);<br />
dataGrid1.SetDataBinding(dataset,"street_route_line_polyline");
And i tried using OleDb, but i had an error, and it says that it cant find object street_route_line_polyline... Maybe i do something wrong?
|
|
|
|
|
Is the Dbase file located on the same system on which the application is located?
Are u trying to connect to a shape file/info file?
Try connecting to a normal dbf in ur own system....
|
|
|
|
|
Yes it locats on the same system, and i try to connect to my *.dbf file... But without success...
|
|
|
|
|
Is it possible to work with *.dbf files as with database, using SQL???
And how to do it in steps - if it is possible...
And where to find DBF file format? And if someone knows what encoding does it use?
|
|
|
|
|
Hi all,
I use a treeview and want to select a node programmatically.
I have identifyed a node by its tag like
if (treeview1.nodes[i].nodes[j].tag == 1234)
select this node; // - but how
I want to select this node, by expanding the branche and select the node;
Thank's for your help
regards
Frank
|
|
|
|
|
treeview1.nodes[i].nodes[j].Selected = true;
I am not sure, but it should be something like that.
WM.
What about weapons of mass-construction?
|
|
|
|
|
Just assign treeView1.SelectedNode to the node you want to be selected. To expand nodes under the selected node, you can use the Expand method on the node object. Something like
if (treeview1.nodes[i].nodes[j].tag == 1234)
{
treeView1.SelectedNode = treeview1.nodes[i].nodes[j];
treeView1.SelectedNode.Expand();
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Guys,
I was able to import my excell file to my datagrid using dataset. The only problem is that the DATES "01/22/2005" in one of the colums in excell when read from dataset becomes numeric, it was converted to number with a value of 36753. When I checked the Excell format for that paricular cell it has a DATE Category.
Any one of encounter the same scenario? Any Ideas?
Thank you in advance.
Dabuskol
|
|
|
|
|
I need to convert the picture on the panel to bytes.
I did that but it works only for the backgroungimage of a panel.
in my program I use 3ds max to draw on the panel
I need to convert the picture on the panel to bytes
this is the function I use to get the bytes of the backgroungimage of the panel
private void fun()
{
pna1.BackgroundImage.Save("m"); //m is the name of the file
bm = new Bitmap("m");
//the size of the panel is 240*160
byte [,] matrix= new byte [240,160];
byte red=0, green=0, blue=0;
byte [] test=new byte [1];
for (int y=0; y < 160; y++)
{
for (int x =0; x < 240; x++)
{
Color u=bm.GetPixel (x ,y);
//I need only one byte represent each pixel
blue = (byte)(u.B/64*64);
green = (byte)(u.G/32*8);
red =(byte)(u.R/32);
matrix[x,y]=(byte)(red + green + blue);
}
}
}
|
|
|
|
|
Hello,
i want to make an application for a touchscreen. On the first form
you'll have to enter a number and then you'll have to hop to the
next form and close the first one. How can i do this in a good way ?
A sort of wizard is what i want, can anyone give me a hint how to
realize this ?
thanks
with kind regards
Joris
|
|
|
|
|
You'll need a controller class popping up the Form s one by one.
This class could hold a collection of Form s to show and each form could inherit from a common base class that's responsible for showing/handling the controls to switch to the next (and perhaps previous) Form .
In your controller class itself it's just a matter of several ShowDialog s.
Regards,
mav
|
|
|
|