Forum: C# Nov 28th, 2005 |
| Replies: 7 Views: 2,563 http://www.amazon.com/gp/product/0735616485/103-7891102-8341404?v=glance&n=283155&v=glance |
Forum: C# Nov 27th, 2005 |
| Replies: 2 Views: 13,390 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 = true;... |
Forum: C# Nov 25th, 2005 |
| Replies: 4 Views: 2,030 |
Forum: C# Nov 25th, 2005 |
| Replies: 4 Views: 2,030 foreach (ListViewItem lvi in this.listViewFiles.CheckedItems)
{
// do whatever here
string s = lvi.SubItems[3];
} |
Forum: C# Nov 23rd, 2005 |
| Replies: 2 Views: 7,752 What about having a look here: http://www.yoda.arachsys.com/csharp/ebcdic/ ? |
Forum: C# Nov 17th, 2005 |
| Replies: 1 Views: 13,593 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: 16 Views: 12,106 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... |
Forum: C# Oct 31st, 2005 |
| Replies: 9 Views: 6,195 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: 9,101 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... |
Forum: C# Sep 27th, 2005 |
| Replies: 26 Views: 7,113 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: 7,113 Does it copy only the first 5 ? |
Forum: C# Sep 27th, 2005 |
| Replies: 4 Views: 30,570 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: 5 Views: 9,247 StreamReader sr = new StreamReader("yourFileNameGoesHere", System.Text.Encoding.Default);
string s = null;
while ((s = sr.ReadLine()) != null)
{
if (s.IndexOf("fn:") != -1)
{... |
Forum: C# Sep 24th, 2005 |
| Replies: 3 Views: 5,458 also be sure that your timer has an interval of 1000 |
Forum: C# Sep 24th, 2005 |
| Replies: 3 Views: 5,458 Hi
in your timertick
Invalidate();
if (StartTime == 0)
{
timer1.Stop();
Invalidate();
// Beep
... |
Forum: C# Sep 22nd, 2005 |
| Replies: 26 Views: 7,113 did you debug successfully now?;) |
Forum: C# Sep 21st, 2005 |
| Replies: 26 Views: 7,113 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: 7,113 well, then set a breakpoint on that line in the debugger and look what the values are... |
Forum: C# Sep 19th, 2005 |
| Replies: 26 Views: 7,113 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: 7,113 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: 7,113 what about some radiobuttons which display the choice ? yes, you can post the code , so we can try to work it out |
Forum: C# Sep 18th, 2005 |
| Replies: 26 Views: 7,113 dude, did you finish the mp3 copier? :P |
Forum: C# Sep 15th, 2005 |
| Replies: 20 Views: 6,052 remove line : this.filename = blabla... from the Read() func |
Forum: C# Sep 14th, 2005 |
| Replies: 20 Views: 6,052 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: 6,052 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: 6,052 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: 6,052 What's the value of textBox1.Text when you call that function? |
Forum: C# Sep 13th, 2005 |
| Replies: 20 Views: 6,052 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: 6,052 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: 6,052 string[] files = Directory.GetFiles(sourceDirectoryName, "*.mp3"); |
Forum: C# Sep 8th, 2005 |
| Replies: 7 Views: 7,202 yes, didn't notice your previous post ;) |
Forum: C# Sep 8th, 2005 |
| Replies: 7 Views: 7,202 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: 7,202 shouldn't that be:
String h = s + @"\Help\MyHelpFile.chm";
? |
Forum: C# Sep 5th, 2005 |
| Replies: 7 Views: 8,712 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: 8,712 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: 13,757 // 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... |
Forum: C# Sep 4th, 2005 |
| Replies: 2 Views: 2,578 String s = Environment.GetEnvironmentVariable("windir"); |
Forum: C# Aug 15th, 2005 |
| Replies: 4 Views: 1,697 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,697 http://www.dotnet247.com/247reference/msgs/9/49583.aspx
See the 2 answers in that thread |
Forum: C# Aug 11th, 2005 |
| Replies: 2 Views: 1,678 u need a global systemwide hotkey
http://www.webtropy.com/articles/art9-1.asp?f=RegisterHotKey |