C# - Overlay Text On Some Else's Window - HUD?

Jun 19, 2009

I have a form with some text boxes bound to a dataset using the binding source component I'd like to change one of the unbound fields in the current record programmatically before posting any changes from the bound controls

View 13 Replies


ADVERTISEMENT

VS 2008 Drawing On The Screen With An Overlay Window

Apr 9, 2011

I have a bit of an issue here. I made a "Colour picker" dialog in my program with which you can pick the colour at the mouse. It is a simple topmost form with an OnPaint handler used to draw a coloured border around the cursor:

It uses a transparency key to make the non-drawn parts of the form transparent.

It uses the following code to prevent the mouse from clicking through the screen:

Window.FromControl(Me).ExStyle(Window.ExStyles.Layered) = True
Window.FromControl(Me).ExStyle(Window.ExStyles.Transparent) = False

It sets Layered to True and Transparent to False. This works in Windows 7, but on a XP machine it fails. When moving the mouse the event does not go to the forms' event handler and you can just click through. For a screen region selector I simply made a screenshot, but I want the Colour Picker to remain updated. (just in case you want to get the colour of an animated control)

How can I get this to work on a Windows XP machine?

View 22 Replies

Overlay Text On A Textbox?

Dec 14, 2009

I need to overlay the word 'VOID' over a textbox but in a semi transparent way so the text in the textbox underneath 'VOID' can still be seen.

I have tried using various controls with no luck and there is no paint event for the textbox.

View 2 Replies

Overlay Text, Bitmap With Diff Effects (alpha) Using DX?

Feb 6, 2011

I need to overlay the text, a movie or bitmap over a video.It would be possible to use VMR9 filters, but at playing of a wide video, for limits of a black square, it is impossible to overlay in out of video square range.

View 5 Replies

Picture Box Overlay?

Apr 2, 2010

I have a picturebox in a Windows VB.NET form (not web based). I will be placing images into it from an image control. (Not a problem) I need to paint graphically a tiny solid circle (a colored circle) in a location (varies) on top of this picturebox. I am not finding how to do this in your indexes. I would some instruction on how to do this.

View 1 Replies

.net - ITextSharp Overlay Image?

Mar 15, 2011

I have an instance where I have a logo image as part of some artwork..If a user uploads a new logo I have a form field which is larger than the default logo.I then use that form field to position the new image.

The problem is I need to set the background colour of that form field to white so that it covers the old logo in the event that the new image is smaller than the old logo..

what I have done is:foreach (var imageField in imageReplacements)
{
fields.SetFieldProperty(imageField.Key, "bgcolor", iTextSharp.text.Color.WHITE, null);
fields.RegenerateField(imageField.Key);
PdfContentByte overContent = stamper.GetOverContent(imageField.Value.PageNumber);
float[] logoArea = fields.GetFieldPositions(imageField.Key);

[Code]...

The problem with this is that the background colour of the field is set to white and the image then doesn't appear.. i remove the SetFieldProperty and RegenerateField commands and the image replacement works fine.is there a way to set a stacking order on layers?

View 1 Replies

How Simulate Imagelist.Overlay()?

Dec 4, 2009

Is a way to get the same in VB.net?I've tryed with DrawImage but it doesn't work.

View 1 Replies

Overlay Line On PictureBox?

Jan 12, 2010

I have connected a serial tilt sensor to the PC,The sensor returns angle of tilt ,i need to represent the angle of tilt pictorially,When i move sensor the corresponding movement should be represented in a graph (Like a clock minute hand)For this i started with Picture box with back ground image,But when i draw the line according to tilt ,the line is not getting displayed on top of Picturebox,

View 5 Replies

Dynamically Create An Overlay Over PictureBox?

Mar 17, 2011

I have a VB.Net PictureBox floorPlanImage on a form form1.

I load a picture into the picturebox[code]....

How can I modify my onclick function to correctly overlay the rectangle over my PictureBox?

View 1 Replies

PictureBox With Transparent Overlay Picture?

Jan 14, 2010

I'm working on a UserControl which has two PictureBoxes.One has the picture I want to display to the user and the other has a picture that I use as an overlay.The overlay PictureBox uses a PNG image with a transparent background. However, every time I run the UserControl, the overlay does not display the transparent parts of the PNG image as transparent (It appears white).

View 4 Replies

VS 2010 Transparent Black Overlay?

Feb 3, 2012

When the dialog pops up, the screen dims down almost as if they overlapped the screen with a transparent black layer of some sort. This is easily accomplish able by creating a black form and having its opacity set to half and starting it maximized-which I'm already doing. The problem with this though is I need to do this within a form, so using a panel or anything is out of the questions since transparency really grabs the background image and not the actual controls underneath. Plus I feel if adding a form to another forms controls depletes it's ability to use it's opacity property.The form I need this in is my cash register. It is full screen but if my menu auto hides it still resizes. It has two parts, the order(panel to the left) and the payments(panel to the right). As you could imagine I want the payments portion blacked out until the order is capable of accepting payments(the payment due is greater than 0). Or I'm thinking it fallows the mouse, you mouse over the payments and the orders panel blacks out, and vice verse.

Plus I have tried googling this but no one seems to have the answer on other forums.. Everyone gets confused and the thread ends short with no solution. Apparently though experts-exchange has the answer, but wants me to pay... so no. Wish their site would stop showing up in my google results.But did have an idea of what I could do. My best guess was I could take a snap shot of just the panel I want to black out. Set it as the background image for that panel THEN use my overlay panel(back color sent to black) overlapping the appropriate section with it's transparency set to half.. But still I'm not sure how to take a snap shot of just a particular.control..

View 8 Replies

.net - Opaque Form Overlay Without Covering Task Bar?

Aug 10, 2010

Using Visual Studio 2008 and VB.NET ...

I've created a form (OpaqueForm), which is an intermediary form between other forms which I will open with ShowDialog. The idea is that when I want to show a form using .ShowDialog, this OpaqueForm, with an opacity other than 100%, sits in between the main form and the dialog form, effectively "greying out" the underlying main form.

The OpaqueForm has the FormBorderStyle property set to None, and accepts in the constructor a Form object on which it invokes .ShowDialog. The effect works fine, but there is one caveat. The task bar is also covered by the OpaqueForm; I am assuming because it has a FormBorderStyle of None and a WindowState of Maximized.

I don't want the OpaqueForm to cover the Task Bar, because it would be impolite to have my modal form lock out a user from switching between tasks. How could I go about preventing OpaqueForm from covering the Task Bar, too, while still using a FormBorderStyle of None?

View 3 Replies

Overlay DirectX Full Screen Games .Net

Feb 21, 2010

I have a wonderful program which needs to be overlay-ed over my full screen directX game, the only problem is I can't seem to find any way of doing this with .net coding

things that don't work are, these are not overlays and will not work over a full screen directX game. I posted this so hopefully no one gives me that answer by mistake.

HTML

timer1.interval = 1
if timer1.enabled = true then
me.topmost = true
end if

the only thing I can seem to find is this example and source C# overlay maker however it's pretty old and it's for C# but maybe someone could convert it somehow to .net or something, I really need to find a way to do the overlaying tho been trying for months now...

View 4 Replies

VS 2008 Creating An Interactive Overlay Over A Game?

Jun 14, 2009

creating an interactive overlay over a game (such as the way xfire lets you chat with people ingame).

View 1 Replies

VS 2008 - Simple Text -> Xml Program - Save The Contents Of The Bottom Text Window To An Xml File

Dec 23, 2009

I have this Quiz software that lets you create online multiple choice quizzes which are great for studying (I am in grad school and I'm trying to use everything I can to learn). So the Quiz software is great but it only lets you input questions by hand, one by one. I took a look at the .xml file that the quiz program spits out and came up with the idea to try and make a converter so that I can import many questions at once. I was hoping to try and solve this limitation by doing the following:

Take a .doc that say a tutor gives us with a bunch of practice questions, and then take that into Crimson Editor, and then format it so the question is on line 1, the multiple choice answers are on lines 3,4,5, and 6, (for the next question, the question would be on line 11, and the answers on lines 13, 14, 15, and 16, and so on) and then take that saved .txt file into my program, hit the generate button, and it will spit out the .xml file, and then import that into the quiz software to generate the online quiz.

Here is an attached screenshot of my program layout so far:

I figured out how to open a text file by watching simple youtube tutorials, but I don't know how to have it generate the stuff and have it show up in the bottom text box. I know how to do the coding to convert the txt to proper xml code but I don't know how to be able to save the contents of the bottom text window to an xml file.

View 1 Replies

C# - Good 3rd Party GridView With Merge/overlay Features

May 2, 2011

Are there any datagridview controls from a 3rd party component companies, such as Telerik, that have a feature for merging cells or overlaying cells into one?

View 2 Replies

Make A OpenGL Overlay With VB 2008 Express Edition?

Sep 28, 2011

make a openGL overlay so for an examplei play a game and when i click shift + tab then the game will fade and my application will be seen but without minimizing the game

View 3 Replies

Make A Touchscreen Overlay For Our Crappy POS Software At Work?

Aug 25, 2010

I'm about to lose my mind. I'm trying to make a touchscreen overlay for our crappy POS software at work. It is a simple DOS program. I had built an autohotkey script and gui but I just didn't like the look and lack of advanced menus. All I want is to replicate the CONTROLSEND ability of autohotkey. I tried the autohotkey.dll but I have no idea how to add it to my project. I was hoping VB2010 had something built in that can send a string of keystrokes to the DOS program underneath. I have searched all sorts of forum posts for a SIMPLE snippet of code. Seems anyone seeking this is out for nefarious purposes though, and little help is offered. If you worry about this please PM me so I can prove to you my good intentions.

Let me repeat, all I want is a simple snippet of code that when a button is pushed, a specific string (characters and function keys) is sent to a specific out of focus dos box.

View 2 Replies

Overlay Or Watermark A Picture In Windows Media Player?

Jan 14, 2009

I working on a distributed mediaplayer that uses the windows media player component.Now the customer asks me if its possible to have their logo overlayed on the media played instead of them having to render every movie with the logotype.I have google it and it seems like I can use a directshow filter to do this, but I havent found any good information on how to do it yet.If anyone here know If I can do this programatically, with a plugin, filter or some other way it would be nice to know. Its fine if its a plugin that costs money too. What I want is to be able to use a jpg/png as watermark/overlay to the running movie in Windows Media Player 11

View 1 Replies

VS 2008 - Overlay Small Bar Over Fullscreen DirectX Games

Jul 25, 2009

I need to overlay a small bar along the top of the screen over a fullscreen DirectX game. I have searched for a while but I have not found any code examples for VB.NET 2008 (I've never used any previous version). How can I do this? Would this involve learning DirectX programming?

View 2 Replies

Forms :: Creating Paragraph Styles Of Text In Window Forms Text Controls?

May 8, 2010

I am trying to build a NOTEPAD/WORDPAD like application with vb.net on visual studio 2008.

I need an option to define and choose (MsWord, or CSS like) paragraphs styles, such as: "heading1", "green quotes", etc.

View 1 Replies

Getting Text From Window?

Aug 21, 2009

i've been trying for a few hours to get the text of a window in a game (a window not owned by my application). i have used a couple different spy programs, and none of them have found the text, either. they display "custom1" for the window's text. it's the play by play window of a baseball text based game. is it possible that some applications are just impossible to get text from?

[Code]...

View 2 Replies

Find All Text From A Window?

Feb 11, 2011

I am trying to find all text from a slightly older application. The thing is, the old scripit from windows NT finds the text I need no problem, but I cant seem to get it myself.

I find the main window, and cycle through its children, but must be looking at something wrong. I am missing 2 things: The title of the app has the name, and then some status information, the status information does not show up on the window title info. The text in the application itself does not reveal itself to me either

Here is a code snippet of how I try to get the info out:

Private Sub gettext(ByVal hd As IntPtr)
Dim Hwnd As IntPtr = hd
'Alloc memory for the buffer that recieves the text

[Code]....

View 2 Replies

Get Any Selected Text Of Window?

Sep 9, 2010

So i want my software can read any selected text of windows. That text can be in word, webpage , notepad

View 1 Replies

Getting Data To Appear In Text Window?

Mar 23, 2011

I have a vb 2008 form with a form that you choose your Employee Name from the listbox and then when you click enter it moves to another form and i want the name that you chose to appear in the window. Get the employee Id for the session and appear in the window. The employee name is retrevied from a databse using databinding.

View 5 Replies

VS 2008 Getting Text From Another Window?

May 19, 2009

I searched the forums to look for an answer and I found several good exemples, but unfortunately, none worked for me..I want to make a little program to read an Edit field on another window. I understand the basic. I need to get the handle of the main window (using FindWindow) and then find the handle of the Edit field (Using FindWindowEx). So far, so good... I think I managed to get those two correctly doing:

Declare Auto Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal strClassName As String, ByVal strWindowText As String) As Long Declare Auto Function FindWindowEx Lib "user32" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

Dim hWindow, hText As Long
hWindow = FindWindow("", "Text")
hText = FindWindowEx(hWindow, 0, "Edit", vbNullString)

(Yes the window title is Text :P). Ok now when I do a MsgBox(hText) it does show a long number (not 0) so I believe it found the Edit field (but I'm not so sure on how to verify if it's the right number... tried Spy++ with no luck).Now, this is where I'm stuck. I know I have to use SendMessage() with WM_GETTEXTLENGTH and WM_GETTEXT which I tried maybe in 100 different ways and none of them worked. I either got an OverflowException or my String would stay empty.

[Code]...

View 9 Replies

Send The Text To The Active Window?

Mar 23, 2010

Want to send the text from my current vb application to the Active Window and that text should be displayed in the text area of the active window.

View 1 Replies

Copy All Text From Console Window?

Jun 24, 2010

I am writing a console program in vb.net 2010 .net 4.0. Through out the program there are many lines of info. presented to the user in the console window. I was wondering if there is a way to copy all those lines from the code, cause I want to save the text as a log to the operations carried out.

View 3 Replies

Copy Text From A Label From Other Window?

Jun 21, 2009

Is there a VB code with it i can copy text from a label from other windows (windows of other applications) and paste it in a label or text box ?

View 1 Replies

Enter Text Into 3rd Party Window App?

Dec 14, 2011

ok I've read tons and coded tons and I'm just not sure what I'm doing wrong.. I have to assume its because there are 900 ways to do sendmessage with the windows API and I'm just not doing the correct one..

I made an an app that runs up and shows me its window handles.. my other app can find the one textbox and return the handle.. now I just have no clue how to send the message correct to make my string pop up. Do I need just the handle ? or do I need to get the handle of the text property using the getdlgitem ??

Dim ParenthWnd As Long
Dim hWnd As New Long
Dim texthWnd As Long

[Code]....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved