|
Hi,
Hope every one is doing fine... well I need a little help regarding FOLDER LOCK, by which I necessarily mean that on double clicking the folder my own custom exe could run and after doing some task, could finally open the folder upon successful authentication.
If any body could help me out... and secondly I am thinking about folder lock in terms of archiving files and then giving that archived file a custom extension... this could also solve the problem... I have to make a decision what to do... if any body has some idea to work around this issue I will be very thankful to him/her.
PS:I am using C#, .NET Framework 2.0.
Thanks...
Regards.
|
|
|
|
|
Hello Sir,
Did u find solution for your question?
If so, please let me know ..even i got stuck at this point.
Thank you
|
|
|
|
|
Guys,
I have multiple listviews on a form. I select one item of one listview (so far so good), but if I select an item from another listview, the item from the first listview is deselected. Is this some property setting? I couldn't found which one.
I want to select an item from each listview without deslecting the item when the focus moves.
Thanks!
Found it! mm to quick: HideSelection=false; doesn't seem to solve it
V.
Stop smoking so you can: enjoy longer the money you save.
|
|
|
|
|
I normally iterate through arraylists with a foreach loop. However im iterating to search for a certain item to remove from the arraylist and i cant iterate and remove the item when its found in the foreach loop becasue it throws an exception. my arraylist is holding a list of listview items and im going to use a for loop or while loop to remove it from the arraylist. my problem is that i dont know how to iterate through arraylists and extract a single item when im not using a foreach loop. can someone help me get the right syntax for this?
|
|
|
|
|
A solution may be copying the arraylist and iteration over the copied version
|
|
|
|
|
I never thought about doing that and it worked perfectly, and was extremely simple. Thanks!!!
|
|
|
|
|
Try this.
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace Assistant
{
class Program
{
static void Main(string[] args)
{
ArrayList al = new ArrayList(4);
al.Add("Val1");
al.Add("Val2");
al.Add("Val3");
al.Add("Val4");
int iListLen = al.Count;
for (int i = 0; iListLen > i; i++)
{
if (al[i].ToString() == "Val3")
{
al.RemoveAt(i);
break;
}
}
}
}
}
|
|
|
|
|
Thanks for your help too
|
|
|
|
|
How to read an exact character from text file
Example:line 2 char 15
I have Visual Studio 2003
sr.Read()[15]; is not the correct sollution
Vasildb
|
|
|
|
|
I would imagine you would have to parse the file to find the second line, then offset from the start of the second line to find the 15th character. Some text representations use multibyte character encoding so it may not be a 15 byte (or 30 byte) offset because each character can have a different length to the next one.
|
|
|
|
|
You, or somebody else already asked this question a couple of days before...
Is this homework?
V.
Stop smoking so you can: enjoy longer the money you save.
|
|
|
|
|
Not only is it most likely homework, but the other guy was on the ball, and asked immediately. This person seems to be a slacker that waits for the last minute.
|
|
|
|
|
i am using the progressbar control to show the progress of the sound file
how could i do that?
thank u
abdelhameed81
|
|
|
|
|
According to your first sentence, you already are!
|
|
|
|
|
Get the time that it will take for the sound file to complete - set the max value of the progress bar to this, and then every second (hint - use a timer), increment the counter.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hello all,
I started learing C# using the 2003 version and I've being playing with it to create some windows forms.
I decided to just stick with the windows applications and do some simple flat file readings.
In the meantime the fine folk of microsoft have come up with some server 2005 thing and some upgraded version of ASP.
Then from reading this site - there seems to be another upgrade.
Can anyone tell me how different these versions are to each other. Is it worth my getting my head around ye olde Asp + ado etc - or is it an idea to leap frog straight to the latest stuff ?
Sorry if this is a 'lounge' question by the way - wasn't sure.
Thanks
Mike
|
|
|
|
|
May as well be up-to-date. Learn C# 2.0 with VS 2005. You probably need to learn the latest (2.0) versions of all the things you mention but take it one step at a time.
Kevin
|
|
|
|
|
Kevin McFarlane wrote: May as well be up-to-date. Learn C# 2.0 with VS 2005.
Sounds like a good idea but I'm sitting with the problem now that I have to develop an application for a device that operates Windows CE.NET 4.2 (and consequently .NET Compact Framework 1.0) for which VS 2005 is useless it seems. I'd love to be proven wrong here.
It just doesn't make sense to me. So much for backwards compatibility. Or did Microsoft think that when they release VS 2005 all older terminals and devices will stop existing?
|
|
|
|
|
MS do have a tendency, especially these days, to force you to have the most up-to-date of everything. Or rather if you use one of their latest tools you generally have to update the complementary ones too.
Kevin
|
|
|
|
|
hi
would you please answer my question
How to display HTML Document within an application form ?
thank you
|
|
|
|
|
Easiest way, put a web browser control on your form. Otherwise, I guess you need to parse the HTML yourself.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: I guess you need to parse the HTML yourself
I had to do that once. The code for it is not pretty, I can tell you. It wouldn't be so bad if html was always strict, but the transitional dtd's really cause problems.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thank you so much for your reply ...
Could be possible ... !!
The HTML document is a HTML file
What is the code to make the web browser control display the file ?
Thanks again
|
|
|
|
|
If you're using .NET 2 and the Web Browser control, there's a property called Url. Just set that to the URL you want.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thank you so much, i will try it
|
|
|
|