<AttributeUsage(AttributeTargets.Property)> _
Private Class CustomAttrib
Inherits Attribute
Public Property DataTypeLength As Integer
End Class
Private Class TestClass
<CustomAttrib(DataTypeLength:=75)> _
Public Property MyProp As String
End Class
Dim properties = GetType(TestClass).GetFields(Reflection.BindingFla...
I have a standard HTML page with an CKEditor on it wrapped in a form.
The form submits (POSTS) to Send_Emails.aspx
Send_Emails.aspx reads the content of the FCKEditor into a variable
Dim html As String = Request.Form("ck_content")
Then it sends an email.
Problem
Characters such as:
 -> this seems to show as a special character fo...
Hi everyone,
i want to display a large data in a cell of DataGridView as multiplelines to avoid the horizontalscroll.
...
Possible Duplicate:
The difference between + and & for joining strings in VB.Net
In VB.NET you can use either += or &= to concatenante a string (ignoring using a StringBuilder for this question -- this is directed at a very simple concatenation).
I'm curious to know if and what the differences are of using one or the other i...
I'm building a .NET component that will call an external web service. I used the "Add Service Reference" dialog to add the web service to my component, which generates the code needed to consume the service and adds the settings to the app.config file.
I'm testing the component by adding a reference to its DLL from a Console applicatio...
I have a class, let's call MyClass.
In this class, I have a TreeView property let's call myTreeView
In my code, I populate the Nodes of this TreeView so I can use it later on.
Then, when it's time to actualy use it, I haven't been able to take all the nodes from myClass and put them in a Tree View Control on my form.
I've tried two thi...
So I have an .aspx page. In this grid I'm adding a bunch of controls. The first control however is an ExtObject, not one of our preset VB.NET controls. When I go to access the value on the backend for this field with this code:
form.AndOr.getValue()
It doesn't work. I really have no idea what is wrong. Basically, the radio button valu...
I currently have a JSTree all set up to do the creation and renaming of a new node:
.bind("create_node.jstree", function (NODE, REF_NODE) {
$.ajax({
async: false,
cache: false,
type: 'POST',
url: "ApplicationAJAXHandler.aspx?action=CreateMenuItem&...
Sorry if the title isn't very clear. This is a VB.NET (2010) question
I have a superclass called "Device" which has a number of subclasses that inherit it. Some of those subclasses also have subclasses. In particular, I have a class called "TwinCatIntegerDevice" which inherits "TwinCatDevice" which inherits "Device."
The relevant pa...
I'm having issues with a rather complex Linq query and I need some advice. This involves VB syntax so I need specific answers for that platform, as I have a lot of trouble translating the C# syntax to VB at times.
I have to join two main tables, and I need to filter the results by elements in an ASP.NET web form. These filters are c...
I have made a DataTree class that has Name, Value, and Items properties. It is designed to function like PHP's associative multi-dimensional arrays. Everything works except setting the Item property. The item property excepts one or more parameters. Each represents the name property of a DataTree instance. This would be easy to do if I c...
I have a list of strings in my richtextbox. I need a code to check if there are numbers in the first line, if there is then proceed with the rest of my code, else delete first line.
...
Suggestion in C# or VB.NET are welcome
I have the following code block. I'm tired of typing the same IF statement to check if the string has any lenght before assignning them to the class properties of Employee.
Is there any better to accomplish this?
Dim title = txtTitle.Text.Trim
Dim firstName = txtFirstName.Text...
Dear All,
I have created a windows form in VB.NET and in the click event of "Save", i am calling 5 procedures to perform different tasks. All these are in a a single TRY - CATCH block. The problem which i am facing is that from the 5 procedures being called, if there is an error while executing the 4th procedure, the data stored from ...
Hi Everyone,
I'm creating a windows desktop application using .NET Framework (Visual Studio '08). As you know, when we build our application all references which we used in our application their dll copied into the Debug/Release folder with an executable file of application. Is it possible when you build only a single executable file pr...
When adding a new control to the designer in Winforms, the modifier on the control is set to Friend, but the default modifier is Private (right clicking the property and resetting the modifier).
Does anyone know why?
Is there a setting to set the modifier to default (Private)?
...
Is there a simple way to read from the global application.exe.config file from a dll?
Currently I am loading the file as an XmlDocument but I wonder if there is a better solution.
That's what I mean:
If I create a new WinForms Project I have a Settings Tab in the Project properties where I can add some simple values (And I want to acc...
I'm hoping to use the following update\insert method to speed up my application insert\updates:
UPDATE [Application_Type_Table]
SET ApplicationType='Test Value'
WHERE ID='1'
IF @@ROWCOUNT=0
INSERT INTO [Application_Type_Table] VALUES ('Test Value')
How would I do this with sql parameters? the rowcount function will be picked up as a ...
So, I have an app that uses a SQL Server express db. I have about 80ish tables all with a primary key but no foreign keys. (The reason we have no foreign keys is because of how we do our sql client-to-server replication. It's not true replication but it's a sync system that was in place when we took over the app. We have no guarantee wha...
My coworker needs me to write him a regular expression for his vb.net app.
I do not know vb and he does not know regex.
The regex he needs is:
/.*web id: ?(\d+).*/i
Basically he needs to search a string for something like "web id: 345" or "web id:2534" and retrieve the ID.
He took what I gave him above and was able to put this toge...