vb.net

How to run an "empty" Windows Application that only has a NotifyIcon?

I want to make an Application that only has a NotifyIcon. It doesn't need to have at all a "Main" Form. When I want to achieve something like this, I just create an invisible form and run it, but would there be a more "elegant" way of doing this, I'd like to know it. How do you generally do this? This application can't be a Windows Serv...

Display dynamic Controls at run time

I want to display in a panel at run time different controls, depending on the menu selection. Any ideas? ...

Copy text from website.

So, I've been saving a .txt file from a website and using... My.Computer.FileSystem.ReadAllText() To put it into a string. But I figured it'd be more efficient to just grab it directly. How do I go about this? Thank you. ...

backgroundworkers or threadpools

I am trying to create an app that allows multiple search requests to occur whilst maintaining use of the user interface to allow interaction. For the multiple search requests, I initially only had one search request running with user interaction still capable by using a backgroundworker to do this. Now I need to extend these functions b...

Executed Query Source

Where is the value of the actual query executed for an AccessDataSource with the parameters replaced with actual values? Note: Answers in VB.NET or C# are fine. ...

Is it possible to override a property and return a derived type in VB.NET?

Consider the following classes representing an Ordering system: Public Class OrderBase Public MustOverride Property OrderItem as OrderItemBase End Class Public Class OrderItemBase End Class Now, suppose we want to extend these classes to a more specific set of order classes, keeping the aggregate nature of OrderBase: Public Clas...

vb.net, How can I limit a textchanged event for a textbox to keyboard input only?

Hi everyone, Please allow me to explain what I have and what I am trying to achieve. I have a textbox (called txtb1) and a button under it (called btn_browse) on a winform in a vb.net project. When the user clicks the button a folder browser dialog appears. The user selects his desired folder and when he/she clicks 'ok' the dialog clo...

paypal API in VB.net

Hey all, i have converted some C# PayPal API Code over to VB.net. I have added that code to a class within my project but i can not seem to access it: Imports System Imports com.paypal.sdk.services Imports com.paypal.sdk.profiles Imports com.paypal.sdk.util Namespace GenerateCodeNVP Public Class GetTransactionDetails Public Sub New...

How do you pass a generic delegate argument to a method in .NET 2.0

Hello, I have a class with a delegate declaration as follows... Public Class MyClass Public Delegate Function Getter(Of TResult)() As TResult ''#the following code works. Public Shared Sub MyMethod(ByVal g As Getter(Of Boolean)) ''#do stuff End Sub End Class However, I do not want to explicitly type the...

convert string to double

I have string value in that I need to convert to double in VB.Net. Conditions are like below string = "12345.00232232" if condition is 3 (2 digits after decimal and comma) display = 12,345.00 if condition is 5 (5 digits after decimal and comma) display = 12,345.00232 If Condition is 7 ( 5 digits after decimal and no comma) dis...

How to check for fail to register a hotkey?

how make my app to check if it fail to register a hotkey? which I have registered it using "RegisterHotKey" function). I just need to know the checking method. thanks ...

VB.NET SqlException Was Unhandled

I am trying some SQL code but I get an error when I try this code. Main.database.ExecuteCommand("UPDATE Contacts SET first_name='" + c.first_name + _ "', middle='" + c.middle + _ "', last_name='" + c.last_name + _ "', age='" + c.age + _ ...

How do you do an assignment of a delegate to a delegate in .NET 2.0

Hello... I just go the answer on how to pass a generic delegate as a parameter. Thanks for the help. Now I need to know how to ASSIGN the delegate to another delegate declarartion. Can this be done? Public Class MyClass Public Delegate Function Getter(Of TResult)() As TResult ''#the following code works. Public Sh...

Jquery toggle should expand after Page reload

I wrote below code for Collapse/Expand some section. It is working fine. Finally If I click "Save" button and I am re-loading page again in asp.net. So then sections are going default Colleapse again. I need them back to expand. How can I do that? $(function() { $('tr.subCategory') .css("cursor", "pointer") ...

List local administrators with System.DirectoryServices.AccountManagement doesn't retrieve domain users

I'm trying to remotely list members of the local Administrators group. The following code returns only local accounts which are members of the admin group - no domain groups or individual accounts are returned at all (BLAH\Domain Admins or BLAH\yajohn, for instance). Anyone have an idea? Public Function listLocalAdmins(ByVal mach...

How to open a mdi child form from another with vb?

How to open a mdi child form from another with vb in the main mdi parent? ...

Passing object(s) to a Controller Action

I'm attempting to use jQuery to do a $.post() to an MVC controller action. Here's the jQuery calls: var _authTicket = { username: 'testingu', password: 'testingp' }; function DoPost() { var inputObj = { authTicket: _authTicket, dateRange: 'ThisWeek' }; $.post('/MyController/MyAction', inputObj, PostResult); } f...

How to change the looks or improve the looks of the VB.NET application?

Hey Guys We are very much bored with use of very powerful but very dirty looks of VB.Net Controls. We made application in VB.NET 2005. Now we want to change the look and filed of the application. we had tried to change with by changing colors and font but it still looks like very dirty. So how we change that, I had heard about WPF but n...

using Eval in vb.net

hiii everyone.... i have small problem with my code in vb.net that i want to use (Eval) in my project so i write this code : <asp:Label ID="Label1" runat="server" Text='<%#Eval("PAG_PAGES") == null ? "" : ((PostAgenciesModel.PAG_PAGES)(Eval("PAG_PAGES"))).PAGE_TITLE_AR %>' /> and this code i used in my C# project .... all want to s...

How to (try)parse a single String to DateTime in "DD/MM/YYYY" format? (VB.Net)

How to (try)parse a single String to DateTime in "DD/MM/YYYY" format? (VB.Net) For example: I use input string "30/12/1999" (30 December 1999), how to (try)parse it to DateTime? ...