vb.net

Process launched from service can't run Word mail merge in Win7

In Win7, I am running a service which launches a process which hosts the office-library (Word 2007) for the purpose doing a mail-merge. There is no interface anywhere. When I launch the mail-merge process with the service as the parent, Word cannot create a document using my existing mail-merge Word doc. At first I thought the problem wa...

VB.net Invoke a property change in a control

Lots of examples of how to invoke methods, but how does one change a simple property? For demonstration-sake, here's a very simple set of code that should help. Let's say I need to set the visible property from a child form, and thus, it needs to be invoked: Friend Sub activateItem(ByVal myItem As PictureBox) If myItem.InvokeRequ...

Change textbox BackColor in code-behind

How can i change textbox BackColor in code-behind to something like this: Textbox1.BackColor = "#F2F0E1 instead of Textbox1.BackColor = System.Drawing.White ...

VB.NET Delegate doesn't work

In my application, I have a MainWindow with a ToolStripProgressBar and a ToolStripStatusLabel. This properties: Property ProgressBarPercantage() As Integer Implements BCSXPSearchTool.Presenter.IMainView.ProgressPercentage Get Return Me._progressbarpercentage End Get Set(ByVal value As Integer) Me._progressba...

Report viewer control for VB.Net1.1

Good morning fellow stack overflow people, I have a question that sounds like the start of something from the daily wtf. The company that I work for is not so much sacred of new technology they just seem to let things slip, you know the type, “It worked 5/6+ years ago so I don’t see why we should change it” Despite this I have managed ...

asp.net add meta tags with a public function

Hello, I need a .vb class in App_Code in order to set metatags programmatically. How can I change the following code to public shared sub? <script language = "vb" runat = "server"> Public Sub Page_Load(Sender As Object, E As EventArgs) Dim hm As New HtmlMeta(ByVal hmName As String, ByVal hmContent As String) Dim head As HtmlHe...

Wait until Page loading finishes - Windows Form application

I navigate the webbrowser in my application with Private Sub wb_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles wb.DocumentCompleted But I need to navigate to another page after Logging in to the website How can I wait the first page to be loaded fully then navi...

is it is possible to make scroll an picturebox on keypress in vb.net2008

hello, i have an picturebox and textarea in an panel i need to scroll the picture box image on keypress down arrow >.. ...

How do I open a file from multiple processes?

Hi, Hopefully more of a "What am I doing wrong?" than "How do I?" but there you go... Basically, I'm trying to get a program to behave in the following way: First instance of the program opens up on PC1, opens a file for Read/Write access and then acts as the master program, doing a bunch of work on some other files I don't want a wh...

Finding distinct lines in large datatables

Currently we have a large DataTable (~152k rows) and are doing a for each over this to find a sub set of distinct entries (~124K rows). This is currently taking about 14 minutes to run which is just far too long. As we are stuck in .NET 2.0 as our reporting won't work with VS 2008+ I can't use linq, though I don't know if this will b...

What is the difference between vbscript and vb.net?

What is the difference between vbscript and vb.net? ...

Exchange 2003 as a SSIS data source

Hi all, I am new to stackoverflow, and this is my first question: I would like to create a SSIS task on SQL 2005 server that queries a specific email account on an Exchange 2003 server, and creates a report. The report currently contains the amount of emails received, average time of reply, and emails with reply time that have gone ov...

Using Delegates to Pass Information back to UI from custom socket class

All I am in the process of prototyping a small sockets application, which monitors IT infrastructure (due to in-house financial and deployment restrictions, I am unable to utilise an existing commercial or open-source solution). Basically, I have a server application and associated agent process for communicating heart-beat data to the...

Is there a way to use linq in C# application with .net framework 2?

I need to use linq in C# Windows form application working with .Net Framework 2 not 3.5 . I Know it may be some sort of stupidity to do that. but i need that for some special reasons. Can i import just linq libraries to my project by anyway ? or there is no way except for using 3.5 ? ...

Why does A work but not B?

I have a custom class written, which I instantiate from an event procedure similar to Private Sub EventHandler For intForCounter = 1 to intUserEntry Dim newObj As New MyClass newObj.Property newObj.Method() Next End Sub The class itself looks something like this Public Property Time As Date 'First atte...

ScriptManager required even though it is present

i am getting following error when i am running AJAX enabled ASP.Net application The control with ID 'FilteredTextBoxExtender1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. even though i have ScriptManager in my page what wrong i am doing please give suggestions thanks in advanc...

Case Statement Question -- vb.net

So I have case statements grouped together here, but I have a few case statements that need extra decision based on a second variable after the original case is confirmed. This is what I have now: Case "PRIVATE_PARTY" If Condition = KBB_CONDITION_EXCELLENT Then Vehicle.MarketValue = Response.PrivatePartyExcellent ElseIf...

How to programmatically detect 32-bit or 64-bit visio version is installed?

How to programmatically detect 32-bit or 64-bit visio version is installed? ...

VB.NET string manipulation -- caps to only one letter caps

So I have a string "NEW". What is the SIMPLEST way to convert that string to "New". Basically right now I'm doing this: Case "NEW" makes = connector.GetMakesByYear(_AuthorizationKey, "NewCar", CDate(Now), Year) Case "USED" makes = connector.GetMakesByYear(_AuthorizationKey, "UsedCar", CDate(Now), Year) And I would prefer not...

Disposing of Crystal Reports

Hi all I have a number of report viewers set up, each of which can open a number of crystal reports. This all works fine. I am wanting to streamline how i dispose of the reports in the DisposeOfReports() event. At the minute i do the following: If (_rpt1 IsNot Nothing) Then _rpt1.Close() _rpt1.Dispose() End If If (_rpt2...