|
yes.... u r right. 1) i will copy the code rather than typing it here.
2) objMP3V1.Frame(MP3ID3v1.FrameTypes.Title) .This code return the value of title and similarly objMP3V1.Frame(MP3ID3v1.FrameTypes.Artist) returns the value of Artist. But when i try to concat by either i) artist + title or ii) artist & title ---- it returns only artist's value.
But this problem was solved when i created 3 label fields :-
label1, label2, label3. what i did was:-
label1.text=objMP3V1.Frame(MP3ID3v1.FrameTypes.Title)
label2.text=objMP3V1.Frame(MP3ID3v1.FrameTypes.Title)
label3.text=label1.text + "-" + label2.text
With this code it was concatening. But in this case also if i make these 3 label fields invisible ('label1.visible=false') then it doesn't concatenate again. So i have to always set the visible property to true of these 3 labels. This is quite strange though.
Anyways thanks a lot for your help.
Regards
|
|
|
|
|
WHAT???? This is REALLY strange. Since the .Text property of a Label only accepts a String, I have no idea what's going wrong. Perhaps a bad string comming from the library you're using? You might want to check with the people that wrote the library for any issues.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i know this sounds strange, even u can check like this when u get time and if possible clarify me if u think i am making a mistake. Whatever, atleast this way (labels) it is working.
btw the class i was using for fetching id3 tags from mp3 files is :
http://www.codeproject.com/vb/net/vbmp3header.asp
|
|
|
|
|
united18 wrote: when u get time
That's funny! I won't get that kind of time for months!
united18 wrote: btw the class i was using for fetching id3 tags from mp3 files is :
http://www.codeproject.com/vb/net/vbmp3header.asp
So go to the bottom of his article and post your problem there. THe author will get an email message that you posted your question and he might be able to tell you something about it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
This line:
dim new Name as string
is not even possible to compile.
So, you are not showing us the code that you are using. How much does the real code differ from what you showed?
(Sorry if this sounds picky, but I have wasted a lot of time looking for errors that doesn't exist in code that people doesn't even use.)
---
b { font-weight: normal; }
|
|
|
|
|
sorry actually i wrote
dim newName as string
it was just a typing mistake here.
in the program i wrote 'newName' only and not 'new name'
|
|
|
|
|
I have made .net componets com compliant and visible in VB6 but I can not seem to get a .net exe to behave as an active-x exe.
For backward compatability I need to create a .net exe that vb6 can use with late binding.
dim obj as object
set obj = createobject("DotNetExeName.PublicClassName")
If anyone knows how to do this, I would appreciate the help.
Rich Bradley
|
|
|
|
|
None of the managed code compilers can generate a true ActiveX server. The .NET Framework doesn't support all the exports required. But, you could simulate something similar using COM Interop using very similar techniques to what you've already done. You can learn more about this under Interoperating with Unmanaged Code[^]. Pay particulat attention to RegAsm.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
My school ends 04.03.2006 and i need to make some application for end... i started to do text editor and i want when some of text starts with example("!") then the combobox apears with items that you can insert example
_______________________
| ("!Insert string") |
| ("!Insert picture") |
| ("!Todays Date") |
| ("!Smiles") |
| ("!End all") |
-----------------------
and other thing:
How to when the other form dialog apears and when i click insert on it i want that it inserts a text buth in position where was the (Ibeam). example
_________________________________
| Form1 - Text editor |
|--------------------------------|
| Some text bla bla balsa ssfj |
| Other one texttatdigfjl a |
| |
| More tegjkabsdfn čkssa |
| |
----------------------------------
now i click on insert new and the new forma apears like dialog
__________________________________
| Form2 - Insert text to Form1 |
|--------------------------------|
| |
|Type text to insert: |
||==================| |
| |
| Cancel | Insert|
----------------------------------
i pres insert and i want that the text what i typed is inserted in Form1 - TextBox1 - Selected start where was the (Ibeam).
Please help meeeeeeeeeeeeeeeee...
Thanks
Plus i didnt sleep 2 days... so please help me!
FeRtoll Software.net
--------------------
I fertoll@net.hr I
--------------------
|
|
|
|
|
pls can u tell step by step what exactly u want?
Regards,
uni
|
|
|
|
|
I need that when i type in textbox... if text starts with "<" then i get combobox with items for html tags... buth annywhere in textbox if i type i get thet... Get it now?
The other question is how can i bring string from other dialogform to first one in textbox buth in the place where was the cursor (Ibeam) the | when you type the text...
Ohhhhhhh sorry i am from croatia i dont know english good. Buth please help me...
Thx
FeRtoll Software.net
--------------------
I fertoll@net.hr I
--------------------
|
|
|
|
|
"I need that when i type in textbox... if text starts with "<" then i get combobox with items for html tags... buth annywhere in textbox if i type i get thet... Get it now?"
in the key press event of the textbox u can check for < or .......if(textbox1.text="<") then u can either i) create a combo box or u can set the visible property of a combo box to true --- (combobox1.visible=true)
sorry can't get ur second ques - is it that u wanna fetch a value from a dialogbox and use it in a textbox???
|
|
|
|
|
yea in key press event...
so it will be like:
Private Sub TextBox1_TextChange 'this event<br />
<br />
If textbox1.text.startswith("<") then<br />
combobox1.visible=true<br />
else<br />
combobox1.visible=false<br />
End if<br />
End Sub
buth i dont need that becose i need that it always check if the "<" is typed annywhere...
Should i try like this?
Private Sub TextBox1_KeyDown<br />
<br />
if e.keys="<" then<br />
combobox1.visible=true<br />
else<br />
combobox1.visible=false<br />
End Sub
The other question is:
I have Form1 and Form2
on form1 i have textbox1
and now i type text in textbox something like this:
_____________________________
| shdkashlčj ljsl jlj aćdsk |
| jsahkldhsačklh aslč jda l |
| sjdaskd <-"Here is Ibeam" |
| jsd d ashkld ahs dkas s |
| sdjahdla čsdčk ashčfač f |
-----------------------------
^-this is TextBox
and now i click in menu insert new...
the form2 shows like dialog
you select text to insert in textbox
and click on btn_insert
and now i want that the text that was selected in list box on form2, that that text goes to form1/textbox1 thats easy buth i need that text goes to the place of Ibeam not on the end of text box. Thanks again
FeRtoll Software.net
--------------------
I fertoll@net.hr I
--------------------
|
|
|
|
|
1)yes u should try the keydown()
2)to replaceonly a part of a textbox
u should use replace func. :-
TextBox1.Text = TextBox1.Text.Replace("IBeam", "new text")
|
|
|
|
|
FeRtoll wrote: and now i want that the text that was selected in list box on form2, that that text goes to form1/textbox1 thats easy buth i need that text goes to the place of Ibeam not on the end of text box.
By Ibeam, do you mean cursor? If so, try using SelectedText, like this:
textbox1.SelectedText = listbox.text
This will insert the text from form2 listbox into the text in form1 textbox, at the location of the cursor.
Roy.
|
|
|
|
|
Roy Heil wrote: By Ibeam, do you mean cursor? If so, try using SelectedText, like this:
textbox1.SelectedText = listbox.text
This will insert the text from form2 listbox into the text in form1 textbox, at the location of the cursor.
lol Roy. you think that the question is that easy... you think i didnt tried that?
I tried everithing its not that easy... I need to save focus but how...
You didnt helped me buth, Thx man for traying annyway...
FeRtoll Software.net
--------------------
I fertoll@net.hr I
--------------------
|
|
|
|
|
Good day, I want to change the font color of my datagrid.
I have a project that retrieve data to sql database, when the data is retrieve, the font color is blue and when adding data, the font color is red. Thanks in advance.
|
|
|
|
|
I think your looking for this[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks
|
|
|
|
|
i load datatable into a grid, the grid is added, edited. Now i put into the grid a new row with the same key as another row. I have used Rowchanged and Columnchanged Events. But after it messaged the error as i gave, it message a error message from System.
I want to turn of it. How can i do that? Please help me!
superdragon
|
|
|
|
|
superdragon wrote: I want to turn of it. How can i do that?
You can't! You're violating the unique value constraint on the Primary Key column of your table. You simply cannot do that and cannot turn off the error.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: You can't! You're violating the unique value constraint on the Primary Key column of your table. You simply cannot do that and cannot turn off the error.
Dave is right. The whole idea of the Primary key having the unique value is to prevent duplication
PJC
|
|
|
|
|
No, i dont wan to add duplicated ID Key, but i only want to message the Error as i want, after that i will edit it. But after my message is messaged, i receive system Error, i dont like that.
superdragon
|
|
|
|
|
Then what does this mean:
Now i put into the grid a new row with the same key as another row.
??????
Now we're really confused. How are you adding this new record? Why are you trying to add a new record with a duplicate key? If you don't want the message to come up, don't put the duplicate key in! It's that simple...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I only want to catch error, because maybe someone can insert a new record into grid with the same key, and they dont know about english, they can not understand what the system error message means.
superdragon
|
|
|
|