I am trying to convert this code from csharp to vb. Tried to use third party tools, but not successful. Can some one help me .Thanks
private static string RemoveInvalidHtmlTags(this string text)
{
return HtmlTagExpression.Replace(text, new MatchEvaluator((Match m) =>
{
if (!ValidHtmlTags.ContainsKey(m.Groups["tag"].Value...
i need to place table2 after the end of table1. i do not know the height of table1. how do i get the height of table1? in vb.net please
...
I have a WCF service installed on my system. I can browse and see the .svc file just fine. Should I be able to use a browser to view the endpoint addresses such as https://svc.example.com/BaseService/Login
...
When referencing class properties from a function within the class do you use the value from the actual property or the private variable value?
Which way is best? Why?
public class
private m_Foo as double
public property Foo() as double
get
return m_Foo
end get
set(byval value as double)
m_Foo = value
...
I am new to C# and have a VB sub routine for sending emails.
I am not sure how to convert to C#, can someone please help me?
here is the sub:
Sub SendAdditionalEmails()
Dim strDelimeter As String = ","
Dim strEmailResult As String = ""
'make sure they dont put a comma on the end (To)
If InStr(Len(txtTo.Text) - 1, txtTo...
i have this line:
Dim strings_extreme = input.Split(","c).Distinct().OrderBy(Function(s) s)
i need to Dim it in one line, and set it a value on another line
how do i do that?
would it just be Dim strings_extreme() ??
and then strings_extreme = input.split.... ?
...
one more question on converting c# to vb. conversion tool is not doing a good job. Please let me know. Thanks
private static readonly Dictionary<string, List<string>> ValidHtmlTags = new Dictionary<string, List<string>> {
{ "param", new List<string>() {"name","value"}},
{ "object", new List<string>() {"id","type"}},
{ "embed", ne...
im getting an exception on this:
Dim strings_extreme As String()
strings_extreme(0) = ""
it says that i am using it before it is being assigned a value
how do i initialize it?
please note that i need to be able to do this:
strings_extreme = input.Split(","c).Distinct().OrderBy(Function(s) s)
...
Im working on an access database, and I want to know how can I fix the code below so that I could display the correct information to the user. The problem is, I want to display an error message if the oledbcommand did not succeed.
Try
cn = New OleDbConnection(" Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\ro.mdb")
...
As a preface, I am brand new to using SQL Server 2005; I know how to use the SELECT, UPDATE, DELETE, and INSERT commands and that's about it. I am also using Express Edition on my local PC (E8400 processor, 8GB of DDR2-800, 2 x 640GB SATA-II HDD in RAID 1)
I have a table that I set up with 8 columns, all are NVARCHAR(Max) and I allow Nu...
I got a weird problem here like I got a site that users can post comments on a friend profile page.Everytime a user post a comment my application sends e-mail to that page owner, you know to inform for a new posted comment on his/her profile page.The problem is I want to stop the application from sending email if that user has just recen...
Say I have a class with one property
Public Class MyClass
Public Property MyItem() as Object
....
End Property
End Class
I have to pass the name of the property to a function call. (Please don't ask why it should be done this way, its a third party framework). For example
SomeFunc("MyItem")
But what I would like to do i...
my code is like this:
Using StateProv As XmlElement = CType(hotelSearch.SelectSingleNode("/ota:OTA_HotelSearchRQ/ota:Criteria/ota:Criterion/ota:Address/ota:StateProv", nsmgr), XmlElement) 'i am getting error in this line....
StateProv.SetAttribute("StateCode", BLLHotel_Search.StateCode)
StateProv.ChildNodes(0).In...
i am using following code to convert xml file to datatable but its just creating multiple tables (but without data) and i want tables with data..
Dim myDS As New DataSet
Dim xmlStream As System.IO.StreamReader = New System.IO.StreamReader(Server.MapPath("~\xmldoc\result_availhotel.xml"))
myDS.ReadXmlSchema(xmlStream)
Respons...
Hi,
I'm using the ErrorProvider in VB.Net (2005) which is associated with a BindingSource that is bound to a custom object that I have created. This custom object contains a date field that has a "Date" data type that. I am using a "TextBox" to bind the date field in my form. My issue is, whenever the TextBox loses focus and is blank...
i want to insert a value from loop in datarow so before entering value in datarow i want to check that a perticular column NAME exist in table or not...please tell me how can i check it.. (vb.net preferred).
...
Actually I am creating one application where 8 tab pages are there and each page containing about 10 comboboxes which i am adding at runtime. And also their items also fetching from excel file. And to select the item in these comboboxes i have to perform database operations.
All this happends at Form_Load event. Due to this loading of fo...
Hi everyone, I'm having some trouble using resource files.
In my project I'm using a bunch of bitmap files and two txt files. Bitmaps are used as backgrounds for controls, but .txt files I want to open in Notepad or WordPad.
Till now I was accesing them from a file path on my machine:
ControlName.backgroundimage = New Bitmap(direcory...
Dear Folk's i'm using the following code in order to send the bytes of a picture into the stream table:
Dim FirstColumnNames As String = imTable(0) & "_Code, " & imTable(0) & "_Price, " & imTable(0) & "_Title, " & imTable(0) & "_Type, " & imTable(0) & "_Height, " & imTable(0) & "_Width, " & imTable(0) & "_Comments "
Dim FirstFieldsValue...
I was given a half-finished project to finish. It was written in C++ using Visual Studio 2005.
Is it possible to somehow continue the project in VB.Net? If it is, can you guide me?
Thanks
...