Search:
Type: Posts; User: pax
Search:
Search took 0.13 seconds; generated 9 minute(s) ago.
-
I'm not familar with that specific function call, but generally, Interop functions return a value to indacate success, hence the Integer return type.
If other values are returned as well, it's...
-
An alternative (if the class is only relavant for this particular solution) is to have the class file under one of the project.
For project 2 and 3, select Add Existing Item, browse to the file, BUT...
-
Hi again.
Come to think of it... I think I focused on the wrong issue. I focused on your IsMouseOver, when in reality it was the ToolTip that was interesting...
Turns out, that the IsMouseOver...
-
You could add a class like this:
public class InvertBoolConverter:IValueConverter
{
#region IValueConverter Members
public object Convert(object value, Type targetType, object...
-
I haven't tried it, but maybe you could use a datatrigger instead.
Then you could use a converter in your binding that inverts the bool.
-
Thanks. :thumb:
Strange that one needs to do it through code, though!
But indeed, it does work.
-
Hi guys.
Can anyone tell me what I'm doing wrong here?
When running this, MyMenuItem doesn't have an InputGestureText but the Paste-menu does.
I thought it was supposed to, automatically, find...
-
You could try the LockWindowUpdate API...
<DllImport("user32.dll")> _
Public Shared Function LockWindowUpdate(ByVal hWndLock As IntPtr) As Boolean
End Function
Just call it with your...
-
Well, if you're hosting the webbrowser control yourself, you should have a pretty good idea where it is, relative to your form.
Then it's just a question of offsetting the coordinates with the...
-
That declararion is from VB6.
If you plan on using that from .NET you have to change all the Longs with Integers
I just tried your code and it made an error in the call stack.
After changing...
-
-
You can use...
MyBool = Not MyBool
-
-
Hi.
Try using the PreviewMouseLeftButtonDown instead.
I have found that MouseDown, MouseLeftButtonDown etc. doesn't always work.
I think it's because a previous handler has set the...
-
Hi.
I've had the same problem.
I tried to serialize a generic List(Of String), which also came up empty.
I ended up making a standard array of strings.
string[] values;
public string[]...
-
Based on this : http://www.wpflearningexperience.com/?p=41=1 it appears that WPF actually does take the dpi setting into account. The problem is, that even though an app should look the same wether...
-
Hi.
If you save your pictures with 96DPI they should look ok. The reason WPF upscales and blurs the images is because they are probaly saved using 72DPI.
WPF always assume 96DPI. That also means...
-
Hi guys.
I intend to experiment a little with layered windows. Problem is that they can't show controls. Google'ing suggests that the solution is a form on top with the transparency key set.
...
-
This seems to work:
Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)
Dim fInfo, fInfos() As IO.FileInfo
Dim dInfo As...
-
Or you could just override the "ShowWithoutActivation" property.
Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean
Get
Return True
End Get...
-
I see that Troy allready answered that one, but just to clarify :
DX = DirectX. Most 3D games use this.
OpenGL is just an alternative to DirectX. Some games use only OpenGL and some lets you choose...
-
I don't think a DLL will help you very much.
Sure, the compiled version may be smaller, but again, once you load the image into memory you'll have the same problem.
DLL's are really just a...
-
I could be wrong, but my guess is that games sends the most used textures and images to the graphics card so it's stored in the GPU's own memory.
So unless you use DX in your app, your images will...
-
Hi jm.
Thanks for your suggestion. I actually got it to work.
The only problem I have now is finding the id of the proper thread to recieve the message.
At the moment, my app has 14 threads,...
-
Hmm...I have tried both the GetMessage and PeekMesage but not on a thread of it's own.
It might just be what I'm looking for. I'll try it out when I get back to work on monday.
Thanks a lot for...
-
Hi jm.
Thanks for the answer. But I've read that allready. That's the reason why I tried PostThreadMessage instead, but I couldn't get that to work either.
The message doesn't have to go to the...
-
Well, I've managed to overcome this by using udp sockets and sending the command this way. But it doesn't seem right that I have to use network comms when both apps are on the same machine.
I've...
-
Hi guys.
Does any of you guru's know how to send a message from a normal windows form app to an app that does not have a form?
I have one app with no forms. Only a notify icon in the taskbar....
-
:o I can't believe I totally missed the constuctor :o
:wave:
-
I think this will do the trick.
Problem is, that I don't know what would happen if the icon contains an alpha channel.
Dim bmp As Bitmap = CType(Bitmap.FromStream(msIcon), Bitmap)
...
-
Thats because you're using My.Application.OpenForms(I) to both close it AND dispose it.
Once you close it, it no longer exists in the collection, so My.Application.OpenForms(I) wont work if it's the...
-
Once you close F and dispose of it, it's no longer in the OpenForms collection.
Thus, the collection is changed during your loop, and that's probably what's causing your problem. When you remove an...
-
Nope! I have it running on a IBM ThinkPad 1.7Ghz 1.5Gb Ram.
Everything runs slowly on this piece of crap, except for VBE.
That's pretty much the only thing working right on this oversized...
-
Try putting the bytes in a string variable instead. Then set the textbox1.text property after the for...next loop.
The way you are doing it now, causes the textbox1 to redraw all the time,...
-
Make a label with borderstyle set to either 3D or single, and make the height of the label 2 pixels and the width to match the width of the form.
EDIT: damn you Rob.... :p
-
The program is not freezing. It just takes a very long time.
I have also noticed in 2005 that using bmp.width and bmp.height in a for..next loop adds an unbelievable amount of time to the process....
-
If I understand correctly, then all the red should be transparent?
If so, then try this:
CType(TheImage, Bitmap).MakeTransparent(Color.Red)
-
My bad, sorry.
The player controls property conflicts with the regular Controls property.
It's called "Ctlcontrols.currentPosition"
-
Have you tried "MyPlayer.controls.currentPosition"?
(where "MyPlayer" is the name of your player object variable...)
-
You can serialize it just like any other class that is marked with the Serializable attribute, so just mark it with the Serializable attribute.
|
Click Here to Expand Forum to Full Width
|