Ultra Fast Drawing In DotNET
Jun 27, 2009
Initial tests indicate that GDI+ (writing in VB.NET) is not fast enough for my purposes. My application needs to be able to draw tens of thousands of particles (coloured circles, very preferably anti-aliased) in a full screen resolution at 20+ frames per second.I'm hesitant to step away from GDI+ since I also require many of the other advanced drawing features (dash patterns, images, text, paths, fills) of GDI+.Looking for good advice about using OpenGL, DirectX or other platforms to speed up particle rendering from within VB.NET. My app is strictly 2D.
View 6 Replies
ADVERTISEMENT
Nov 29, 2011
When I right click on ultra grid view or may be grid view. I want to display different contextmenu strip for different columns. But when I right click I get index of column which I selected not which I right clicked.
Code is as follows:
Private Sub DataGridView1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGridView1.MouseDown
If e.Button() = Windows.Forms.MouseButtons.Right Then
MessageBox.Show(DataGridView1.SelectedCells(0).ColumnIndex.ToString())
End If
End Sub
View 2 Replies
Jun 3, 2012
draw individual pixels, without resorting to drawing a line and setting it's length to 1. Is there an actual ability to draw a pixel that is just 1 pixel big?
View 2 Replies
Feb 18, 2012
I need some code to draw a resizable, draggable rectangular cursor (or selection box) on a picturebox. I found some excellent code (albeit rather old) that does just that, but on a form rather than a picturebox. I have tried converting the code - basically moving things to the picturebox events (Paint, MouseDown, MouseMove etc). It nearly works but leaves a trail behind it when you move or resize the cursor. In other words, the selection rectangle is not being erased before being drawn in the new position.
Is there some fundamental difference between drawing graphics on a form and drawing on a picturebox that would cause this behaviour? Something like, when you invalidate a form and cause a redraw it erases what you did last? If not, then I just need to dig a bit further and work out how the cursor is being erased from the previous position.
Here's the original code that works fine on a form:
Private DragRect As New RectangleF(20, 20, 100, 80)
Private Adornments(7) As RectangleF
Private MouseInRect As Boolean = False
[Code]....
View 1 Replies
Nov 1, 2010
I'm looking at a small remoting project in VB.NET. Initial research turns up references to msrdp.ocx which my Windows 7 Ult system doesn't have; a filesystem search on the same platform turns up MsRdpWebAccess.dll which doesn't appear to be well documented; finally hunting through COM references in Visual Studio turns up rdpencom.dll labeled "rdpcomapi 1.0 Type Library" which seems to be best documented via personal developer blogs (which isn't encouraging but is a lot better than other options).
My goal is a lightweight remoting application I can deploy to Windows 2000 Client/Server, WinXP x86/x64, Win2k3 Server, Vista x86/64, and Win2k8 Server.Is there anything DotNET Native I can use instead of one of these COM libraries? Is one of these COM libraries better for the job overall than others; and then am I going to have platform-specific compatibility issues if I don't provide support for more than 1 of them in my app?
View 5 Replies
Jun 21, 2010
Say I have 3 Buttons, labelled: Unit 1, Unit 2 and Unit 3. When I click on any button I want a drawing of that unit to appear on screen at a pre-specified starting point. Thereafter when I press any other one of the buttons the unit drawings appear alongside each other in a line. So I could end up with:
[Code]...
View 4 Replies
Aug 17, 2009
With this line...
If PictureBox1.Image = My.Resources._2star Then
I get this error: Operator '=' is not defined for types 'System.Drawing.Image' and 'System.Drawing.Bitmap'.Is there another way to say = with images?
View 8 Replies
Mar 13, 2010
When i try to open a designer window of a project in vb dotnet an error occurs, Could not find editor for this vb.Why this error shows. But i can open code window.
View 12 Replies
Sep 19, 2009
I am developing application in VB.Net (dot net framework 4.0) and SQL Server 2008 R2.will it work sucessfully on thin client machine
View 2 Replies
Jan 26, 2010
I would like to download a file using VB.NET (preferably) or C# via HTTPS.
I have this code to download a file over plain HTTP:
Dim client As WebClient = New WebClient()
Dim wp As WebProxy = New WebProxy("[IP number of our proxy server]", [port number of our proxy server])
wp.Credentials = CredentialCache.DefaultCredentials
client.Proxy = wp
client.DownloadFile("http://sstatic.net/so/img/logo.png", "c:logo.png")
How do I change this code to download a file that is stored on an HTTPS-server? I guess it has something to do with adding credentials or something.
View 2 Replies
Mar 25, 2012
How can I save and retrieve an image from a SQL Server database in ASP. VB DOTNET ? When I double click on `FileUpload1 control noPrivate Sub` comes. What am i missing?
View 1 Replies
Oct 2, 2011
This tools enable u to Export Function form dll files Created in both Visual Basic .net and C# (2005 to 2010) . no need now to VC++ or C++ to export function u can do it legally in VB.net and C# . [URL]
View 1 Replies
Jul 7, 2010
can tell me description or demo in working with microsoft report in in dotnet 2010 ie.. framwork 4.0,iam good in 3.5 framwork microsoft reports, but when i am doing microsoft reports in dotnet 2010 iam getting many errors, can u tell me how to do , is anything new in this or same as 3.5
View 2 Replies
Nov 17, 2011
Would like to migrate MS-ACCESS 2003 legacy applications into modern Dot Net, including migration of the MS-ACCESS Database to Sql Server 2008 (with potentially also migration of the MS-ACCESS Reports to Sql Server Reports). The purpose is to move to DotNet application with Sql Server as its database.
[Code]....
View 5 Replies
Sep 15, 2009
what are the features that should be supported by online examination project
View 1 Replies
Nov 22, 2011
how to Read Excel XLSX through DotNET?
View 1 Replies
May 23, 2009
Is it possible to convert an object form System.Drawing.Graphics to System.Drawing.Image?
View 4 Replies
Jan 21, 2010
Here is my favicon code
Dim oURL As Uri = New Uri(e.Uri.AbsoluteUri)
Dim favicon As Image
If oURL.HostNameType = UriHostNameType.Dns Then
[code]....
The error is Value of type System.Drawing.Image cannot be converted to System.Drawing.Icon Is it even possible to make the favicon be the icon of the form?
View 4 Replies
Dec 15, 2009
Why does: DateTime.Now.ToString("M") not return the month number? Instead it returns the full month name with the day on it. Apparently, this is because "M" is also a standard code for the MonthDayPattern. I don't want this...I want to get the month number using "M". Is there a way to turn this off?
View 6 Replies
Oct 10, 2009
I've got an assembly (loaded as ReflectionOnly) and I want to find all the namespaces in this assembly so I can convert them into "using" ("Imports" in VB) statements for an auto-generated source code file template.
Ideally I'd like to restrict myself to top-level namespaces only, so instead of:
using System;
using System.Collections;
using System.Collections.Generic;
you'd only get:
using System;
I noticed there is a Namespace property on the System.Type class, but is there a better way to collect Namespaces inside an assembly that doesn't involve iterating over all types and culling duplicate namespace strings?
View 6 Replies
Mar 11, 2009
I need to set the default property of a dotNet Control used by an VB6 Application.
<ComClass(myControl.ClassId, myControl.InterfaceId, myControl.EventsId)> _
<DefaultProperty("NewProperty")> _
Public Class myControl
[code]....
View 2 Replies
Dec 21, 2009
i have a component developed in dot net if i want to find out the dot net framework required for that component to run, how can i find out?
i know we can detect the framework installed on a system, but here i have a dot net component, and want to find out which framework is needed for it to run?
View 1 Replies
Jul 2, 2009
I have an idea to make user machine no need to install dotnet framework to run a .net program
first,copy all the project refrence(with mscorlib.dll)to the program directory
then,make a bat file,"dotnet error fix.bat",inside the file includes the command that copy refrences to Microsoft.NET directory will the program run like this?how do i test?
View 4 Replies
May 17, 2009
I am running a client-server application and am having problems with privileges (I assume). The application is developed using 2005 Express. The Client is running Win XP Home whilst the server is running Win 2003. When the user on the client has Admin rights on the local machine, everything is OK; however when the user has only User rights, an error occurs: VB will not run.
View 14 Replies
May 31, 2012
I am working on a large project with hundreds of dll's being used on the same machine, on the real large windows there is latency issues that I would love to address. The VB6 project was quick and effective but dotnet is bulky and slow compared to vb6 version, what changes from vb6 to dotnet would increase performance and reduce latency in the larger windows?
Working with VB08 3.5 Framework so parallel isn't going to work sadly, what other methods are there from a code standpoint could I use? DUring the conversion process could it be using parts of code that bog the system down?
View 1 Replies
Apr 29, 2011
How do I tell what version of the dotnet framework is required by my application?I am using Visual Studio 2008.I have these installed on my machine:
.NET FW 2.0 SP 2
.NET FW 3.0 SP 2
.NET FW 3.5 SP 1
Are the service pack 2 updates inclusive of service pack 1? I don't think I need .Net 2.0 - do I need 3.0 if I also have 3.5 ? Do I look somewhere inside Visual Studio, or at my references?
View 3 Replies
Jan 15, 2009
I have written an app using VS2008 and i now want to run this application on another computer. I need to have the dot net framework installed right?
Is it possible to use the VS2008 DVD to install just the .Net Framework on the new computer?
If not how do I install the .Net Framework on this machine?
View 3 Replies
Apr 3, 2009
im using an MDI parent form and MDI Child. how can i print the image that's inside a picture box that's inside the Child from a button that's on the Parent?when i try to use print preview or print dialog, i can't get it to recognize that the document is the picure inside the picture box. i've looked up this error message:Value of type 'System.Drawing.Image' cannot be converted to 'System.Drawing.Printing.PrintDocument'.[code]
View 6 Replies
May 4, 2012
I once heard about a software that could dynamically run dotnet instructions (C#, if I remember well) on its command line, e.g when entering 1==1, the output would be true.I don't remember the name of this soft, and sometimes one just wants to know the result of a given instruction, without having to create a new program, compiling it and run it...
I would happily take the challenge to make a soft like this on my own later, but for now on I'd just like to find this soft.Does anyone know its name, or another app which would achieve the same result? (Don't tell me PowerShell, I'm searching for something more handy.
EDIT For those who use Visual Studio and who didn't know (I just learnt about it), you can also use the Immediate Window. It even allows you to get intellisense in some cases.
View 4 Replies
Oct 13, 2010
Cannot Consistently and Reliably Write to a Custom Event Log from DotNet
View 4 Replies