|
Big thanks. this is really good advice
Maybe you will help to me with this question:
Whether is possible in PictureBox a work with layers (approximately as in a photoshop), or for it is necessary to write the own control?
|
|
|
|
|
PictureBox has not a built-in layers functionality. You have to code it manually. PictureBox can only display images and eventually resize them.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
Hi!
Is there a way to set a combobox to NOT accept manually inputted data.
I only want to set the combobox to choose from the collection.
Because i use the selectedindex when deriving certain things and when i
manually type in a "value" into the combobox the selectedindex sets to -1.
Thanks
|
|
|
|
|
Yes, set DropDownStyle property to DropDownList .
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I have already found a wonderful program created by a member here in codeproject.com...that is designed for creating birthday reminders in Outlook.
http://www.codeproject.com/csharp/outlookappointmentsbday.asp?select=1627102&df=100&forumid=31022
Unfortunately, I have no programming experience...but i do wish to try using it. Can you offer any suggestions? Cheers.
|
|
|
|
|
Please don't double post, your question has been answered. We didn't write it, there are 4 million + members here. One of us wrote it, he's probably not here right now. That's why the articles have forums under them. I'd imagine if what he wrote is any good at all, the point is that by following the instructions in the article, or just by installing his application, you'll get the functionality you want.
Assuming he posted a version, and not just source, of course.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
HEH! Sorry Christian. I believe to have confused the heck out of the person(s) replying to my initial post...and saw reposting as an only remedy. I guess it was not a great idea. Sorry...it will not happen again. Cheers.
|
|
|
|
|
Don't start a new thread on the same thing. See my reply below. Ask the author of the article if they are willing to help. Also, use the link button when supplying a URL, or just
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Question #1 Since I have NEVER programmed in my life...is there an EXE alternative...perhaps 1-2-3 easy step to using C#?
Question #2 Has anyone tried using "OutlookAppointmentsBday_src.zip" in Outlook 2003...and will this mess with the existing code?
Cheer!
|
|
|
|
|
zevman wrote: is there an EXE alternative
There probably is, but I don't know of one.
zevman wrote: perhaps 1-2-3 easy step to using C#
You could write a C# program, and you would have to compile it. Since you admit you've never programmed before, it maybe out of the scope of your programming skills.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
...actually the program is already written by a member. My questions are regarding HOW to apply the application (already written in C#) to Outlook. Cheers.
|
|
|
|
|
IMHO you should ask this question on the forum of this article.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I think I have confused everyone with my immediate posting...therefore I have rephrased my message and posted again...hopefully NOW clearer to understan SO SORRY.
I have already found a wonderful program created by a member here in codeproject.com...that is designed for creating birthday reminders in Outlook.
http://www.codeproject.com/csharp/outlookappointmentsbday.asp?select=1627102&df=100&forumid=31022
Unfortunately, I have no programming experience...but i do wish to try using it. Can you offer any suggestions? Cheers.
|
|
|
|
|
zevman wrote: I have already found a wonderful program created by a member here in codeproject.com...that is designed for creating birthday reminders in Outlook.
Ask the author of the article how to do it. They might be willing to help you.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
"Ask the author"...excellant idea Paul...but i have seen unanswered threads directly posted to him. Makes me wonder if he is still around? Cheers.
|
|
|
|
|
Not sure, but if you post a message in the article's forum, he should get an email. Makes me wonder since looking at his profile, he hasn't posted a message since January 2006. The article was voted down a bit, so maybe that wigged him out or something
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Here is the referrence...
http://www.codeproject.com/csharp/outlookappointmentsbday.asp?df=100&forumid=31022&exp=0&select=1141428">http://www.codeproject.com/csharp/outlookappointmentsbday.asp?df=100&forumid=31022&exp=0&select=1141428
|
|
|
|
|
hi how do i change to only look in the path´s subfolders, and move them to (dest)?? And when my program are finished how do i convert my project to a program, witch program do u use??
heres my code:
string[] lines = System.IO.File.ReadAllLines("dataapplikationer.txt");
string appl = lines[1];
string path = lines[2];
string sort = lines[5];
string dest = lines[3];
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(path);
{
int filesCouunt = dir.GetFiles().Length;
string name = dir.Name;
DateTime time = DateTime.Now;
ListViewItem item = new ListViewItem(new string[] { sort, name, time.ToString(), "Summa tid", filesCouunt.ToString(), "av:", appl });
this.listView2.Items.Add(item);
this.listView2.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
//thanks;)
|
|
|
|
|
As far as I understand your post, you want to use dir.GetDirectories method.
To move folder u've to recursively move it's content to a new location and then delete old, empty directory using Delete or DeleteDirectory method. Please correct me if I'm wrong.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I´m trying to tell the path that there are only subfolder that it gonna countfiles and pass subfolder name insted for path name and path filescount...
my code works but i want to change that it only will look in subfolders..
And i think my Debug are broke beacause i get error when i use Directory.MoveTo(sub, dest) strange.. says that this file allready exists in dest..
Thanks..!;P
|
|
|
|
|
The number of files contained in all subdirectories of a given folder?
string path = @"C:\";
string[] subDirs = System.IO.Directory.GetDirectories(path);
int count = 0;
for (int i = 0; i < subDirs.Length; i++)
count += System.IO.Directory.GetFiles(subDirs[i]).Length;
Please improve your English -- it was very hard for me to understand you.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
ok =) gonna try...
Way won´t this work??
System.IO.DirectoryInfo subDI = new System.IO.DirectoryInfo(path);
foreach (String sub in Directory.GetDirectories(path))
{
foreach (String file in Directory.GetFiles(sub, "*.dat"))
{
int count = 0; for (int i = 0; i < sub.Length; i++) count += System.IO.Directory.GetFiles(sub[i]).Length; //// Here!!!!
String subName = sub.Substring(sub.LastIndexOf(@"\") + 1);
DateTime time = DateTime.Now;
ListViewItem item = new ListViewItem(new string[] { sort, subName, time.ToString(), "", count.ToString(), "", pris, appl });
this.listView2.Items.Add(item);
this.listView2.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
this.toolStripProgressBar1.Value += 50;
sparaform();
}
this.toolStripProgressBar1.Value = 0;
}
Want to getfiles count from subfolder to the path.
//thanks man!
|
|
|
|
|
Please read a documentation of foreach statement in msdn.
List<string> result = new List<string>();
foreach (String sub in Directory.GetDirectories(path)) {
int count = 0;
foreach (string subSub in Directory.GetDirectories(sub))
count += Directory.GetFiles(subSub).Length;
string subName = Path.GetFileName(sub);
result.Add(subName + ": " + count.ToString() + " files in subdirectories");
}
-- modified at 8:17 Monday 17th September, 2007
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
tnx man.. but i did like this:
System.IO.DirectoryInfo subDI = new System.IO.DirectoryInfo(path);
foreach (String sub in Directory.GetDirectories(path))
{
foreach (String file in Directory.GetFiles(sub, "*.dat"))
{
listView2.Items.Clear();
this.toolStripProgressBar1.Value += 10;
System.Threading.Thread.Sleep(dimension);
int fileCount = System.IO.Directory.GetFiles(sub, "*.*", SearchOption.AllDirectories).Length;
String subName = sub.Substring(sub.LastIndexOf(@"\") + 1);
DateTime time = DateTime.Now;
ListViewItem item = new ListViewItem(new string[] { sort, subName, time.ToString(), "", fileCount.ToString(), "", pris, appl });
this.listView2.Items.Add(item);
ListViewItem item2 = new ListViewItem(new string[] { sort, subName, time.ToString(), "", fileCount.ToString(), "", pris, appl });
this.listView3.Items.Add(item2);
works just fine.. yet..=)
But i got another problem:
i start a timer with button1 and want to stop it with button2
i thought it could be like this:
private void button1_Click(object sender, EventArgs e)
{
string[] lines1 = System.IO.File.ReadAllLines("inställningar.txt");
string path1 = lines1[8];
string tid = lines1[0];
int dimension = Convert.ToInt32(tid);
Timer oT = new Timer();
oT.Tick += new System.EventHandler(TimerFunction);
oT.Interval = dimension;
oT.Start();
}
private void button2_Click(object sender, EventArgs e)
{
Timer oT = new Timer();
oT.Tick += new System.EventHandler(Timerfunction);
oT.Stop();
}
But i where wrong!! How would u do it??
tnx!;)
|
|
|
|
|
Sorry for complaining... could you modify your post and enclose code blocks with "pre" tags? e.g. <pre>some code</pre> ?
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|