vb.net

DependencyProperty Callback-Method not called

Hi, I create a UserControl (TableWithFilter.xaml) with a dependency property (source). The UserControl is a Table with a source property for the different items. I created the XAML and set the source property via the XAML Binding. So far so good. But if the value of the dependency property is changed, the defined callback method is not...

Create coded webtests

Hi, I'm looking for a tool that plugs into the browser and records user actions and then saves a webtest in either c# or vb.net. Then the tests can be compiled and run without a browser, ie tests use httpwebrequest with extraction rules etc. I only have Visual Studio 2005 professional, I know that the functionality I'm after is availabl...

New line in VB.NET

Why, when I do im my code: "Land Location \\r\\n Roundoff (C)" I see the \\r\\n and not a new line feeder at the output? Any idea how to do that? As I said I must have only one string there, without using a "&". Can I put that vbCrLf inside of my string somehow? ...

ReadOnly Property ListView in ListViewItem - How is implemented?

Maybe someone know how ListView pointer is stored/removed at ReadOnly Property ListView in ListViewItem? How is it implemented? I know ListViewItems are stored in ListViewItemCollection which has constructor New(owner as ListView) but I dont know how pointer to ListView is add/remove in ReadOnly Property in ListViewItem... ...

Hobbyist - Developer Book Recommendations

It will be a gift for a family member. He's older, a retired school teacher and likes to tinker with programming mostly as a mental exercise to stop the old brain cells from gelatinizing. I've seen him make some pretty creative and moderately complex games in BASIC (QBASIC to be precise), and I believe he's making the hop to VB.NET this...

How can I update and get values in Windows Forms while moving one form to other form (like cookies)?

How can I update and get values in a Windows Forms application while moving one form to other form (like cookies)? I need to update the values to some variable and again I am going to refer stored values and need to do some calculations. I have used cookies in ASP.NET but I am not able to find out the same concept in .NET Windows Forms...

Form action attribute not working - have to click submit button twice!

I have a button called btnSubmit where i set the Form action attribute to a URL like so. Protected Sub btnSubmit_Click(ByVa.... Form.Attributes.Add("action", "http://now.eloqua.com/e/f2.aspx") End Sub This does work but for some reason it only works after I clicked the button the second time. Why is this and how can i fix this?...

Creating clickable links in runtime of c# aspx webform

I'm creating asp links using response.write in c#, the same HyperLink code works smoothly when inserted directly in the asp code, but when i copy/paste it to the response.write("...") it appears as an unclickable black text. Am i forgetting something? <asp:HyperLink ID='HyperLink1' runat='server' NavigateUrl='Exibe.aspx'> CLICK HERE </...

ActiveX Component Can't Create Object

Hi, I have VB6 ActiveXDLL called A.dll , I am referencing this DLL into my VB.Net Application. Now I am calling a function of A.dll in this project. A.dll function is referring to the function of B.dll ,C.dll ,C.dll further referrer to Z.dll and so on. when I am executing application it gives an error from B.dll that ActiveX component ...

Adding PostBackURL to button and allow code behind the button?

I am using ASP.NET 3.5. I have a button called btnSubmit and on this button in the PostBackURL i have a URL the page must submit data to. <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="Hand" PostBackUrl="http://now.eloqua.com/e/f2.aspx" /> Now when i have this i cant excecute more code in the button click ...

Code review: Determining whether a folder exists, given the full file path?

With a function being passed a full path to a file, such as C:\someFolder\anotherFolder\someXML.xml, determine whether the folder exists. Is there a smarter/better/more elegant way of doing this? Here is my implementation: Private Function FolderExists(ByVal fullPath As String) As Boolean Dim folders() As String = fullPath.Split("...

Workaround for VB.NET partial method using CodeDom?

I know CodeDom doesn't support partial methods, but is there a workaround? I found a workaround for C#, but I need one for VB.NET. Thanks. ...

Looking for a solid client side sockets library

Nothing too fancy, but the following would be nice for .NET: Be able to instantiate the object and hook up the MessageReceived and ConnectionChanged events (or ones with similar purposes). Be able to send data (duh) When data is received, it fires the MessageReceived event on the same thread that the object was created on (this would b...

vb.net external-only properties or methods

Is there a simple way in vb.net to mask a public property or method from the internal namespace? It would be helpful as a refactoring tool to isolate internal dependencies and perhaps to enforce a non-recursion policy for external services. ...

Reporting Services & Web Application (with HTTPHandler)

We are trying to add SQL Reporting Services to a .Net 2.0 Web Application. SRS has been installed on the server successfully, but we get an error when we try to load a report or access the report manager: Server Error in '/Reports' Application. -------------------------------------------------------------------------------- Configurat...

Converting Linq to XML query from C# to VB.Net. Can you spot my error?

I'm converting the Linq query below from C# to VB.Net. Can you spot my error? The query joins 3 XML datasets. Thanks in advance! C# - This one works great. List<Course> courses = (from course in CourseXML.Descendants(ns + "row") join coursecategory in CourseCategoryXML.Descendants("Table") on (string)course.Attribute("code") equals...

Datagridview, contextmenu of rowtemplate doesn't show submenu's

In a windows form using vb.net 2008 a context menu when mapped to the datagrid shows submenu's properly but when mapped to a row template of the same datagrid view does not submenu or dropdown items in that menu Any help on this please ...

Custom dictionary object ?

I want to extend the VB.NET dictionary object to not bitch about an item being already in the associative array. This is what i want to do: Public Class BetterDictionary Inherits System.Collections.Generic.Dictionary(Of Object, Object) Public Sub Store(ByRef key As Object, ByVal value As Object) If Me.ContainsKey(k...

No Form.Submit() function in VB.NET or C#?

I am having some problems with my code as I cant do this following in VB.NET or C# because there is no form1.submit() function in VB.NET or C#??? <script language="javascript"> function valSubmit(){ varMyReg = document.form1.lstCountry.options [document.form1.lstCountry.selectedIndex].value; varNewReg = varMyReg.substring(0, 3);...

Tablecellcollection is not callable

This is a dumb question, but I just cant find an answer. I want to do something as simple as this in IronPython, something I did in asp.net vb.net to capture the id of a table displayed in a gridview or datagrid iid = e.Item.Cells(2).Text But I get "Tablecellcollection is not callable". Any idea or alternative to solve it? ...