form resizing and mazimizing problem
my form gets the black effect while resizing or maximizing the form i want to remove that black screen effect can someone help in that ...
my form gets the black effect while resizing or maximizing the form i want to remove that black screen effect can someone help in that ...
I have a class that I want to be serializable but contains a public instance of delegate that, apparently can't be serialized: <Serializable()> Class A Public Delegate Function TestEventHandler(ByVal myObj as CutomObject, _ ByVal myObj2 as CustomObject) as Boolean ' does not 'want' to be...
hi I have some php code as below. <?php $value = -1924050635; echo "before:".$value; echo "<br/>"; $value = sprintf('%u', $value); echo "<br/>"; echo "after:".$value; ?> Before value is -1924050635 after value is 2370916661 My problem is that what the sprintf is doing here. What i need to do if i want ...
I'm making a Library type app which needs to scan the whole computer when it is run for the first time. Not again ever. How can I accomplish it? I'll be using SQL database to store data. So, I can easily make a table there and store a flag and check it on first run, but is there any other way? Any native support for this in VB.NET? ...
Hello I googled for this and read some threads here, but I haven't found a simple way to have a VB.Net application sleep for a little while and still keep the application responsive: Imports System.Net Imports System.IO Imports System.Text Imports System.Text.RegularExpressions Imports System.Threading.Thread [...] ''#How to keep scr...
Quiz question: What is the output of running the following program: Sub Main() Try CallToMethodThatThrowsException() Catch ex As ArgumentException Console.WriteLine("Argument exception caught") Finally Console.WriteLine("Outer finally block") End Try End Sub Public Sub CallToMet...
In order to organize various methods of my MainForm class, I would like to categorize them into several files. Of course, the methods would still need to access form elements and additional variables I added in the MainForm class. What is the standard / best-practices way to do this? ...
I've done plenty of Method Overloading, but now I have an instance where I would like to Overload a Property. The IDE in Visual Studio seems to allow it, since I can actually set up the two overloads, but I get an error saying it is not valid because they only differ in type. I think I'm missing something in my syntax? I want to be ab...
I want to test if the 2 objects values can be compared. For example if I have a variable define as an object which contains a value of "A" and another variable defined as an object with a value of 0. (These must be defined as type Object.) When I do a simple compare If Object1 <> Object2 Then etc. I get an error. So how do I test to s...
I have run into a problem with a couple of the "Sync" applications I wanted to create. In both instances, I am trying to connect a Portable Device to my computer and access it using VB.NET. One application would pull the pictures in from my camera, rename them, and put them in folders according to their date taken. The other would place ...
How is the Bluetooth connection by Visual Basic Dot Net readers and text sent by the Bluetooth and thank you ...
I'm trying to determine if a interface is decorated with a specific attribute. For example, I have the following interface: <MyCustomAttribute()> _ Public Interface IMyInterface Function Function1 Sub DeleteWorkflowInstanceMap(ByVal instanceId As Guid) Sub InsertWorkflowInstanceMap(ByVal instanceId As Guid, ByVal aliasName ...
For example I only the second character in each line to be an x, while the 3nd to 10th character must be a hex digit. At the moment I use a Select Case, then check the position of the caret (using textbox.selectionstart) and see if the key being pressed is a "legal" character. Is there a better way of doing this as it slows down on larg...
I'm programming a application and am wondering, is there a co-routine (or something similar) feature in VB? In my application it pulls a picture from the internet and it takes quite a long time (30-45 seconds) and it stops all code from running while it does that. Here is the line of codes that pulls that picture: PictureBox1.Image = ...
I'm trying to convert DataTable to Linq using DIm result = From r in dt.AsEnumerable() Select new ( col1 = r.Field<integer>("id"), col2 = r.Field<string>("desc")) But i get error near 'new (' saying type expected. What is wrong with this query? ...
I have 50 checkboxes that I need to write onto an aspx page. Each checkbox comes with 3 textboxes. Example: chkbox State Name donation new donation chkbox CA Sam 10 15 chkbox AK Sam 15 20 Now this shall go for all 50 states, depending on which states the person wishes to donate. In each state's r...
I'm writing a custom DataGridView object for a large project to hand out to a bunch of developers to make our app sections look consistent. I want to set defaults for many of the properties of the DataGridView, and I can set many of them like this: <System.ComponentModel.Browsable(True), System.ComponentModel.DefaultValue(DataGridViewA...
Hello, I have a cmd command that needs to be executed, when the command starts it starts to fill a progressbar. When the cmd command is done the progressbar needs to fill up to 100. This is the code i use, but it gives me an error when the progressbar.Value = 100 comes up. Public Class Form1 Dim teller As Integer Private Sub ...
I have a problem with this one stored procedure that works 99% of the time throughout our application, but will time out when called from a particular part of the application. The table only has 3 columns and contains about 300 records. The stored proc will only bring back one record and looks like this "Select * from Table Where Col...
I have an VS2008 solution with 2 projects, WebUI and Domain; WebUI references domain The Root Namespace in the WebUI project is:MyCompany.MyProjectName.WebUI The Root Namespace in the Domain project is blank. (Namespaces are manually declared for all classes) So everything has been working fine, until I tried to reference a class in Do...