Search Results

Showing results 1 to 40 of 155
Search took 0.03 seconds.
Search: Posts Made By: adatapost ; Forum: C# and child forums
Forum: C# 8 Days Ago
Replies: 3
Views: 229
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
>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
Posted By adatapost
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
Solved: Close Event
Views: 314
Posted By adatapost
>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
Posted By adatapost
Take a look at this thread - http://www.daniweb.com/forums/thread238903.html
Forum: C# 20 Days Ago
Replies: 3
Views: 222
Posted By adatapost
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
Posted By adatapost
?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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
Try,

FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @"\MyTempDir\" + listBox1.SelectedValue, FileMode.Create);
Forum: C# Nov 5th, 2009
Replies: 17
Views: 747
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
@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
Posted By adatapost
For checkBox, use Checked and CheckState property.
List and ComboBox; use SelectedValue property.
Forum: C# Oct 7th, 2009
Replies: 6
Views: 622
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
private void CompareWithDatabase(){
string cmdStr = "SELECT CurrentPassword
AdminPassword WHERE [UserName] = ?";
OleDbCommand select = new OleDbCommand(cmdStr, ...
Forum: C# Oct 2nd, 2009
Replies: 4
Views: 283
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
You have to use SELECT sql statement with WHERE clause.
Forum: C# Sep 30th, 2009
Replies: 3
Views: 225
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
Maybe your code needs,

dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter;
Forum: C# Sep 20th, 2009
Replies: 3
Views: 615
Posted By adatapost
Use parenthesis.

listView1.Items.Add(lcount.ToString());
Forum: C# Sep 19th, 2009
Replies: 12
Views: 607
Posted By adatapost
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
Posted By adatapost
Thanks Scott for the nice explanation on formatting issue using Generic and StringBuilder.
Forum: C# Sep 18th, 2009
Replies: 3
Views: 439
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
string[] ar = listBox1.SelectedItems.Cast<string>().ToArray<string>();
Forum: C# Sep 14th, 2009
Replies: 3
Views: 1,356
Posted By adatapost
Arrays are reference (http://msdn.microsoft.com/en-us/library/490f96s2(VS.71).aspx) types.
Forum: C# Sep 13th, 2009
Replies: 3
Views: 671
Posted By adatapost
Use DateTime.TryParseExact (http://msdn.microsoft.com/en-us/library/ms131044.aspx)
Forum: C# Sep 11th, 2009
Replies: 9
Views: 750
Posted By adatapost
Take a look an article using alpha transparency (http://www.codeproject.com/KB/GDI-plus/LovelyGoldFishDeskPet.aspx)
Showing results 1 to 40 of 155

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC