vb.net

Dynamic RSS feed

Hello guys , i am going to develop a dynamic rss feed in asp.net and it is almost developed , only one problem is there that is the developed rss is working properly in ie8 but is not working in mozila , i don't know why so please help me about that... the code to develop rss dynamic is: Imports System.Xml Imports System.Data Partial C...

Problem with dynamically loading assemblies in .NET

We've built a small component which takes an Id, looks up an entry in the database for an assembly/namespace/class, and dynamically loads an instance of the class that we're after. It has been working fine up until now, but when running this code in VS 2010, it's failing. Private Function AssemblyLoaded(ByVal assemblyFile As String) As ...

how to use the results of a method in another method in a different class initialization at vb.net

I have a class which has the following methods: Public Function rumusbuffer () As Decimal buffer = (ukuranblok - pntrblok) / (ukrnrecord + pntrblok) Return buffer End Function Public Function rumusW () As Decimal interblock = pntrblok + ((pntrblok + intrblok) / buffer) Return interblock End Function how can I make the...

Is there bug in the Matrix.RotateAt method for certain angles? .Net Winforms

Here's the code i'm using to rotate: Dim m As New System.Drawing.Drawing2D.Matrix Dim size = image.Size m.RotateAt(degreeAngle, New PointF(CSng(size.Width / 2), CSng(size.Height / 2))) Dim temp As New Bitmap(600, 600, Imaging.PixelFormat.Format32bppPArgb) Dim g As Graphics = Graphics.FromImage(temp) g.Transform = m g.DrawImage(image, 0,...

Unwanted Retriggering of Textbox Events

This is one of those "seems obvious" as how to do, but came across interesting side effect in implementing. I'm trying to keep two text boxes syncronized when information is updated. In this example, I will be using txtStartDate and txtEndDate. If the txtStartDate is changed, then the txtEndDate should should be updated. Likewise, if...

how to add some checkboxes in stackPanel at runtime?

Hi all, I am a new silverlight user and struggle a bit with the coding. Could anyone please help me. What I am trying to do is create a list of checkboxes in a stackpanel on my application at runtime. The amount of checkboxes is determined by the amount of classnames in my sql database. I am using vb ...

How Can I Choose Appropriate ComboBox Value Based on Select ListView Record? - C#.NET

Contact Title has a default value which is Sales Person. Anyhow, when a user click Edit on the chosen ListView record, i need Contact Title to have the right value that corresponds to the chosen record. For example, if user clicks edit, the fields on the left side will be filled with values. In this case, i want Contact Title to view t...

Httpwebrequest Proxy not working

I encountered the following exception: System.Net.ProtocolViolationException: You must write ContentLength bytes to the request stream before calling [Begin]GetResponse. at System.Net.HttpWebRequest.GetResponse() at Proxy.Form1.Form1_Load(Object sender, EventArgs e) in The following code works without proxy. I had tried asking around but...

Sorting a List based on an ArrayList within a custom Object

I am using a list to keep track of a number of custom Row objects as follows: Public Rows As List(Of Row)() Row has 2 properties, Key (a String) and Cells (an ArrayList). I need to be able to sort each Row within Rows based on a developer defined index of the Cells ArrayList. So for example based on the following Rows Row1.Cells =...

Printing checks in .Net from blank stock (Not pre-printed checks)

I would like to take blank secure stock paper and convert it in to a check. I know you can get magnetic toner and print MICR. The question is What is the actual font to use or should i get a package and send the data to it to print the check? Has anybody done it successfully without having to resort to pre-printed checks. etc.. ...

How to check if a checkboxes state has changed

Using .Net, I need to generate a response based on only the checkboxes on my form that have had there states changed. So how do I know if the check box has changed from its previous value before submission. I can't use the onchange event because the user may check multiple boxes before submitting. ...

Listview: So you think you know itemDataBound?

In my webpage i use the following in order filling the listview control <asp:ListView ID="ListView1" runat="server"> <layouttemplate> <asp:PlaceHolder id="itemPlaceholder" runat="server" /></layouttemplate> <ItemTemplate> <tr> <td><asp:Label ID="Label1" runat="server" Text = '<%# DataBinder.Eval(Container.DataItem, "Ans1") %...

VB.NET XML parser loop

Hey all i am new to XML parsing on VB.net. This is the code i am using to parse an XML file i have: Dim output As StringBuilder = New StringBuilder() Dim xmlString As String = _ "<ip_list>" & _ "<ip>" & _ "<ip>192.168.1.1</ip>" & _ "<ping>9 ms</ping>" & _ "<hostname>N/A</hostname>" & _ ...

Compare XML files when using XmlTextReader

Hi everyone, My request is quite specific so I will do my best to explain it properly. If you have any questions please ask! Basically I have built a web page that reads an English XML file and displays its contents on the left of the page as text, divided up by each C-DATA tag it finds. It also then loads the equivalent translated v...

SqlBulkCopy From CSV to SQL Datatable

I'm using SQL Server 2005, VB.NET 2005. I want to be able to import a very large excel file into a SQL table called "XYZ" I've done this by doing the following: 1. Save the excel file as csv.(Using SaveAs XLCSV option) 2. Build a datatable "ABC" From CSV.(using ODBC Connection and Select * from '*'.csv command) 3. copy the datatable"...

Dynamic SQL To Dynamic LINQ in VB.NET with MS SQL Server 2008

I dread asking this question, because with what I've read so far I understand im gonna have to cram a lotta new things into my head. In spite of all the similiar questions(and the wide variety of answers) I thought I'd ask as nothing I've read tailors to what I need specifically enough. I need to represent the following query using LINQ...

Is there any tool to convert multiline text for Visual Studio 2008/2005?

Is there any tool that will convert a multiline text, to a compatible multiline string for Visual Studio 2008/2005? For example: line1 line2 line3 line4 Should become: "line1" & _ "line2" & _ "line3" & _ "line4" ...

Still having issues converting VB Webserice to C#.... need help

This webservice is almost converted form VB to C#, except I get this error shown below on the DataRow arow object when I use it in the foreach statement below to populate the Results Class with a DataSet Object... any ideas??? Error: A local variable named 'arow' cannot be declared in this scope because it would give a different meani...

implement button click in html

I have been trying to execute a button event in html page that displays additional content on the web page. I am getting a null reference error when using the getelementbyid and not sure how to change this. Here is the html reference I need to engage: <div class="button" style="float:none;width:180px;margin:20px auto 30px;"><a href="#" ...

How can I find "People's Contacts" folders via Outlook's object model?

I have some code that locates all the contact folders that a user has access to by iterating through the Application.Session.Stores collection. This works for the user's contacts and also all the public contacts folders. It also finds all the contacts folders in additional mailbox accounts that the user has added via the Tools -> Accoun...