Forum: VB.NET 1 Hour Ago |
| Replies: 4 Views: 44 Try it,
Label1.SetBounds((Me.ClientSize.Width - Label1.Width) / 2, (Me.ClientSize.Height - Label1.Height) / 2, 0, 0, BoundsSpecified.Location) |
Forum: VB.NET 2 Hours Ago |
| Replies: 4 Views: 80 Two ways to go:
1. Form a query,
myCommand = new SqlCommand("INSERT INTO tblClasses (ClassId,ClassName,Department) VALUES "('" & nudClassId.Value & "','" & txtClassName.Text & "','" &... |
Forum: C# 2 Hours Ago |
| Replies: 1 Views: 84 Take a look at this article/C# code - http://www.gutgames.com/post/Kuwahara-Filter-in-C.aspx |
Forum: C# 3 Hours Ago |
| Replies: 2 Views: 82 I have two suggestions:
1. Embed Sql server Express (http://msdn.microsoft.com/en-us/library/bb264562(SQL.90).aspx) into custom application.
2. Deploy SQL Server databases with an Installer... |
Forum: C# 3 Hours Ago |
| Replies: 1 Views: 88 I would like to suggest you to use DirectShow. (http://directshownet.sourceforge.net/). |
Forum: C# 3 Hours Ago |
| Replies: 1 Views: 71 I believe what you're looking to do is Resize/Resample your images. Please read this (http://www.codeproject.com/KB/GDI-plus/imgresizoutperfgdiplus.aspx) article. |
Forum: C# 3 Hours Ago |
| Replies: 2 Views: 78 Take a look at this thread - http://www.daniweb.com/forums/thread238903.html |
Forum: C# 4 Hours Ago |
| Replies: 3 Views: 40 From MSDN online page - FileSystemWatcher Class (http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx).
SUMMARY:
It listens to the file system change notifications and raises... |
Forum: C# 4 Hours Ago |
| Replies: 4 Views: 173 Use Role Based Access (Not Role Based Authorization). Role-based access control attempts to allow administrators to specify access control in terms of the organizational structure of a company. You... |
Forum: Java 4 Hours Ago |
| Replies: 2 Views: 48 Please check filename. Name of .java file must be hello.java. The name of a Java program file (.java) must match the name of the class with the extension java. |
Forum: PHP 8 Hours Ago |
| Replies: 3 Views: 63 Take a look at php crowler (http://sourceforge.net/projects/php-crawler/), an open source project. I think it will help you to understand the basic features of crawler. |
Forum: ASP.NET 8 Hours Ago |
| Replies: 2 Views: 94 From MSDN article - http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.commandfield.causesvalidation.aspx
SUMMARY:
Use the CausesValidation property to specify whether validation... |
Forum: C# 20 Hours Ago |
| Replies: 8 Views: 92 Welcome annaqah.
Handle Paint (http://msdn.microsoft.com/en-us/library/system.windows.forms.control.paint.aspx) event of Form and use GDI classes to draw a vertical line onto the Form.
... |
Forum: JSP 22 Hours Ago |
| Replies: 1 Views: 97 From the java documentation - HttpSessionListener.html (http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSessionListener.html)
Implementations of this interface are notified of changes... |
Forum: JSP 22 Hours Ago |
| Replies: 2 Views: 66 File errorPage.jsp must be placed inside school folder in the root of your website.
root\
|
\school\
|
| errorPage.jsp |
Forum: C++ 22 Hours Ago |
| Replies: 11 Views: 154 Every recursive (http://en.wikipedia.org/wiki/Recursion_(computer_science)) function can be transformed into an iterative function by using a stack.
void inverted(int a)
{
if (a!=-1)
{... |
Forum: Java 1 Day Ago |
| Replies: 1 Views: 116 Provide more memory to your JVM (java switches -Xmx (http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html)) or don't load all the data (http://www.daniweb.com/forums/thread30336.html) into... |
Forum: C++ 1 Day Ago |
| Replies: 2 Views: 90 To use CSS files, JavaScript files and images in resource, you must convert all links in HTML file to be the resource numbers. Take a look at this article -... |
Forum: PHP 1 Day Ago |
| Replies: 3 Views: 129 Read PHP manual page - http://www.php.net/manual/en/image.setup.php |
Forum: VB.NET 1 Day Ago |
| Replies: 1 Views: 97 Add the reference of MsFlexGrid DLL to your project and also read this FAQ - http://social.msdn.microsoft.com/Forums/en-US/vbinterop/thread/46e102fc-e3de-423e-abab-819be1255384 |
Forum: ASP.NET 1 Day Ago |
| Replies: 1 Views: 113 I really don't think there is any reason to encrypt session. Session state enables you to store and retrieve values for a user as the user navigates ASP.NET pages in a Web application. It is not... |
Forum: ASP.NET 1 Day Ago |
| Replies: 1 Views: 144 Use & (string concat) operator to form a query.
....
oCom.CommandText = "INSERT INTO Children(First,Middle,Last,Ofsted) VALUES ('" & textbox1.text & "','" & textbox4.text & "','" &... |
Forum: C# 2 Days Ago |
| Replies: 2 Views: 112 ObjectListView (http://objectlistview.sourceforge.net/cs/index.html) - It is open source and is a wrapper around a normal .NET ListView. |
Forum: C# 2 Days Ago |
| Replies: 1 Views: 103 Take a look at following code,
..
var doc = XDocument.Load(@"sample1.xml");
var t = from node in doc.Descendants("installed") select node;
var m = from node1... |
Forum: C# 2 Days Ago |
| Replies: 7 Views: 176 ?Is it possible to use it to pass an unspecified number of arrays of objects?
Yes you can do this.
void methodName(params object []v){
...
} |
Forum: VB.NET 2 Days Ago |
| Replies: 3 Views: 115 Have to try to update value of selection column?
For i = 0 To ds.Rows.Count - 1
ds.Rows(i)("Selection")=true
..
Next |
Forum: VB.NET 2 Days Ago |
| Replies: 1 Views: 118 I suggest you to use Microsoft SQL Server 2005 Integration Services (SSIS) (http://msdn.microsoft.com/en-us/sqlserver/bb671393.aspx). - It is a platform for building high performance data integration... |
Forum: VB.NET 2 Days Ago |
| Replies: 2 Views: 235 Maybe you will get some useful information regarding to your problem from this FAQ - http://social.msdn.microsoft.com/Forums/en-US/vside2008/thread/9f84bdf7-aace-4a57-a3e4-3863a0efb647. |
Forum: VB.NET 2 Days Ago |
| Replies: 2 Views: 192 Use OwnerDraw property and DrawItem event. Take at look at this article - http://www.code-magazine.com/article.aspx?quickid=0303032&page=3 |
Forum: VB.NET 2 Days Ago |
| Replies: 1 Views: 157 Argument type mismatch Now.Add(age). Take a look at following code snippet.
Dim age As DateTime = #12/5/2008#
Dim ageTime As TimeSpan
ageTime = Now - age
Dim... |
Forum: VB.NET 2 Days Ago |
| Replies: 1 Views: 123 Take a look at MSDN article - PrintForm Component (http://msdn.microsoft.com/en-us/library/bb690938.aspx). |
Forum: VB.NET 2 Days Ago |
| Replies: 1 Views: 171 Try this code,
....
If ListBox1.SelectedIndex <> -1 Then
ListBox1.Items.RemoveAt(ListBox1.SelectedIndex)
System.IO.File.WriteAllLines("file.txt",... |
Forum: VB.NET 2 Days Ago |
| Replies: 4 Views: 177 Use TimeSpan structure.
Dim d1 As Date = #12/5/2008#
Dim d2 As Date = Now
Dim ts As TimeSpan = d2 - d1
Dim dt As Date = Date.MinValue + ts
... |
Forum: C# 2 Days Ago |
| Replies: 1 Views: 111 >how do I convert the 'MouseButtonEventArgs....?
Class MouseButtonEventArgs is a subclass of MouseEventArgs.
private void UserControl_MouseUp(object sender, MouseButtonEventArgs e)
{
... |
Forum: C# 2 Days Ago |
| Replies: 1 Views: 91 The assignment to a variable of a value type creates a copy of the assigned value, while the assignment to a variable of a reference type create a copy of the reference but not of the referenced... |
Forum: C# 2 Days Ago |
| Replies: 2 Views: 99 Your question is bit unclear to me. I think you want to add a record into the database along with datatable. Isn't it? |
Forum: ASP.NET 2 Days Ago |
| Replies: 2 Views: 144 You have to configure ItemTemplate and other templates of DataList (http://www.w3schools.com/ASPNET/aspnet_datalist.asp). Take a look at tutorial -... |
Forum: C# 2 Days Ago |
| Replies: 1 Views: 82 Read this FAQ - http://social.msdn.microsoft.com/Forums/en-US/clr/thread/ce6a8a5b-cee8-4d1b-b6de-77627256197e |
Forum: C++ 2 Days Ago |
| Replies: 4 Views: 130 Try it,
.....
case 'I':
case 'i':
if(roman.at(i+1)=='V' || roman.at(i+1)=='X')
decimal-=1;
else
decimal... |
Forum: C++ 2 Days Ago |
| Replies: 1 Views: 87 Take a look at this thread - http://www.daniweb.com/forums/thread183072.html |