vb.net

Form for Telerik RadRibbonBar?

I got the Telerik RadRibbonBar for free with the Express edition of vb a while back, but it did not come with any sort of form. It also, unfortunately, has the control buttons there automatically. How would I create a form which is resizable, and works like a standard winform, but doesn't have the top bar? I tried: FormBorderStyle = S...

AddHandler not working?

I can't figure out why my addhandler is not firing? In the Sub "CreateTagStyle" the AddHandler is not firing when the LinkButton is clicked Is there some reason that addhandlers can't be added at certain points of the page lifecycle? <%@ Page Title="" Language="VB" MasterPageFile="~/_Common/Admin.master" %> <script runat="server"> ...

how do you convert an array from one data type to another in vb.net?

I'm using vb.net 2008 edition and i was wondering if there a way to convert an array type to another array type. For instance say i dim an array as string and then want to convert the array to the integer data type for sorting, how would i go about this? ...

VB.Net plugin using Matlab COM Automation Server...Error: 'Could not load Interop.MLApp'

My Problem: I am using Matlab COM Automation Server to call and execute matlab .m files from a VB.Net plugin for a CAD program called Rhino 3D. The code works flawlessly when set up as a simple Windows Application in Visual Studio, but when I insert it (and make the requisite reference) into my .Net plugin and test it in the CAD program...

How to find which delimiter was used during string split (VB.NET)

Hi all, lets say I have a string that I want to split based on several characters, like ".", "!", and "?". How do I figure out which one of those characters split my string so I can add that same character back on to the end of the split segments in question? Dim linePunctuation as Integer = 0 Dim myString As String = "some tex...

creating setup of vb2008

Hello I have developed a s/w using acces and sqlserver 2008 and now trying to make a setup file. How could be the possible way?? I tried in VS2008 software and development. But after installing from the msi file and running the s/w it shows an error "Microsoft.ACE.OLEDB.12.0 provider is not registered” plz help ...

Active handler in one application from another?

Hi! How I can run handler from one application to another, for example: In application one i have form1 and button. In application two I have also form1 and button. Now how I can run handler for button on form1 in first application from applicaton two? Thanks! ...

Show header/footer of Gridview with empty data source?

How I can show header/footer of Asp.Net Gridview with empty data source? ...

How to deploy vb.net application with database(sqlserver)

How to deploy vb.net application with database(sqlserver) I developed a project on vb.net and used sqlserver as database(has 1 table only). Now i want to make a setup of it so that i could just send the setUp via cd or email and the receiver could easily install the software in his system. I have never deployed or created a setup. Ple...

Select record using GUID

I would like to select a record from my table based on a GUID using the following approach: dim rows() as MyDataSet.MyTableRow = dataset.MyTable.Select("id = " & Guid.NewGuid.ToString) but I get the following exception: System.Data.EvaluateException was unhandled Message="Cannot perform '=' operation on System.Guid and System.Int32. ...

Update 2 table values in one query in LINQ

Hello, I have 2 tables Table1 with columns [BId,Name,Amount] Table2 with columns [CId,BId, ExpenseType,Expense]. BId Is the foreign key in Table2. The Amount field in Table1 is always higher than Expense in Table2. I need to update the values of Amount (increase or decrease) based on value of Expense and I want to do it in single quer...

Databinding Error when Recreating object

Hi All, Figure there is a simple solution to this problem but I have been unable to find it. I have databinding in an ASP.Net application to a GridView. This gridview is bound to an ObjectDataSource as per standard usage. The problem I have is that one of my bound fields uses the property DataFormatString="{0:C}" and due to the curren...

Accessing Visio Database Reverse engineering schemas through an addin

I'm trying to build a visio addin that allows me to get a list of tables when a database reverse engineer is run. I'm using the Microsoft.Office.Interop.Visio library. I can find a list of shapes on the page, but this gives me every single shape on the page and every single piece of text. i would like to have a list of just the database...

ByRef vs ByVal generates errors!?

ByRef vs ByVal generates errors!? I had a method that used an Object Function Foo(ByRef bar as CustomObject) as Boolean this method generated errors, because some strange .NET Runtime things changed the bar object, causing its Dispose()al. A lot of time spent to understand the thing(where the ... object is changed), until somebody ...

Access variable from code behind via javascript

Hi, I have the following code that I want to return to a variable "t" in javascript: Code behind: Public Shared Function GetSomeText() As String Dim result = "This is from code behind" Return result End Function Caller variable in javascript: //This is not working like that, I think var t = GetSomeText(); So, how can I ma...

How to replace a String twice with oldValues having same text within?

I am trying to take a block of text and scan it for specific text (name) and turn it into a URL, specifically: Block of text: Chairman Joe Smith has announced a new plan to decrease expenditures by outsourcing the planning of the new dining hall. Smith states the current project managers do not have excess time to commit to this new pr...

Addding Custom Controls to Toolbox in visual studio

Hi, I am trying to add a dll that contains some custom 3rd party conrtols and some in house user controls and am getting the following error - "The Assembly "MyASsembly.dll" could not be loaded. Check that any dependencies the file requires are installed" I am using Visual Studio 2003 and the 3rd part controls are C1. Does anyone kn...

What are the requirments for ISupportInitialize code to be serialized in InitializeComponent? .Net

I need to add some code to the EndInit method of a PictureBox control but unfortunately its private and, from what I can gather, I can't shadow it and call base - at least not in VB.Net. What I can do is add a dummy property to my picture box class. The type of the dummy property is simply a class that just implements ISupportInitializ...

Can I Do a Foreach on a TimeSpan by Timespan Type?

I have a requirement that regardless of the start and dates that I need to loop through that timespan and calculate figures at the month level. I cannot seem to figure it out, and maybe it is not possible, but I would like to do something like: FOREACH Month As TimeSpan in ContractRange.Months Do Calculations (Month.Start, Month.End)...

File handling in .NET

I have developed an application using VB.NET, Visual Studio 2008 and the SQL Server database. Now I want to ignore the database (it has 1 table as customer (name,password,hour,minute)) as I don't want my client to install SQL Server separately or other overheads. I am planning to do the whole using file handling in VB.NET (manipulating ...