What Is Most Similar Thing To A Pointer Meaning Like C Poinetrs
Apr 17, 2009
What is the most similar thing in vb.net to a pointer, meaning like C poinetrs? I have a TreeView within a class. I need to expose some specific nodes (or leaves) that can be modified by external objects.
View 5 Replies
ADVERTISEMENT
Jun 5, 2011
I'm trying to create a small paint component( similar to MSpaint but not the same thing) in vb.net.I have a panel that holds the background image and a picturebox over the panel that I draw on. I'm using graphics to draw shapes and I have my own custom double buffer, meaning that I draw on the picturebox while the mouse ismoving and on mouse up I draw the final image on the buffer image and on paint event the buffer image replaces the picturebox image.also, i have set the form properties to enable double buffering
Me.SetStyle(ControlStyles.ResizeRedraw, True)
Me.SetStyle(ControlStyles.DoubleBuffer, True)
Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True)
Me.UpdateStyles()
my problem is that no matter what i've tried the picture box keeps flickering. as long as the mouse is moving, the paint event keeps getting called and the image flickers like crazy what i need is more ideas(or pseudocode) on how to avoid flickering.
View 3 Replies
Jul 15, 2010
I have an open source project I converted to vb.net. I solved all the errors, except for one. This is the C# line
[Code]....
View 4 Replies
Dec 29, 2010
How can I declare pointer to pointer in ATL. Actually I have a handle which I want to pass by address to function. As shown below
STDMETHODIMP Function(HANDLE* hHC) //HANDLE declared as void * so actual type is void **
OR
STDMETHODIMP Function(LONG **hHC)
And want to access this function from the VB client.
View 1 Replies
May 18, 2009
What is the meaning of having constructors (sub New) in a module, and why must they have no arguments?
View 4 Replies
Jun 18, 2009
Im doing a project something to do with getting the output using serial port.However, I still don't get the meaning of vbCr in my coding.
View 3 Replies
Apr 20, 2010
for example. like a wikipidea or like apple is to eat or something..
View 7 Replies
Feb 17, 2011
whenever we go to code by double clicking on some control so we saw a body of two lines:
Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
end sub
View 4 Replies
May 20, 2010
I know how to check whether an item exists in a list using (MyList.Contains), But I do not know how to check the whole list. For example (use one button and one richtextbox):
[Code]...
View 14 Replies
Sep 1, 2010
get Intellisense in Visual Studio 2005 to display the meaning of individual enum values for a VB.NET project. This already happens for enums that are a part of the .NET library?
View 2 Replies
Aug 28, 2010
i want to know the meaning of false,false in the following code for odbc connectivity using vb6.0.
set db=opendatabase("dsn",false,false;"odbc;uid;pwd;dsn")
View 3 Replies
Dec 1, 2011
what is the meaning of the dollar sign after a method name in vb.net
like this:
Replace$("EG000000", "0", "")
View 3 Replies
Apr 16, 2012
What is the meaning of the square brackets around the name of a property in the definition ?
Example :
Public Property [Date] As String
View 3 Replies
Apr 21, 2010
i have a simple code just have a look End Class
[Code]...
When i add num1 and num2 as above, compiler gave error that -- Operator + is not defined for types "type" and "type".How to define the meaning of '+' or any other operator in such situations?
View 11 Replies
May 20, 2010
I have defined a Sub in vb.net, with 'Of' type parameter like this:
[Code]...
I want to just add number1 and number2, But as you can see error has occured where i want to sum number1 and number2 saying that '+' is not defined for type 'VarType'. how to add these variables in Such Methods.
View 7 Replies
Oct 29, 2008
I have a simple javascript I want to run in a contentpage (meaning inside a master). I test the javascript in a normal .aspx page like this:
HTML Code:
code:
And that works fine. Now, how do i transfer the java code to the content page? I just don't know where to put it, as I am already past the "Head" section of the page. From what i can read this should be right:
HTML Code:
code:
But that just returns an "error on page" message. I also tried putting the script in the head section of the masterpage. The error remains the same, and I do not want it there anyway. Anyone know where to place the script code?
View 1 Replies
Jul 24, 2011
I was just wondering what is the meaning of placing the '$' character after a function call
E.g.: Dim time as string = Format$(Now, "Long Time")
And what is funny is that it is of no use (as far as I can see).
View 3 Replies
Mar 17, 2010
Here is my xsl:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
[code]....
The problem is the class="pass_section" in the xsl. I need to set that value dynamically in the VB code (meaning put a run-time value in the xml to set it).
View 1 Replies
Aug 11, 2009
what is the exact meaning of the function:
cmd.ExecuteNonQuery()
Though i used it a lot of times while inserting,updating or deleting the entries of the database but my basic concept about this statement is not clear.......
View 6 Replies
Oct 6, 2010
Some of my students end up with a different icon in the Solution Explorer when they create applications. An example is the attached Exam.vb icon, which includes a little arrow into the normal Form icon (see pic) . I am guessing it means it is linked some how. When the application is zipped and submitted, an error is thrown when I unzip it to grade it which indicates that the file in not part of the project, and it references the absolute address on the original application.Any idea what caused this and how can I instruct the students to avoid it in the future?
View 5 Replies
Jan 29, 2012
what is the meaning of the Ampersand after Boolean in "Result as Boolean"? Also I have seen a question mark after Boolean in some 'Dim' statements. What does that mean?
View 3 Replies
Nov 8, 2009
i asked a lot for this thing an i need answer and here is an example i need to create something like that connected to WebDav or FTP Server[URL]... this drive you can install it and easy transfer data from your hard disk to the Gmail server and login with Gmail account
i have WebDav Server and FTP server and i need to create Drive like this one to transfer data to this partation and sure to the account at the server
View 7 Replies
Aug 9, 2010
have a web browser and want to know how to create a history thing, I want to be able to view history in a seperate form, I want in my options to be able to delete history, and I want my combobox to be able to view the last addresses I have
View 6 Replies
Jul 20, 2011
Is there a function in Visual Basic that does the same thing as file_get_contents in PHP.I'm a PHP programmer, and I want to write a few scripts to download some data from an API I'm using.
View 1 Replies
Aug 29, 2009
I want Yes to do the SaveFileDialog and save the file.I want No to just close programI want cancel to return to program
Public Class Form1Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
[code].....
View 9 Replies
May 24, 2010
This webservice is almost converted form VB to C#, except I get this error shown below on the DataRow arow object when I use it in the foreach statement below to populate the Results Class with a DataSet Object...
Error: A local variable named 'arow' cannot be declared in this scope because it would give a different meaning to 'arrow', which is already used in a 'parent or current' scope to denote something else
using System;
using System.Web;
using System.Collections;
[code]....
View 1 Replies
Feb 14, 2006
I've recently converted some VB 6 code over that used the old non-structured exception handling. I also have some .NET classes that raise custom exception classes. When the code was VB6 I used to expose my .NET classes using COM interop and errors raised from .NET classes were being caught correctly in VB6. Now that everything is .NET the old non-structured exception handling is still there in the converted classes. But now the Err.Number is not reflecting the HResult of the error raised. I wrote a simple little Windows Application form with 2 buttons to simulate the problem. Here is the code snippet:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
On Error GoTo ErrHandler
Err.Description = "Test Error"
[code]....
If you click Button1 you get the following message:
-2147215379 : Test Error
If you click Button2 you get the following message:
5 : Test Exception
View 8 Replies
Apr 4, 2010
[MyCode]
Rigger.Show()
Me.Close()
Instead of showing Rigger.vb and then closing form1.vb, it closes the whole thing. I need it to leave Rigger open, and close form1
View 1 Replies
May 6, 2009
Imagine i have a listview1 and inside i populate 6 item how to write a code to count ?than a messagebox.show (" you have 6 files ")
View 4 Replies
Jul 2, 2010
ok say you have 5 listboxes and you want it so that they are kinda docked to the bottom so that when you resize the window they expand downward but not sideways
View 1 Replies