Forum: C# 8 Days Ago |
| Replies: 3 Views: 229 Hi!,
I think your account doesn’t have enough privileges to create the ldb file. Please have a look at this link - http://support.microsoft.com/kb/251254/en-us |
Forum: C# 14 Days Ago |
| Replies: 7 Views: 308 Think about common event handler for buttons,
...
private void Form1_Load(object sender, EventArgs e)
{
button1.Click += new EventHandler(commonHandler);
... |
Forum: C# 14 Days Ago |
| Replies: 2 Views: 299 Subtract two dates.
DateTime d1 = DateTime.Parse("11/18/2009 18:15");
DateTime d2 = DateTime.Parse("11/25/2009 01:35");
TimeSpan ts = d2 - d1;
Console.WriteLine("Seconds : {0} Minutes... |
Forum: C# 15 Days Ago |
| Replies: 5 Views: 331 >I have a windows application that prints a record in a given page size.
I don't think there is a big problem with windows application. Use crystal report or microsoft report. |
Forum: C# 15 Days Ago |
| Replies: 2 Views: 210 I assume that the field data type of ssk_matrah field is float.
if (oku4.Read())
{
if(!oku4.IsDBNull(0)) {
nSSKMatrahi = oku4.GetDouble(0);
... |
Forum: C# 15 Days Ago |
| Replies: 8 Views: 314 >But do nothing.
I think FormClosing event is not handled properly. Add handler for Form's FormClosing event. (Look at property windows). |
Forum: C# 20 Days Ago |
| Replies: 6 Views: 444 Take a look at this thread - http://www.daniweb.com/forums/thread238903.html |
Forum: C# 20 Days Ago |
| Replies: 3 Views: 222 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# 22 Days Ago |
| Replies: 11 Views: 565 ?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: C# 31 Days Ago |
| Replies: 3 Views: 286 Use BETWEEN caluse - BETWEEN returns TRUE if the value of test_expression is greater than or equal to the value of begin_expression and less than or equal to the value of end_expression.
SELECT... |
Forum: C# 32 Days Ago |
| Replies: 7 Views: 482 You cannot change DataType of column if it has data already. Why not just add a column and remove a column than in this case? |
Forum: C# 32 Days Ago |
| Replies: 3 Views: 273 Use SplitContainer instead of MDI. Check this out - The docking library for .Net Windows Forms. (http://sourceforge.net/projects/dockpanelsuite/) |
Forum: C# 34 Days Ago |
| Replies: 4 Views: 626 Hi danny.
You have to handle formclosing event along with singleton (http://hashfactor.wordpress.com/2009/03/31/c-winforms-create-a-single-instance-form/) - single instance of Form. |
Forum: C# Nov 6th, 2009 |
| Replies: 8 Views: 291 Try,
FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @"\MyTempDir\" + listBox1.SelectedValue, FileMode.Create); |
Forum: C# Nov 5th, 2009 |
| Replies: 17 Views: 747 Take a look at this article - http://msdn.microsoft.com/en-us/library/dd562851(VS.85).aspx |
Forum: C# Nov 4th, 2009 |
| Replies: 3 Views: 439 Reset the stream position before instantiate the reader.
xmlStream.Position = 0;
XmlReader reader = XmlReader.Create(xmlStream);
reader.MoveToContent();
..... |
Forum: C# Nov 4th, 2009 |
| Replies: 17 Views: 747 Good suggestion from scott. Here is a good example to play a video using DirectX - http://www.codeproject.com/KB/graphics/zMoviePlayer.aspx. You may use MCI... |
Forum: C# Oct 16th, 2009 |
| Replies: 7 Views: 475 @jonahmano: ddanbe you are wrong.
No. He gave you a solution. Use Write Method.
Console.Write("Enter Name : ");
value=Console.ReadLine(); |
Forum: C# Oct 16th, 2009 |
| Replies: 6 Views: 965 For checkBox, use Checked and CheckState property.
List and ComboBox; use SelectedValue property. |
Forum: C# Oct 7th, 2009 |
| Replies: 6 Views: 622 Take a look at this MSDN article - http://msdn.microsoft.com/en-us/library/ms971481.aspx |
Forum: C# Oct 7th, 2009 |
| Replies: 9 Views: 320 Your process is the one that uses file, you need to set image to null use something like this,
using(var img = Image.FromFile(filename).GetThumbnailImage(GetWitdth(filename, GetHeight(filename,... |
Forum: C# Oct 2nd, 2009 |
| Replies: 4 Views: 283 Use ExecuteScalar method.
string emp_commnd = "Select count(*) from emp_attandence where
Attandence='A'";
OleDbCommand commd = new OleDbCommand(emp_commnd,
... |
Forum: C# Oct 2nd, 2009 |
| Replies: 7 Views: 4,501 private void CompareWithDatabase(){
string cmdStr = "SELECT CurrentPassword
AdminPassword WHERE [UserName] = ?";
OleDbCommand select = new OleDbCommand(cmdStr, ... |
Forum: C# Oct 2nd, 2009 |
| Replies: 4 Views: 283 str="Select count(*) from TableName where Attendance='A'";
str1="Select count(*) from TableName where Attendance='P'"; |
Forum: C# Oct 1st, 2009 |
| Replies: 7 Views: 4,501 private void CompareWithDatabase()
{
vlAccessConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + DBFileName);
vlAccessConnection.Open();
string cmdStr =... |
Forum: C# Oct 1st, 2009 |
| Replies: 7 Views: 4,501 You have to use SELECT sql statement with WHERE clause. |
Forum: C# Sep 30th, 2009 |
| Replies: 3 Views: 225 Destructor is a very special method of class and it is used to implement object specific cleanup code. Unreferenced objects are released by the Garbage collector. |
Forum: C# Sep 22nd, 2009 |
| Replies: 7 Views: 688 Take a look at online book at google - Physics for game programmers By Grant Palmer... |
Forum: C# Sep 22nd, 2009 |
| Replies: 13 Views: 1,147 Maybe your code needs,
dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter; |
Forum: C# Sep 20th, 2009 |
| Replies: 3 Views: 615 Use parenthesis.
listView1.Items.Add(lcount.ToString()); |
Forum: C# Sep 19th, 2009 |
| Replies: 12 Views: 607 Take a look at this code,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
class MainApp
{ |
Forum: C# Sep 18th, 2009 |
| Replies: 11 Views: 817 Thanks Scott for the nice explanation on formatting issue using Generic and StringBuilder. |
Forum: C# Sep 18th, 2009 |
| Replies: 3 Views: 439 Text from WikiPidia (http://en.wikipedia.org/wiki/Generic_programming),
SUMMARY:
Generic programming is a style of computer programming in which algorithms are written in terms of... |
Forum: C# Sep 18th, 2009 |
| Replies: 11 Views: 817 Take a look at MSDN page - Composite Formatting (http://msdn.microsoft.com/en-us/library/txafckwd.aspx) |
Forum: C# Sep 16th, 2009 |
| Replies: 28 Views: 1,900 Push initial values to an array,
....
arr[0]=cmb1.Text;
....
Detect changes,
if(ar[0]!=cmd1.Text ......) {
// statements |
Forum: C# Sep 14th, 2009 |
| Replies: 9 Views: 259 You can't stop the execution of base class constructor.
Constructors of base/super class are always executed before the execution of derived class constructor. By default, a no argument... |
Forum: C# Sep 14th, 2009 |
| Replies: 8 Views: 493 string[] ar = listBox1.SelectedItems.Cast<string>().ToArray<string>(); |
Forum: C# Sep 14th, 2009 |
| Replies: 3 Views: 1,356 Arrays are reference (http://msdn.microsoft.com/en-us/library/490f96s2(VS.71).aspx) types. |
Forum: C# Sep 13th, 2009 |
| Replies: 3 Views: 671 Use DateTime.TryParseExact (http://msdn.microsoft.com/en-us/library/ms131044.aspx) |
Forum: C# Sep 11th, 2009 |
| Replies: 9 Views: 750 Take a look an article using alpha transparency (http://www.codeproject.com/KB/GDI-plus/LovelyGoldFishDeskPet.aspx) |