|
Oh hey I've got another question...
Does the ScriptTimeout works like the Page.Response.Expire? I just found the function while exploring Page members. I mean aside from property sets which is in minutes.
Thanx!
Kampai!!!
|
|
|
|
|
I have no idea sorry, I just googled it
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanx Chris! Much appreciated
Kampai!!!
|
|
|
|
|
No, the Expires property will just be added to the http header. It's information for the browser on how long it may keep the page in the cache.
---
b { font-weight: normal; }
|
|
|
|
|
Like a timer on how much time the user has left before the page expires huh? Thanx guffa!
Kampai!!!
|
|
|
|
|
Hello gurus,
I would like to know if it is possible to create a listview control without name in order to have only the pictures in the list? If so how to do that? Or must I do my own control for that?
Note: the pictures are small bitmaps loaded from files. The size of the bitmaps are either 8x8, 16x16 or 32x32.
Thank you.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
what do u mean by without name, do u mean that there should be no column header or what ? If you want to have no column header then there is no problem but I guess it is something different....
|
|
|
|
|
I mean no string under the picture. I just want a list of pictures...
There is no spoon.
|
|
|
|
|
Set the Text property of the ListViewItem to " " (a space) or even "" (an empty string).
And set the ImageIndex to picture you want to display.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
I need some input on how to go about implementing C# code to allow me to do the following:
Say I have an application that needs to be able to read an XML file. Inside this xml would be the name of a college/university and the sports programs they offer. Obviously, some of the schools would offer a large variety of sports programs, others a minimal amount, and some no sports programs at all. So it would be something similar to
<Application>
<school "university of a">
<sports>volleyball</sports>
<sports<football</sports>
<sports>basketball</sports>
<school>
<school="university of b">
<sports>volleyball</sports>
<sports>football</sports>
<sports>basketball</sports>
<sports>baseball</sports>
</school>
<school="university of c">
</school>
<school "university of d">
<sports>volleyball</sports>
</school>
and so forth. The reason for the xml file is so that if a sports program is added/deleted, then I would have to redistribute the xml file only and not a new application. I am thinking I need to use a table but I cannot picture the C# code. I don't know how many schools or sports programs so it would have to be dynamic, like an ArrayList.
Can anyone offer any suggestions/input?
|
|
|
|
|
You have the data structure already. When you load the file into an XmlDocument object, you will have the schools as child nodes of the root node, and the sport programs as child nodes of each school.
---
b { font-weight: normal; }
|
|
|
|
|
Shoot - I retyped my posting and I left part of it out. I apologize for my error.
I am actually wanting to display this in a combo box, where the user can select the school in one combo box and then it will give a list of the sports programs in another combo box.
One of the most important pieces of information and I definitely had a brain-fart on that one. I am really sorry about this!
|
|
|
|
|
You can do this with two XPaths, one that get's the name of all schools, and another to apply to the XML using the school selected to get a group of nodes that contain the sports for that school.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello all!
I have been searching for days, and days, on what seems to be a somewhat complicated and confusing matter: Passing a C++ STL Map (with a user-defined struct type) to C# via interop services.
First off, I am fairly new to C# and the world of Windows programming so that keeps me stumped on many articles I have read. I have explored some COM concepts, as well as simply using P/Invoke, but have yet to find something that works.
Is there any way to do this in a manner that is fairly straight forward? Does anyone have any examples or tutorials I can go by?
Basically what I want to do is call a C++ method (probably through p/invoke) and that method will return to me an STL Map (or vector) with a user-defined struct as its type. I need to be able to iterate through this collection pulling out each struct field and examining it.
I am stumped...
Thanks for all your help, I really appreciate it
Maurizio
|
|
|
|
|
|
Hmm, that is a very good idea. I think I will give that a try Thanks!
|
|
|
|
|
Hello everybody. I am trying to add a button in a textbox. When the textbox is focused, then the button will appear at the end of the textbox just like when you click on the items property of a listbox, a ... button will appear. Does anybody have some idea how to do this function please??? Thanks
Asura
|
|
|
|
|
Button box have Parent property Which you Can You Set it
To TextBox So You May Write Sothing Like This
private void textBox1_Enter(object sender, System.EventArgs e)
{
button1.Parent=textBox1;
button1.Location=new Point(textBox1.Width-Button1.Width,0);
}
MCAD
|
|
|
|
|
Hi there!
I have a problem. What i want to do, is opening a remote file on the internet (a xml file) for reading in my application. The remotehost is not running any serving functions, the file is just available on the internet.
Is there anyone who knows how to do this?
Thanks in advance!
|
|
|
|
|
I wrote an article regarding this issue. The only major drawback is that this method doesn't function in all windows versions...
|
|
|
|
|
Erhm. Thanks for taking the time to reply to the topic, but that was a link to a article regarding "ExtendingFileDialogs"
|
|
|
|
|
You can use the HttpRequest class to request the file.
---
b { font-weight: normal; }
|
|
|
|
|
Yes! thanks you.
Been struggeling with this for hours!
|
|
|
|
|
If I open the openFileDialog, usually I must select the view to "Details" manually. How can I automate that ?
I want to set the view to "Details" automatically, if I open the openFileDialog.
|
|
|
|
|
Use the extended OpenFileDialog in
http://www.codeproject.com/cs/miscctrl/FileDialogExtender.asp
Live Life King Size
Alomgir Miah
|
|
|
|