My VB.NET application is suposed to monitor what application currently is running in the topmost window. I have tried the following approach using a timer:
Declare Function GetActiveWindow Lib "user32" () As System.IntPtr
Declare Function GetForegroundWindow Lib "user32" () As System.IntPtr
Public Declare Auto Function GetWindowText Li...
I have an issue. When I check SelectAllCheckBox all checkbox column in ListView is checked. But when I unchecked one of row checkbox the SelectAllCheckBox is still checked. How to uncheck SelectAllCheckBox if one of row is unchecked? And second question is how highlight ListView rows when SlectAllCheckBox is checked?
My XAML
<Window.Re...
I have a VB.Net program running on vista that says a file is in use but the same program on XP does not have that error.
...
Question: I have a console program that shouldn't be seen.
(It resets IIS and deletes temp files.)
Right now I can manage to hide the window right after start like this:
static void Main(string[] args)
{
var currentProcess = System.Diagnostics.Process.GetCurrentProcess();
Console.WriteLine(currentProcess.MainWindowTitle);
...
Hi All,
I've got an ASP.Net application, which starts throwing NUllReferenceExceptions, after a long period of running. The code in question is used early on in each individual session, where we're trying to establish some kind of referrer information. The thing is, I can't fathom out what can throw this exception.
The method in questi...
I need a multiline TextBox which is always disabled, but it shouldn't paint itself in gray, but I want to keep its designer choosen color.
I previously had the same requirement with an always-black Label (no multiline) and so I inherited from Label like:
Imports System.ComponentModel
Public Class LabelDisabled
Inherits La...
Hi,
i have created a batch file and have added it to the project using add items. Basically what i am aiming at is to execute this file on a button click action.
I am using System.Diagnostics.Process.Start("hello.bat") command to run this file
i have changed the build action to resource for this batch file.
But when i run this program, ...
Hello experts,
I have to send mutiple events with one .ics file using ASpnetMail Class in vb.net. and i went throgh the ASpnetMail documention but i didn't get any clue..
Please suggest me...
Reagrds
Pankaj Pareek.
...
I'd like to get suggestion in both C# and VB.NET
I created Chart like the following image:
How can I customize the value on the
top of each column from code-behind?
Instead of showing 21, 49, 19 I'd
like to show 21 hr, 49 hr, 19 hr
How can I show the those values on
top of other lines? As you can see
19 is below the Line series.
Can...
Hi,
I have mail server configuration data (server - user name - password - port) and i want to access it using vb.net and retrieve its mails in collection.
i need to parse the email body to make some operations on it.
please i need some help, i tried to search for it but i found a complex samples.
...
Currently on our system, when a user contacts us, we reply via our admin panel. The user is then sent an email containing our message and the other messages in the conversation.
Then the user has to click on 'Reply to this message' which opens up our website, with a contact enquiry form, and submits the message to the conversation (usin...
Hi,
How can I use timer in vb.net? I want to repeat a statement after every 5 seconds but timer event offers only timer_tick() and timer_disposed()
In which event I can write my required code?
Thanks
Furqan
...
Hello,
I managed encrypting an xml document by encrypting an element and then replacing the element with the encrypted data. A shown in the sample code below.
Public Shared Sub Encrypt(ByVal textReader As TextReader, ByVal textWriter As TextWriter, ByVal certificateName As String)
Dim xmlDoc As New XmlDocument()
xmlDoc.Load(tex...
Hello,
i want to fill a Datatable with a Datareader row by row but get an exception because the reader's columns have a different order than the Datatable's columns.
Why and how does a Datatable loads itself with a Datareader correctly, even so it has a column collection with different order?
I need to calculate values for every row s...
I have a VB.net application that I'm using to load a webpage with a specific useragent, it works once, but then the useragent reverts back to the default browser's useragent, why is this?
It uses a loop on a timer like this:
Private Sub Timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer.Tick
Try
c...
C#
Types have their own color (cyan by default).
Enter completes the auto-complete suggestion.
Visual Basic
Types use Identifier color (black by default).
Enter completes the auto-complete suggestion and adds a "()" and a newline.
These and other seemingly minor differences are so enraging I can't get any work done. How do I make...
I am using an image button and on click of it i want to go to visited page.
Now i am using - Response.Redirect(Request.UrlReferrer.ToString()),
It is going to previous page, but when i am in a page of some user details where the link is looks like - users.aspx?userid=25 and i visit some other page and click back(image button) i want to s...
I wrote a VSMacro (in VS2010) that parses a solution and adds try and catch statements to cpp files. It's been working fine up until now. I had to reformat my pc and reinstall VS2010 and now it crashes. Here's a snippet from the macro.
Sub Foo(ByVal file As EnvDTE.ProjectItem)
Dim fileCM As EnvDTE.FileCodeModel
fileCM = file.Fil...
I have a Authorize Use Policy probram i am trying to update for Windows 7. I am trying to hide/ disable the orb or start button, in the past it was a child of the taskbar so hiding the taskbar was the solution (old code below). I have found some c# code that seems to do it but have been unsuccessful at converting it.
my old code (for xp...
I have an object and I iterate over object's properties. Foreach property, i append it as a column to a listview.
In my object, some properties doesn't have accents. But in portuguese, they do. For example: "Endereco" property must be "Endereço".
I need an away to create an alias to the properties. Is it possible in VB.NET?
Thank you.
...