I am setting a validation rule on a series of textboxes. I'd rather not create a new instance of my custom validation rule for each TextBox...
<Window.Resources>
<my:IsIntegerRule x:Key="IsIntegerRule"/>
</Window.Resources>
...
...
<TextBox>
<TextBox.Text>
<Binding XPath="@num" UpdateSourceTrigger="PropertyChanged" Mode="T...
Is there any way to pass in an operator in VB.NET? I'm looking to reduce my lines of code and for two functions there is literally only an operator that is different.
For example, I have two functions, Darken and Lighten. I'd like to get to a single function with as little code as possible. The only difference are Greater Than and Less ...
DataTable tempTable = new DataTable;
.
.
.
tempTable = getCustomerTable();
In this case, tempTable will have a table (named CustomerInvoice) which has
5 columns. The 3rd column is named DueDate. I print to a listview
as following:
for (int i = 0; i < tempTable.Rows.Count; i++)
{
DataRow row = te...
Here are my steps:
Created the controls manually by dragging a textbox then a button besides it
which i think its not the right way to do it. Example:
Any idea which control should i use?
2.The column's datatype (in sql-server) is varbinary(MAX) which will hold the document file. Is this the correct datatype for holding documents...
Hi all,
I hope you can help as i've been banging my head against the wall for a while.
Long story short, I want to dynamically load UserControls with LoadControl which contain their own updatepanels, and when they're on the page, be able to trigger their updates individually via their children.
To explain better, see my extremely simpli...
Here is my snippet:
private void btnBrowseCInv_Click(object sender, EventArgs e)
{
ofdBrowseVInv.Title = "Locate Customer Invoice File";
ofdBrowseVInv.Filter = "Portable Document Format (*.pdf)|*.pdf|All Files (*.*)|*.*";
ofdBrowseVInv.FileName = "";
ofdBrowseVInv.FilterIndex = 0;
ofdBrowseVInv.InitialDirectory = "";
ofdBr...
i have designed a web browser.except for the progress bar it is working fine.
this is my code:
Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged
ProgressBar1.Maximum = e.MaximumProgress
ProgressBar1.Value = e....
Looks like it just doesnt want to work...
@ Webservice:
<ScriptMethod(UseHttpGet:=False, ResponseFormat:=ResponseFormat.Json), WebMethod()> _
Public Function LoginDB(ByVal user As String, ByVal pass As String) As String
global.user = user
global.pass = pass
If (<<lots of code to check if user is valid>>) The...
If not, maybe someone could write such an article and the view count would go through the roof?
...
I have a Dll that was created with VC++. I'm very sure the Dll works, because when I import it into a test program written in VC++, it works and gives the correct data.
But when I try to use it in a VB.Net test program, it throws a System.EntryPointNotFoundException
All of the Dll functions uses stdcall.
Here's the source code of the ...
My boss is asking me to develop a demo application that uses log4net for logging, and i set up the environment and did a simple logging, but now he is asking me to use log4net to search through the patterns that exist in several log files such us the files that include methods calling each other and then view this on the log viewers, mea...
I have recently started using Request("key") instead of Request.QueryString("key") to access my querystring values. However I have read that:
'Gets the specified object from the System.Web.HttpRequest.Cookies, System.Web.HttpRequest.Form, System.Web.HttpRequest.QueryString, System.Web.HttpRequest.ServerVariables'
Therefore, if I have a...
I have repeater which shows a list of users and there roles. There is also a dropdown list to chnage there role see below
<td><asp:DropDownList ID="ddlChangeType" class="controlwidth100" runat="server" AutoPostBack="true" OnSelectedIndexChanged="change" /></td>
the change event works but what I need is the ID of the row so the user c...
Hi all, I am looking at re-writing an application (currently in C) which uses HIS 2004 (Could use 2009 if required) to access mainframe transactions.
Is there a decent framework which I could use to connect and call mainframe transactions and relay any infromation into the existing system? ( I am developing in a .Net 4 environment) to r...
I've got a piece of code in a project (MyProject) that contains early bound object from a referenced assembly (We'll call it CommonAssembly):
Dim myObject As CommonAssembly.MyEarlyBoundType
now I have another assembly that is dynamically loaded because it is not present in all projects:
Dim myLateBoundObject As Object = AppDomain.Cu...
Hello
As a new entry to the software development industry I tried to develop my programming skill using different ways. One way I found out is as many suggests by reading code from other authors.
When I begin to develop, I want to use objected oriented design paradigm for any application. As a start I begin with small database progra...
Hi,
I have an old VB6 application. I want to recreate it in VB.Net using WPF. But I am a bit confused about the "Model View Controller"-pattern. I have two books about design patterns (GoF and J.Bishop) afair this pattern is indeed not mentioned inside one of the two books. I have also searched the internet I found some java-examples. Bu...
I am updating our CruiseControl.NET continuous integration environment from using the old Visual Studio 2008 Web Deployment projects to Visual Studio 2010.
I do not want to use the Beta 2010 Web Deployment projects as I think I can make use of the updated Publishing/Packaging in 2010.
Currently I have managed to configure the CruiseCo...
I am trying to decrease the height of DataGridView rows to allow showing as much of theme. But all my best effort produces the following result:
These are the settings used for the RowHeaderDefaultCellStyle:
aGrid.RowHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
aGrid.RowHeadersDefaultCellStyle.BackColo...
Hi All
Is there a way to disable asp.net cacheing on selected page. It would be nice if this can be done from the web.config.
...