|
Have you installed the latest DirectX SDK? If so you'll find an application called DirectX Sample Browser which has a PlaySound sample application you can install and play with.
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
|
|
|
|
|
I went through it, and it was a sound application, but in the source, all I found was Direct3D things, honestly. Should I feel like an idiot? (No smart comments) PLEASE HELP!
-- modified at 13:17 Sunday 25th November, 2007
- I love D-flat!
|
|
|
|
|
hi
I will protected all file in a directory but I don't know about it
plzzzzzz help me if you have a solution
thanks alot
regard
|
|
|
|
|
You have to be a bit more specific. Whom and what is it that you want to protect the files from?
By the way, your zzzzzzzzzz key zzzzzzzzzemzzzzzzzzzzzz to be zzzzzzzzzzzzzztuck...
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Guffa wrote: your zzzzzzzzzz key zzzzzzzzzemzzzzzzzzzzzz to be zzzzzzzzzzzzzztuck...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Guffa wrote: By the way, your zzzzzzzzzz key zzzzzzzzzemzzzzzzzzzzzz to be zzzzzzzzzzzzzztuck...
It seems your keyboard driver is written in Lisp
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Eg. I want to add user to System.Window.Forms.LinkView.
It will show all user being added in.
& i want to add certain user to System.Window.Forms.Listbox.
Is this possible work?
|
|
|
|
|
What's a System.Window.Forms.LinkView ?
/ravi
|
|
|
|
|
i want to get data in LinkView via arrow button and show it in the listbox
|
|
|
|
|
Hey.
By spying on windows in IE and IE7 i've managed to retrieve the URL
to my application using FindWindowEx and SendMessage API.
The thing is, now i would like to retrive them from Firefox and Opera browser aswell. When looking at Internet Explorer on a spy tool i can see all the controls, For instance, a TabControl, in that TabControl
there is something called ReBarWindow and in that i can see that there is some ComboBoxes and in those there's an Edit field (Textbox).
And thereby i can grab the handle of that control and do what i please.
In Firefox or Opera for that matter there are only 3 "windows" and all sub-windows have exactly the same name, and there is no way to tell WHAT is What?
So, what i basically need is a handle to the combobox in firefox, which for me atleast seems to be invinsible..?
I need help on this, i hope i explained well.
|
|
|
|
|
My timer callback delegate may decide to dispose the timer if certain conditions are true.
Do i need to lock(this) before doing so since another callback may be executed at the same time?
thanks alot !!
more details if you have the time:
when event x happens, i construct and start a timer with the callback function Func. Func checks if there are items in a list:
If there are items it handles the items
else it disposes the timer.
Func will occur in a timely fashion till list will be empty - and timer disposed.
If event x will happen again and the timer already exist - do nothing, if timer doesn't exist - construct it again.
|
|
|
|
|
Hi,
if it's a Windows.Forms.Timer its handler runs always on the GUI thread, so it can't reenter.
if it's a Threading.Timer or Timers.Timer it may reenter before it finished an earlier call.
Anyway, if you may need the timer again later on, why dispose and recreate it? a timer
is not that expensive, you could just Stop() it, and later Start() it again.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi Luc, thanks for answering me. i use Threading.Timer and i didn't see any Stop \Start methods.
I found only ways to set it to infinte time, thus disabling it. But then when i need to check
whether it's already disabled, the check seems akward - i have to check if it's set on infinte time.
Is there an equivalent of stop and start that i missed?
thanks and have a great day
|
|
|
|
|
Hi,
Threading.Timer has Change() method; the other two timer classes do have a Start() and
Stop() method, and an Enabled property, so they might be more appropriate for your purpose.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi,
I have currently a problem with my ListBox.
It's the first time I implement a specific draw item function
The problem is that when I clear my ListBox the draw function is still called !!!
I dont understand why, if I clear the list I shouldnt have any items in the list why is the draw function called ?
Thanks for any help !!
|
|
|
|
|
When the DrawItem event is fired and there are no items in the ListBox, then you really just need to draw the background. The DrawItemEventArgs[^] has an Index property which tells you which item you are drawing. If this value is -1, then you are not drawing an item (probably because there are none). In addition, the State property tells you what you need to draw.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hi.
Im trying to make an automated gallery browser that can scroll through web pages and download all the images off them. It is currently working, using a webBrowser control. I have a list of all the images on the page in a listbox on the side, each with a thumbnail preview image. However, i am on dial up (laugh and get it out of the way), and the way the application currently works is to download the url to the browser, extract the img tags from the source code, and download each image as a bitmap. This takes ages as it has to download each image twice, once in the web browser and once from the url of the image.
I am wondering if there is anyway to extract the images from the webBrowser control so i dont have to download them twice?
I have played around with the webBrowser.DocumentStream, but cant work out how to get the images.
Any help appreciated.
-- modified at 18:23 Sunday 25th November, 2007
|
|
|
|
|
Just an idea, not sure it will work, not sure you will like it:
tell Internet Explorer to not show images (uncheck Tools/Internet Options/Advanced/Multimedia/
Show Pictures). That way the browser should not follow the IMG tags automatically.
I reckon you'd better forget about the browser control, and do HTTP calls yourself,
using the System.Web namespace.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
The browser control is embedded in a form, its not using internet explorer.
Guess i will have to start doing some research into the HTTP Requests.
I knew taking the easy way would catch up with me in the end
Is there anything good to be said about using the AxSHDocVw.AxWebBrowser, or is it similar to the Windows.Forms.WebBrowser?
|
|
|
|
|
Did you try what I suggested?
AFAIK WebBrowser uses the settings set in IE.
I expect WebBrowser and AxSHDocVw to be very similar.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Using HttpWebRequest is actually pretty easy, in around 8 lines or something like that, you will have a stream or similar of the html code for the page, which you can then just search for the img tags. I'll just go grab some code...
using System.Net;
...
HttpWebRequest Pie = (HttpWebRequest)WebRequest.Create("http://www.pie.com");
HttpWebResponse response = (HttpWebResponse)Pie.GetResponse();
Stream pieStream = response.GetResponseStream();
SR = new StreamReader(pieStream, true); 8 lines, 4 lines, its the same thing!
Anyways, then you can just read the text using the stream reader.
My current favourite word is: PIE!
Good ol' pie, it's been a while.
|
|
|
|
|
Thanks for the pointer Luc.
The Undefeated: Code snippet helped a lot
I have the stream of the web page. Does that contain the images in the page as well?
I am using a webBrowser control to experiment. I have set it to give me a message whenever the FileDownload event occurs, and am getting differing numbers of messages per page, as expected. However i cant work out what files the FileDownload event is occurring for.
Is there any way i can extract the the images on a page from the webpage stream or am i on the wrong track?
|
|
|
|
|
Hi There,
Can anyone tell me how to get the color of a string?
E.g.: I am passing a string to a function. The function needs to return the color of that string.
public Color GetColor(string);
I am extracting this string from a RichTextBox line.
Thanks in advance.
-----------------------------------------------
"Don't crib about your job. Only 1% are doing something meaningful and I have never seen any of them."
|
|
|
|
|
Hi,
a string has no color, it only holds characters.
an RTB can show a string with extra attributes such as font style, color, e.a.
You can get or set the color of some text INSIDE an RTB using RichTextBox.SelectionColor().
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
thanks a ton!!!
|
|
|
|