No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey First: How to get Length of textbox(how much sings have text) @edit : NVM first! Secound: I have Film Duration 00:00:22 and i must add that to xx:xx:xx how i can do that? |
|
Hey again :p I use OpenFileDialog to open files. When i open file then how i can get that length video.(i open video files) |
|
Hey I have problem... If i save playlist with 1 item then it work but if i have more then it bug. i can start debugging. [CODE]XmlTextWriter ^textWriter = gcnew XmlTextWriter(dig->FileName, nullptr); textWriter->WriteStartDocument(); for(int i=0; i < listBox1->Items->Count; i++){ textWriter->WriteStartElement("track"+ i); textWriter->WriteStartElement("url", ""); textWriter->WriteString(listBox1->Items[i]->ToString()); textWriter->WriteEndElement(); textWriter->WriteStartElement("name", ""); textWriter->WriteString(listBox2->Items[i]->ToString()); textWriter->WriteEndElement(); textWriter->WriteStartElement("start"); … |
|
hey. How to load and save to XML. xml like: [CODE][track1] name= url= starttime= [/track1] [track2].... [/CODE] and how to load only name to listbox without all link. |
|
Hey again ...:P Now i have problem with save & load from/to text file. [CODE]private: System::Void zaĆadujPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { OpenFileDialog^ dig = gcnew OpenFileDialog(); dig->Filter = "PlayList(*.PLS)|*.PLS"; if(dig->ShowDialog() == System::Windows::Forms::DialogResult::OK) { listBox1->Items->Add(IO::File::ReadAllText(dig->FileName)); } } private: System::Void zapiszPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) { SaveFileDialog^ dig = gcnew SaveFileDialog(); dig->Filter = … |
|
Hey. I have problem. How i can change options in form2 from form1? [CODE]public: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { this->Form1::Show(); video^ video2 = gcnew video(); video2->Show(); } public: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { video^ video2 = gcnew video(); video2->axWindowsMediaPlayer2->URL=(listBox1->SelectedItem->ToString()); video2->axWindowsMediaPlayer2->Ctlcontrols->play(); }[/CODE] I know it's bad, becouse i open … |