vb

What case to use when comparing strings in Microsoft programming languages?

Note: This is a question I’m asking more out of historical interest, as I realise that modern languages have built-in regular expressions and case insensitive string compare methods. When comparing two strings of an unknown case, I can remember reading that Microsoft based conversion methods where optimized for uppercase rather than low...

Word vba - if cursor is in cell / bookmark - run code

Hi, I have a template document which contains several sections and a few tables. The thing is, I'm trying to insert a drop-down list inside on of the cells in the table. And for a drop-down list to work, the document needs to be protected. But if I protect the entire section the table is in, the entire table is protected. So, I was w...

c# excel: where is VBComponents...

hi i am working with c# and excel-2007... i wanted to add a macro to excel and run from c#, for which i think i need access to the VBComponents but unfortunately i cannot see it after i do the following wb.VBProject. should i add any com objects? or what should i do to see the VBComponents... i already have using Excel = Mi...

EnvironmentEvent macro doesn't complete

I'm working in Visual Studio 2008 and I would like for Edit > Outlining > Collapse to Definitions to be run whenever I open a file. It would be nice if, after that, all regions were expanded. I tried the code that Kyralessa offered in a comment on The Problem with Code Folding, and that works very nicely as a macro that I have to run m...

Composite application guidance help pls

Im tring to make a composite application (i am still learning how it all works) Lets say there are two regions with a view in each that interact with each other via drag and drop, view A contains a list of tasks that view b (which contains a list of People) doesnt really know about. When I select some tasks in the list from view a and...

Put an Icon in a eVB Application

Hello, Someone knows how to put an icon in a eVB 3 application, because i hate that default icon for *.vb files, something like using the registry editor or using resource files. Thanks ...

To disable image

hi guys, i have an html image .In its onclick i have written code to show calendar.I want to disable that image ,means i should not be able to click that image,but image should be visible.I want to disable the onclick event of image,Can anybody help? ...

How to get rid of unnecessary parentheses in mathematical expression

Hi I was wondering if there is any known way to get rid of unnecessary parentheses in mathematical formula. The reason I am asking this question is that I have to minimize such formula length if((-if(([V].[6432])=0;0;(([V].[6432])-([V].[6445]))*(((([V].[6443]))/1000*([V].[6448]) +(([V].[6443]))*([V].[6449])+([V].[6450]))*(1-([V].[6446])...

XML to LINQ in VB, noob question

I'm basically brand new to LINQ. I've looked around a lot on here and am pretty confused. I've seen some examples that allow me to strong type objects using LINQ but I don't really understand them because they're in C#, which I guess lets you do different things with LINQ(I think?). Anyways, this is what I'm trying to do: Dim productXM...

Regarding cell click in datagrid

hi guys, I have a datagrid.Its 1st column is ClientType.On clicking each cell in the first column i.e ClientType,that value is shown in textbox named txtClientType.For that i used the following code. Private Sub dtGridsearch_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dt...

Concerned with login controls

hi guys, I have a masterpage in which i have Loginname control.I have a link in masterpage which redirects to register.aspx which contains createuserwizard as follows. <%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPages/AdminMaster.Master" CodeBehind="Register.aspx.vb" Inherits="Architect.Register" %> ...

commenting VB code

How to comment multiple lines of code/block of code in VB? ...

MS Access 03 - How do I call a VB Function into a Sub Procedure

I know this is a simple question for someone out there, but I have never really used function module at all because I did not understand what they were. So I have a whole bunch of things I can use this for (cut down on redundancy), but I want to know how I call call into into a sub (like a button click) procedure from a form. I tried t...

Javascript scope with asp.net

Hi there, I'm probably missing out on something fundamental here but it seems rather tricky and confusing to me so here goes... to demonstrate the issue I have the following example .aspx page <%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional...

How to connect to PowerOlap using .Net?

Hi there, I am playing with the API from PowerOlap, but I can't get any documents on that API, is there anyone out there that can introduce me some books or sites so then I can get some idea how to use the API? But for now, is there anyone here that used PowerOlap API before? Can you show me some sample code? Regards ...

Visual Basic 2005 + mysql

How do i connect to mysql and get started with VB 2005? Been using PHP + MySQL in work for bout a year now. just wondering how to get started with Visual Basic 2005 + mysql. just to connect to a database, and run a simple select star query? Any helpers, or sample code welcome... db -> db_name table -> tbl_name ip -> localhost cheers la...

Regarding gridview

hi guys, I have a gridview in which when i click edit,update and cancel button comes.I have a variable named status.If status=false Then update should change to insert anf if status=true then update should be update itself.What code i hve to write in rowcammand for this? <asp:TemplateField > <ItemTemplate> ...

Can Failure to Access the URL in an XML Schema or Document Cause my Application to Fail?

I'm usng this: http://schemas.microsoft.com/cdo/configuration/smtpauthenticate The schema is down? My software doesn't work anymore. Gives me a message: Can't access to CDO Message. I'm using Framework 1.1 with mail send authentication and failed. Anyone have solution? ...

MS Access 2003 - Simple value input into a text box from clicking label boxes

Ok so could anyone please help me out with the VB for auto entering information into a text box, by clicking certian label boxes on a form in access 2003. I built this thing using label boxes as "sort of links" instead of button for navigation/commands etc, and I have this power point presentation viewer on one of the forms. The client ...

CoCreateInstance fails with 0x80040154 on ITaskBarList3...

Does anyone have any idea why CoCreateInstance would be failing on ITaskBarList3 on Windows 7 64-bit? The error code is 0x80040154, which is Class Not Registered. The calling code (VB6) is: Public Const IID_ITaskbarList3 = "{EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF}" Public Const CLSID_TaskbarList3 = "{EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF}...