Interface And Graphics :: DXF Viewer Control With Measured Output

Dec 16, 2011

I am re-writing my old VB6 DXF viewer control in VB.NET Winforms. Attached is a picture of my testbed app. As we only need it to check parts that have been created to generate gcode for our laser it is limited to Points, Lines, Arcs, And Circles. It has Point, EndPoint, Centers, and Intersections snaps for all entities and combinations of entities. Measured output is displayed as Actual Point to Point plus Horizontal and vertical delta. Zoom Extents, Zoom Window, Pan and Mouse Wheel Zoom are fully functional. The last took a while to develop as I wanted the Zoom to be centered about the cursor position just as it is in Acad.

View 19 Replies


ADVERTISEMENT

Interface And Graphics :: Any Way To Pipe Output Of Bat File To Control

Mar 26, 2010

I have a visual basic .NET application that starts up a command prompt window using the following method:[code]The bat file then goes on to start up an application, which has a lot of output to the command prompt.I was wondering if there was any way to pipe the output of the bat file to a visual basic control. I am trying not to modify the bat file, if I can help it.

View 9 Replies

Interface And Graphics Image Pixel Viewer

May 3, 2011

I would like to create a pixel viwer (i.e. zoom into a picture to view the image's pixel information - Similar to windows paint or Photoshop). I have created an image zooming code, but it enlarges the image and sadly, doesn't show the blocks of pixels I was hoping for.I have thought of several ideas, but each worse than the next. As an example, re-create the image, increasing each pixel's area based on the zoom-level. But I can tell already that this process would be slow and judging by photoshop (or paint) there is a quicker method.

View 2 Replies

Interface And Graphics :: Basic Picture Viewer Program

Nov 19, 2008

I have managed to build the basic Picture Viewer Program. Now Remember the program I am working on is for a Digital Picture Frame there is NO wirless network adapter on the old pc and there is no keyboard going to be attached to the laptop so the program must launch its self (ill put a short Cut in the windows startup folder). I got a picture box that excepts the picture file it covers the whole form! (when there is a picture in the picturebox1 it fits the screen) My form one covers the entire screen (I set the windows border from scalable to none). I need to make my program scan for picture files on different drives and then every 30 seconds or so choose a random picture from the usb drive and display it Posted below is my code:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()
PictureBox1.ImageLocation = OpenFileDialog1.FileName ' want to remove this feature so the user cant see this
[Code] .....

I am designing a program to be similar to Microsoft image viewer. I want it to open on PC start up Full screen and I want to make it scan for Images on flash drives with the user doing anything. I am making a Digital Picture frame out of my old dell laptop and I would like to make the program for it. How to have it play a random image every 30 seconds or so...

View 1 Replies

Interface And Graphics :: GDI Output To A Monitor And Projector

Aug 30, 2008

I'm writing a VB2005 program (for WinXP) to implement a lighting show and need to clarify a few things before I buy a video projector.My PC has 2 Geforce 8800GTS cards. One will feed a standard monitor (housing the program control interface) and the other will feed the video projector doing the lighting show.My prog uses GDI DrawString to output text to the video projector.In the prog I want the output of Form1 (control interface) to ALWAYS go to the Monitor (through the primary display adapter) and the output of Form2 (GDI text strings) to go to the video projector (through the secondary display adapter).Can I assign a FORM to a specific Display Adapter or Monitor/Projector so that all output from that form will automatically go to that adapter (monitor/video projector)?If not, what is the best way to do it? Perhaps something like the following? Frankly I have no idea whether this is even remotely correct or whether there is a better way. [code] If the above is correct, will it work for a video projector as well (i.e. is a porojector also set to a specific resolution/bounds and is that resolution/bounds used as its size, as with a monitor?

View 2 Replies

Interface And Graphics :: Display Long Lists Of Output?

Aug 15, 2008

I am trying to write a program in VB2008 Express. I originally wrote it in excel, but I want to add some features and make it a standalone executable. the program is ideal for a spreadsheet application though.

essentially, there are two input tables. each containing about 6 columns and maybe 10 rows. I assume that could be handled by arrays. the output would be a continuously updated table of output based on calculations using the data from the two input tables. the output table would be about 4 columns by up to 1000+ rows, and would need to be recalculated and displayed each time any data in the input tables has changed.

first, are arrays sufficient to handle this? would databases be more appropriate?

second, what's the best way to display a long list of output, that has a user defined length and is continually updated. it would also be nice to have the ability to click on an individual cell (or value) in the output and have more code executed.

is there a way to incorporate a spreadsheet like tool for this as a backend? I want to make sure i'm using the most efficient approach before i invest too much time.

View 1 Replies

Interface And Graphics :: [VB2010] - How To Get Hdc From A Control

Nov 22, 2011

i wanted use some api graphic functions. but how can i use the hdc argumenter, if the picturebox don't have it?

View 11 Replies

Interface And Graphics :: Control Resize Begin And End

Dec 27, 2009

How to implement resize begin and end on controls the way a Form does. I had the idea that this can be accomplished using windows messages API (WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE) but most of the samples I've seen so far are for windows. The reason for this is because I have a control that needs to re-render an image. The controll is inside a split container. The split container has only the Resize event. Is there any way this can be done?

View 4 Replies

Interface And Graphics :: Custom ListBox Control

Dec 8, 2009

I'm trying to build a custom ListBox control as inspired by the 'Audi Infotainment System' on high-end Audi vehicles. The only difference is i would like to have a 'boundary' where when scrolling up/down moves the actual list up or down. Basically, i would like my list to act like a normal ListBox except i would like to show say one or two items above and below normally only visible items.

View 3 Replies

Interface And Graphics :: How To Dock A Control Inside Another

Jan 7, 2010

I downloaded the custom made OvalShape control for Visual Studio 2005, and I really like it. One problem I have, is that I would like to have a label docked inside the Oval, as if it was a Panel or a GroupBox or pretty much any other control. With the other controls it does this automatically when I move the control inside them, but when I move the label inside the Oval, it won't "stick" to it. The OvalShape will move around and change size quite a lot in my app, so it would be nice ot to have to add a snippet of code after every movement of the OvalShape.

View 2 Replies

Interface And Graphics :: Mirror A 3rd Party Control

Nov 6, 2008

i have 3rd party custom tab control , that does not have RTL support also no source code so i sub classed it and mirrored it like below

[Code]...

View 1 Replies

Interface And Graphics :: Tab Control Arrow Keys?

Nov 12, 2008

If a tab is highlighted and you hit the left/right arrow key, it goes to the previous/next tab. I want to remove this functionality. I only want the user to be able to change tabs with the mouse click.

View 5 Replies

Interface And Graphics :: Add Control Panel To Side Of Form

Jul 12, 2011

I've got an app that I want to have an MDI with. It functions fine, but there needs to be a control panel off to the side of it to drive the child documents' creation. I have two problems with this.

First, if I add the control panel to the side of the form, it just overlays the MDI portion of the form and the children will spawn behind it. I can more or less manage the positions of these children, but the problem comes when I want to minimize the children, they minimize behind the control panel and I don't know how to move them. So I need to shrink the area they can move around in. I've read in places that you can use the splitter object, but that never seems to cooperate with me and only wants to move to the extreme left or right of the parent form. How can I reduce the area the children get to interact with? I've tried creating a MDI Panel, but VS has a fit with that.

Second, I've got a datagridview holding the data that will spawn the child forms. This is working well, but even though I've set the rows to be not resizeable, I can still make them grow or shrink during run-time (not programmatically). How do I stop this?

View 2 Replies

Interface And Graphics :: Express Beta 2 Calendar Control

Apr 13, 2010

I'm wondering if anyone has been getting a 'System Exception Violation: Attempting to write to protected memory' exception.I have 3 calendar controls on a form and when selecting dates on the 3rd one, I am getting this error when I select a 2nd date.

View 6 Replies

Interface And Graphics :: How To Place Control Buttons Over Photo

Feb 25, 2010

I'm new to VB, now working with VB 2008 Express Edition. Was once very proficient with "procedural" languages of the 70's (eg. Fortran, COBOL, etc), but totally new to OOP and the "Visual" languages. Despite being a quick study, eloping a user interface to a USB-connected infrared remote control device. The UI's graphical element (a "virtual remote") will be a PHOTO of the IR remote control device supplied by my target-equipment's mfr, OVERLAYED with functional software control buttons in their respective positions. "Pressing" a button on the virtual remote will cause the USB device to emit the desired IR code sequence.

View 2 Replies

Interface And Graphics :: Invalid - Inherited Picturebox Control

Dec 21, 2011

I recently wrote an inherited picturebox control. From within the control inside methodI I call Me.Invalidate to fire the control onpaint event. But onPaint does not fire.

View 2 Replies

Interface And Graphics :: MouseWheel For Interop'ed ActiveX Control?

Apr 18, 2011

Is it possible to get the MouseWheel event from an Interoped ActiveX Control?

I have a DXF Viewer (with measure) control I wrote in VB6 that is quite frankly... Huge. It would take an inordinate amount of time to rewrite the whole thing and supporting tools in VB.NET. The MouseWheel event is used to Zoom in and Out. The control has a MouseWheel_Input() method to accept MouseWheel data from the host.

I added all the VB6 Mouse events, the Enabled Property, and The ActiveControl Property in VB6. Recompiled and registered the control on my VB.NET development machine. Added the control to my new VB.NET project and verified it has a focus method.

View 1 Replies

Interface And Graphics :: Translucent Pie Chart Using MS Charting Control

Feb 22, 2010

I'm using the MS Charting control, and can't find the way to create the translucent effect shown in their example piccy[url]...

Notice how the pie chart is translucent. How is this done with the chart control on a winform?

View 2 Replies

Interface And Graphics :: Transparent Background In User Control?

Dec 3, 2008

I am attempting to write a simple 11ball style game. It requires images of poolballs overlapping each other. Since the balls will need some internal intelligence I was hoping to create them as usercontrols.I am having trouble gettiing the control's background to be transparent.Setting the background color to (Web) transparent only makes the background clone the form background color.

View 1 Replies

Interface And Graphics :: Use A Treeview Control To Separate Them Into Sophomore?

Aug 12, 2010

I have a list of about 150 students that I would like to organize. I need the user to be able to select individual students, and I was hoping to use a treeview control to separate them into Sophomore, Junior, Senior(No freshmen) so that way it is easier to locate a single member.

My problem with this plan is that checkboxes are beside both the root and the child nodes and I only want the user to be able to select the individual students. So my question is is there a way to only put checkboxes beside the students or is there another control that can achieve the same effect?

View 7 Replies

Interface And Graphics :: VB ListBox Control Display Names?

Dec 20, 2010

I don't usually use VB but now I must for an assignment. I would like to know if it's possible to change the display name for an object on a listbox. For instance, if I add to it a user defined class, there's a way to provide it's display name, instead of converting it to string and then add it.

This is what I have

Dim format As String = FormatOutput(object)
Lista.Items.Add(format)

I would like to have the same output, but instead add the object.

Note: if such is not possible, then how can I associate the list box selection to the actual object? Doing it by index is painfull, because I'm using linked lists (ie., instead of arrays).

Note 2: python has a __str__ method which is called by default when the object is cast to string. Is there anything like it in VB?

View 6 Replies

Interface And Graphics - Add Late Bind Control To Form Dynamically

Oct 14, 2010

Using VB 2008. We have an app with a third party grid on it works well enough. This is a small utility within a bigger suite, and adding/updating it involves a simple EXE copy. The issue I am trying to address is that not all customers will have the 3rd party controls on their systems, and we want to avoid deploying them if we can.

Can I build the app so that if the controls are present, the app uses them. But if they are not present, I use a simpler control? I picture using a 'launcher' form that tries to load Form2 with 3rd party. if it errors, then just load Form3 with common controls. But can I even get to that point? With missing controls, will the app even load? I understand Late Binding for objects, but this is a control right on the form. Can I late bind a control and add it to form dynamically perhaps?

View 1 Replies

Interface And Graphics :: Cannot Change Color Properties For MonthCalendar Control

Sep 12, 2011

[code]For some reason I cannot change the color properties for the MonthCalendar control.[code]No matter what I change it to, it stays to its default color of white and black. Actually none of the color options work on any of the sections of the control.I am trying to hide the white border around the control and but a blue bar under the name of the month (top section).I have tried deleting the control and creating it anew on the form but no luck.It was working a couple of weeks ago.

View 1 Replies

Interface And Graphics :: Inherited From TextBox And Auto-validating Control?

Nov 16, 2011

I frequently use TextBoxes that expect date values. I do a tedious job every time to handle the Validating event. The Validation event ensures that the value is a valid date value according to the current thread's Calendar, and if so, formats the date to "dd-MM-yyyy".

I want a TextBox (e.g. DateTextBox) that automatically runs validation and formats its Text property. All I have to do is dropping it to the form.

I know I should use inheritance; but I do not know where to put the auto-validation code; and I do not know how to save the inherited class as a control in the ToolBox.

View 4 Replies

Interface And Graphics :: User Contols Contain Webbrowsers That Autorefresh Every 15 Sec (not Under My Control)

Aug 29, 2011

I am developing an app that has a treeview on the left in panel1 of a split container. When you click in a node it loads a user control into a tabcontrol that is in panel2. Some of the user contols contain webbrowsers that autorefresh every 15 sec (not under my control). I can successfully remove a tab by a contextmenu but I can still hear the clicking sound of the webbrowsers refreshing. Not sure what to do to completely remove the usercontrol. Treeview control code for one node: there rest are basically the same

Code:
Dim tabcount As Integer
tabcount = TabControlMain.TabCount

[CODE]...

Code to remove a tab and all tabs:

Code:
Private Sub RemoveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RemoveToolStripMenuItem.Click
TabControlMain.Controls.Remove(TabControlMain.SelectedTab)

[CODE]...

I also originally had this setup to work without the tabcontrol and just load the usercontrol into panel2 of the split container. Each time a new node was selected from the treeview I would have SplitContainer1.Panel2.Controls.Clear() to remove the current usercontrol. I would still hear the clicking of the old usercontrol.

View 3 Replies

Interface And Graphics :: Creating Outlook Style Navigation User Control?

Feb 3, 2010

I believe that this is in the correct forum due to it being about creating an interface item, but if I am wrong then let me know and I'll try and bring this thread to the attention of the mods to be moved to a more appropriate forum. I am currently trying to create a generic navigation control with a similar style to the outlook navigation bar. I have figured out how I would be able to dynamically create the bottom part where you select the menu option, but I'm struggling to figure out how I would be able to create the top part, which can contain any user control that the developer would want.

So basically what I'm trying to figure out is, is there a way to allow for a developer to add controls to a specific area of your user control?If there is a way of achieving that then if anyone knows how to do this;In ASP.Net you have the login controls and with one of them, you are able to have different views depending on whether the user who is viewing the web page is logged in or not. Is there a way of achieving this in VB.Net for a user control that could be set up so that I could have the developer able to switch the view in the designer to show them the view for when a specific navigation option has been selected.

The one thing that I have thought of that could possibly cause a problem is having the capability of knowing when one of the user controls has been clicked, while I haven't figured this out exactly, I believe I should be able to achieve this by having an event for the navigation user control that provides the developer a reference to the control.

While I would hope that I have explained what I'm thinking well, its before my first coffee of the morning so I might have missed out some detail which would help someone to help me if I have then please let me know and I'll provide any details required.Also if what I'm envisioning is Pie in the sky, then let me know and I'll just have to make a base which I would just have to make a more bespoke system.

View 1 Replies

IDE :: MODI Viewer - Add A "Microsoft Office Document Imaging Viewer Control 12.0" Control To A Form

Mar 29, 2009

I try to add a "Microsoft Office Document Imaging Viewer Control 12.0" control to a form and i'm getting the next exeption: An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I have try to register the next files which throws an exeption when I try to do it:

[Code]...

View 4 Replies

Interface And Graphics :: E.Graphics.Drawstring Length Overflow Page?

Nov 19, 2010

Im working on a project that needs to print a report of one client.Everything went smooth untill i came across my multiline input text data.When i display it in the PrintPagePreview the text go's outside my page. Even when im printing it only the halve of my text is displayed. I googled and looked everywhere but i can't get a clear fix for it.

[Code]...

View 3 Replies

Interface And Graphics :: Passing Bitmaps & Graphics To Subroutines As Arguments

Jan 22, 2011

I used to program with Visual Basic 6, so I have alot of old programs that I'm updating, plus I'm learning the new VB2008 methods. I'm writing a program that replaces the old "BitBlit" function which is no longer supported by Visual Basic 2008. It involves three picture boxes, one holds the sprite bitmap, a second holds the mask (silhouette) of the sprite bitmap, and a third has a background image.

[Code]...

View 3 Replies

Interface And Graphics :: System.Drawing.Graphics.DrawString On Other Window?

Aug 14, 2009

drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.

View 2 Replies







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