Forum: C# Nov 28th, 2005 |
| Replies: 7 Views: 2,136 Re: Help with a book? http://www.amazon.com/gp/product/0735616485/103-7891102-8341404?v=glance&n=283155&v=glance |
Forum: C# Nov 27th, 2005 |
| Replies: 2 Views: 9,266 Re: Listview Scroll int current = this.listView1.SelectedIndices[0];
int next = current == this.listView1.Items.Count - 1 ? 0 : current + 1;
this.listView1.Focus();
this.listView1.Items[next].Selected =... |
Forum: C# Nov 25th, 2005 |
| Replies: 4 Views: 1,632 |
Forum: C# Nov 25th, 2005 |
| Replies: 4 Views: 1,632 Re: Basic Question foreach (ListViewItem lvi in this.listViewFiles.CheckedItems)
{
// do whatever here
string s = lvi.SubItems[3];
} |
Forum: C# Nov 23rd, 2005 |
| Replies: 2 Views: 4,980 |
Forum: C# Nov 17th, 2005 |
| Replies: 1 Views: 8,725 Re: Tab Control Don't know if i understood exactly what you mean, but i guess you want to simulate the TAB button behaviour with the ENTER button, to do this you can do the following (might be buggy and inefficient... |
Forum: C# Nov 11th, 2005 |
| Replies: 15 Views: 8,961 Re: StreamReader and Position Hi, what about a derived class like this one (it's very basic, but it might be what you are searching for):
public class MyStream : StreamReader
{
private uint _pos;
public MyStream(string... |
Forum: C# Oct 31st, 2005 |
| Replies: 9 Views: 4,949 Re: Outlook Hello, you should check out the value of list.SelectedItem in the debugger (yes, that simple :D), and see what it contains (i think i already told you that way to proceed in another thread ;)) |
Forum: C# Oct 31st, 2005 |
| Replies: 6 Views: 6,709 Re: Registry Writing....Help Hello,
you cannot store unsigned integers in the registry, it only works for signed int's for the moment, this is a know .NET bug, however there's a workaround, see this link for more info and how to... |
Forum: C# Sep 27th, 2005 |
| Replies: 26 Views: 5,843 Re: Text printing is giving me trouble Well, the 6th one probably generated an exception and then quit the routine, what about that code in a try catch clause and look which exception is generated..because apparently you didn't debug it. |
Forum: C# Sep 27th, 2005 |
| Replies: 26 Views: 5,843 |
Forum: C# Sep 27th, 2005 |
| Replies: 4 Views: 14,387 Re: Create buttons at runtime using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Text.RegularExpressions;
namespace... |
Forum: C# Sep 26th, 2005 |
| Replies: 4 Views: 6,778 Re: Read text file to a certain point StreamReader sr = new StreamReader("yourFileNameGoesHere", System.Text.Encoding.Default);
string s = null;
while ((s = sr.ReadLine()) != null)
{
if (s.IndexOf("fn:") !=... |
Forum: C# Sep 24th, 2005 |
| Replies: 3 Views: 3,969 |
Forum: C# Sep 24th, 2005 |
| Replies: 3 Views: 3,969 Re: Help with timer.. Hi
in your timertick
Invalidate();
if (StartTime == 0)
{
timer1.Stop();
Invalidate();
// Beep
... |
Forum: C# Sep 22nd, 2005 |
| Replies: 26 Views: 5,843 |
Forum: C# Sep 21st, 2005 |
| Replies: 26 Views: 5,843 Re: Text printing is giving me trouble dude, i will not lead you thru the way of debugging your own prog, there are numerous articles on debugging, just have a look at the msdn...could it be that you're a bit lazy? :( |
Forum: C# Sep 19th, 2005 |
| Replies: 26 Views: 5,843 |
Forum: C# Sep 19th, 2005 |
| Replies: 26 Views: 5,843 Re: Text printing is giving me trouble foreach (string f in Directory.GetFiles(d, fileType))
{
MessageBox.Show("Please be patient process may take a while", "Please wait");//Notify the user
label2.Visible = true;//label2 now visible... |
Forum: C# Sep 19th, 2005 |
| Replies: 26 Views: 5,843 Re: Text printing is giving me trouble Hi, i think yo didn't get the point of the Read() function ...Read is in fact a member function of a class called ID3v1.
I gave a you a link to a this complete class in another thread, so what you... |
Forum: C# Sep 18th, 2005 |
| Replies: 26 Views: 5,843 |
Forum: C# Sep 18th, 2005 |
| Replies: 26 Views: 5,843 |
Forum: C# Sep 15th, 2005 |
| Replies: 20 Views: 4,810 |
Forum: C# Sep 14th, 2005 |
| Replies: 20 Views: 4,810 Re: Quick directory question uh?
do this.
listBox1.Items.Add(Convert.ToString(f));
this.filename = f;
Read();
and in the Read() function remove the line : this.filename = H\ipoed\etc... ans also the concat thinggy |
Forum: C# Sep 14th, 2005 |
| Replies: 20 Views: 4,810 Re: Quick directory question lol, of course it gives you an exception:
this.filename = @"H:\ipod_control\music";
// Read the 128 byte ID3 tag into a byte array
FileStream oFileStream;
... |
Forum: C# Sep 14th, 2005 |
| Replies: 20 Views: 4,810 Re: Quick directory question well if textbox1.text is H:\ipod_contol\music and then you cocatenate again \ipod_contol\music to it gives : H:\ipod_contol\music\ipod_contol\music, so it's normal that te folder access is denied,... |
Forum: C# Sep 13th, 2005 |
| Replies: 20 Views: 4,810 |
Forum: C# Sep 13th, 2005 |
| Replies: 20 Views: 4,810 Re: Quick directory question You should remove the sentence "google is there for you" in your sig, because you do anything but googlin' :rolleyes:
http://csharp-home.com/index/tiki-read_article.php?articleId=149 |
Forum: C# Sep 11th, 2005 |
| Replies: 20 Views: 4,810 Re: Quick directory question ok, this is a function which scans a sourcedir recursively and copies the found files to the target dir:
/// <summary>
///
///
/// </summary>
/// <param name="sourceDir">source... |
Forum: C# Sep 11th, 2005 |
| Replies: 20 Views: 4,810 |
Forum: C# Sep 8th, 2005 |
| Replies: 7 Views: 5,028 |
Forum: C# Sep 8th, 2005 |
| Replies: 7 Views: 5,028 Re: HelpProvider Namespace Problem your second parameter for ShowHelp is wrong (it has to be the path to your help file)
try this:
/ get environment variable representing the Windows folder
String s =... |
Forum: C# Sep 8th, 2005 |
| Replies: 7 Views: 5,028 |
Forum: C# Sep 5th, 2005 |
| Replies: 7 Views: 5,581 Re: XML save settings Just as plazmo suggested you rename your controls properly and also post the complete source of your app (so that we're actually able to compile it), then we can help you further. |
Forum: C# Sep 5th, 2005 |
| Replies: 7 Views: 5,581 Re: XML save settings You can store it in the registry:
// Save data
RegistryKey regKey = Registry.CurrentUser.CreateSubKey(
"Software\\tayspen");
regKey.SetValue("Name", "Tayspen");
regKey.SetValue("Pass",... |
Forum: C# Sep 5th, 2005 |
| Replies: 2 Views: 7,599 Re: File.Create Question // Creates a file called "test.txt" on the currently logged-in
// user's desktop
File.Create(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\testfile.txt");
// Or if you only want... |
Forum: C# Sep 4th, 2005 |
| Replies: 2 Views: 1,956 |
Forum: C# Aug 15th, 2005 |
| Replies: 4 Views: 1,408 Re: Im Stumped Once More!! There is indeed some spanish in the first guy's post.
But the answers are in PERFECTLY UNDERSTANDABLE english. |
Forum: C# Aug 14th, 2005 |
| Replies: 4 Views: 1,408 |
Forum: C# Aug 11th, 2005 |
| Replies: 2 Views: 1,368 Re: Problem :?: u need a global systemwide hotkey
http://www.webtropy.com/articles/art9-1.asp?f=RegisterHotKey |