|
Set the 'ControlBox' property to false,
Set the 'FormBorderStyle' property to None and
Set the title in 'Text' property.
Regards,
Bhupi Bhai.
|
|
|
|
|
The problem with that is the form is then not resizable, in my current task I need it to be resizable, do you know how to get past this?
Regards,
Chris McGrath
|
|
|
|
|
i have a folder in my documents named skins i want to read the all files name in this folder how can do it
fatma
|
|
|
|
|
Take a look at the Directory and DirectoryInfo class.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
string[] files=Directory.GetFiles(skinsFolder);
As a note, you will have the full path. If you only want the file name, just get a substring of the last index of '\'.
Aaron
|
|
|
|
|
as Aaron said,
assign the retrived file array to a fileinfo object and use the properties to get the filename or extension.
FileInfo fileinfo = new FileInfo(files[0]);
long sFileSize = fileinfo.Length;(gives u the file size)
fileinfo.Directory etc.......
|
|
|
|
|
I'm working to an aplication that uses a database of 7000 records (MS Acccess database). When I load my aplication, it takes a lot of time (to much anyway).I think that I can load my database faster, but I don't know how.Can someone help me? Thank you.
|
|
|
|
|
Nicostancila wrote: Can someone help me?
It's almost impossible without knowing what you're doing currently. So provide the code of question or at least some more details what you're doing when you load your application.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Access isn't the best database for a lot of things. It is hard to answer without knowing exactly what you are trying to do, but some suggestions....
If you have a 2 tier application where multiple users connect to the database, Access does not support connection pooling, so you have a lot of connections open to the same database/table. This will slow down Access quite a bit.
If the relationships in the database are complex and you are (or are not in some circumstances) forcing the restraints/relations to be upheld in the program, that will drain Access.
Are you filling a datatable with a dataadapter? If so, how many times are you doing it? (Check to make sure your sequence of events doesnt load the data twice). If using commands and a datatable, set BeginLoadData=true before reading the data to the datatable, and =false when done. This temporarily keeps restraints from being enforced.
If none of that helps, more info is needed.
Aaron
|
|
|
|
|
Hi Aaron,
So, which kind of database do you recommmend for applications that require several connections at the same time? For example, a server containing just one database and multiple clients loading from it.
Thanks
Kurtz
|
|
|
|
|
try loading your data selectively. or filter only the data that you need.
|
|
|
|
|
i have image file on hard disk (jpg,gif or png)
i want to insert this image file as binary in field in database
this field has varbinary data type
and when i select this field i show the binary data in picturebox
please help me
thanks
MD_NADA
|
|
|
|
|
Hello
1- Write your image so a stream of bytes using Image.Save(Stream, ImageFormat) method.
2- Write that array of bytes to your database.
3- When reading the image from the file reverse the process and use Image.FromStream(Stream) to read the stream into the image object.
4- Use the PictureBox.Image property to display your image.
Regards
|
|
|
|
|
This question has been asked and answered many, many times. I suggest you search the forum.
|
|
|
|
|
Hi,
I have a web site with:
A MasterPageDefault and
Page1 and Page2, which both referes to MasterPageDefault.
On MasterPageDefault I have put a delete button. Now in the codebehind file, I want to delete two diferent things which depends on what page I stand on. Therefore I need to know, which page I stand on.
Is there anyone, who can help me, to find some code, which kan determe on which page I stand on?
Kind regards,
simsen
|
|
|
|
|
What framework variable do I use to access the path to My Documents?
|
|
|
|
|
My Documents is a "special folder" and is accessed using the Shell. So however the framework exposes the Shell that is how you get the solution.
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
That is not an answer to my question.
|
|
|
|
|
They hide the rest of the information in the Documentation[^]
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
Hello
string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
Regards
|
|
|
|
|
The Documentation says it works with 1.1 but I'm not seeing the enum SpecialFolder.
Ronald Hahn, CNT - Computer Engineering Technologist
New Technologies Analyst
HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
Email: rhahn82@telus.net
|
|
|
|
|
Hello
Why don't you see it in your intellisense?? It should appear. Try writing without the intellisense. What compile error -if any- appears?
Piece of advice:
Remove you email address to avoid the possibility of spamming.
Regards
|
|
|
|
|
I have a class
public class myclass : BindingList<T> {}
I have created(shadowed) the GetEnumerator method to provide some custom sorting and what not.
But the problem is the type can be Category, Topic, or Entry.
And I need to test each one because each has its own sorting strategy.
I tried if( typeof(T) is Category) but that doesn't work.
What is the easiest way to determine the type T is?
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
typeof(T) will always return a type of T, and T is really a type identifier. What you may try is this:
public void Sort(T item)
{
if ( item is Category )...
if ( item is Volume ) ...
}
|
|
|
|
|
lol. its a GetEnumerator(). Theres no definition like that.
<br />
Type t = typeof(T);<br />
<br />
if( t.Equals(Category) )<br />
<br />
I figured it out just a second ago
Thanks tho
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|