|
Hello everyone
I'd like a movie resolution get,now How to get a movie resolution (film file)?
Please help,
|
|
|
|
|
|
That's shown in the shell, you can try to get it from there, or you can use DirectX to examine the video directly.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Is a good way.But there is no other way,for example api.
Thanks for your answer.
|
|
|
|
|
miladbiranvand wrote: But there is no other way,for example api.
Yes, there's a much better way, that's why I told you a different way.
Like I said, if there's a way to question the shell for this value, I am not familiar with it ( google, perhaps ? ). In fact, I had to do this recently and was surprised at how hard it was. I use a DirectX library to do it using DirectX.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Okay guys here is was i am trying to do. I have an array that has been loaded with a list of data. The user clicks a button that will take each element in the array and display it in SEPARATE Label Boxes. I need help figuring out how to accomplish this though. here is my current code, right now I have it sending all the elements in the array to only one Labelbox, and i need to do somethign like this:
label1.text WOULD EQUAL first value in array
label2.text WOULD EQUAL second value in array
label3.text would equal third value
label4.text would EQUAL 4th value in array
then the next item(5th value) would display in label 1
then the 6th would be in label2 and so on and so on..... until last element has passed to the corresponding label
Right now the code i am showing is only passing the whole array to label1
Private Sub btnDeal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeal.Click
'***********************************************************
'this subroutine will deal each player his/her own cards
'in a round robin fashion and display them in each
'players label box
'***********************************************************
For i As Integer = 0 To cards2.Length - 1
'cards2 being myarray
'gets the values from the array
lblPlayer1.Text += cards2(i)
Next
End Sub
|
|
|
|
|
PAguilar09 wrote: lblPlayer1.Text += cards2(i)
Because that is what you are doing. You are not setting text for the other labels anywhere. Instead of stepping by 1 in your for loop, step by 5. And set the text of all the five labels just like you have done for label1. Something like this in your loop:
lblPlayer1.Text += cards2(i)
lblPlayer2.Text += cards2(i+1)
lblPlayer3.Text += cards2(i+2)
lblPlayer4.Text += cards2(i+3)
lblPlayer5.Text += cards2(i+4)
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
You got a lot of suggestions the last time you asked this. This code is better in that it does *something*, but it doesn't seem to consider any of the suggestions you were given before.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I need the code to: choose a color, and get the "Hex" code for it, the 6 figure code used in css. So basically A ColorDialog and when they choose the color it prints out the 6 digit HTML hex code name of the color, for use in the css of web pages.
Please help me with coding that, this is what I have so far:
If TextBox1.Text = "" Then
Button1.Text = "Choose Color"
TextBox1.Text = ColorDialog1.Color.ToArgb
TextBox1.BackColor = ColorDialog1.Color
ElseIf TextBox2.Text = "" Then
Button1.Text = "Choose Another"
TextBox2.Text = ColorDialog1.Color.ToArgb.ToString
TextBox2.BackColor = ColorDialog1.Color
ElseIf TextBox3.Text = "" Then
TextBox3.Text = ColorDialog1.Color.ToArgb.ToString
TextBox3.BackColor = ColorDialog1.Color
ElseIf TextBox4.Text = "" Then
TextBox4.Text = ColorDialog1.Color.ToArgb.ToString
TextBox4.BackColor = ColorDialog1.Color
ElseIf TextBox5.Text = "" Then
TextBox5.Text = ColorDialog1.Color.ToArgb.ToString
TextBox5.BackColor = ColorDialog1.Color
ElseIf TextBox6.Text = "" Then
TextBox6.Text = ColorDialog1.Color.ToArgb.ToString
TextBox6.BackColor = ColorDialog1.Color
ElseIf TextBox7.Text = "" Then
TextBox7.Text = ColorDialog1.Color.ToArgb.ToString
TextBox7.BackColor = ColorDialog1.Color
ElseIf TextBox8.Text = "" Then
TextBox8.Text = ColorDialog1.Color.ToArgb.ToString
TextBox8.BackColor = ColorDialog1.Color
ElseIf TextBox9.Text = "" Then
TextBox9.Text = ColorDialog1.Color.ToArgb.ToString
TextBox9.BackColor = ColorDialog1.Color
ElseIf TextBox10.Text = "" Then
TextBox10.Text = ColorDialog1.Color.ToArgb.ToString
TextBox10.BackColor = ColorDialog1.Color
Else
TextBox1.Text = ""
TextBox1.BackColor = Color.White
TextBox2.Text = ""
TextBox2.BackColor = Color.White
TextBox3.Text = ""
TextBox3.BackColor = Color.White
TextBox4.Text = ""
TextBox4.BackColor = Color.White
TextBox5.Text = ""
TextBox5.BackColor = Color.White
TextBox6.Text = ""
TextBox6.BackColor = Color.White
TextBox7.Text = ""
TextBox7.BackColor = Color.White
TextBox8.Text = ""
TextBox8.BackColor = Color.White
TextBox9.Text = ""
TextBox9.BackColor = Color.White
TextBox10.Text = ""
TextBox10.BackColor = Color.White
TextBox1.Text = ColorDialog1.Color.ToArgb.ToString
TextBox1.BackColor = ColorDialog1.Color
End If
I have 10 textboxes to choose 10 colors, and once the click Choose another after all the textboxes had already been filled, it will reset the form, and paste the new color in the first textbox. Please Help, Thank-You!!!
|
|
|
|
|
Your hex value is RGB in hex, so just use the ToString overload with a format string to make it show in hex ( I think it's just X, or perhaps H )
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello. One program code Gsm_Modem to send or receive has to face. hardware that me with the USB port. Anyone who can help me.
Tanks!
|
|
|
|
|
I'm sorry. I know English is not your first language, and I don't want to criticise for that, but the truth is that this post makes no sense at all. I have read it five times and have only the vaguest idea what you're trying to say. You might try babelfish.yahoo.com if you need help translating your question into English. Or just try to reword it with a bit more detail. You're writing a VB app for a phone ? You want to use a USB modem ? I'm not sure.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello.
How open the OCX code in VB6.0 (Reach Full Source).
Is There nothing like "reflector".
thank you.
|
|
|
|
|
VB6 is rubbish, and totally obsolete. You should not use it. No, there is nothing like that, the ocx is probably written in C++, because that's how VB6 was useful, C++ did all the hard work in OCX components.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello.
How open the OCX code in VB6.0 (Reach Full Source).
Is There nothing like "reflector".
thank you.
|
|
|
|
|
Don't ask twice, that's rude.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi All,
Using Visual studio 2008, I have an application that its data can save to a binary file, using *.SDB extension, Moreover users can open this file from my application. I have 2 questions about this.
1- How can I assign an icon to this saved file with SDB extension when my application has been installed in other computer?
2- Similar to *.sln file (for Visual Studio project), How can I assign tow icon to single extension? For example when a solution is saved with visual studio 2005 its icon different from that one saved from visual studio 2008. In first, the solution’s icon contains “5” but in 08 solution’s icon contains “8”.
Thanks Again.
|
|
|
|
|
A.Najafi wrote: How can I assign an icon to this saved file with SDB extension when my application has been installed in other computer?
It's a registry entry. You can write it within your program, just google to get the details, or just open regedit and look at the masses of extensions there and how they are formatted.
A.Najafi wrote: How can I assign tow icon to single extension?
I don't know exactly how it does that, but again, it's all done in the registry.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello
RegSaveKey() : how to use this function in vb.net?
any simple example?
|
|
|
|
|
There is no need to import API functions to work with the registry, just use the ones built in to VB.NET.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how?
please Write an example
|
|
|
|
|
What is it with you people.
Go google, have a go yourself first.....then when you get stuck come back with a specific question and show us what you have tried.
Yes, i 1 voted you.
|
|
|
|
|
Hello
How can I get a export in the Registry
And what import it
In Vb.net
Any method
|
|
|
|
|
hi
to check
IfMy.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software", "TRIRMRER", Nothing) IsNothingThen
end if
to set
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\XYZ", "TRIRMRER", Format(Now, "yyyy/MM/dd HH:mm:ss"))
and to create a key
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\XYZ", "TRIRMRER", Format(Now, "yyyy/MM/dd HH:mm:ss"))
|
|
|
|
|
I m desinging webbot which Logins on faceBook site select Friends List and Have to delete contacts
I m having problem while delete List cause DeleteList is not a button in webpage and i dont know how to access and capture its even using webbrowser control plz help
|
|
|
|