|
No brother...
I don't want to make virus...
Just wanna to do an application..
Rahul Kulkarni
|
|
|
|
|
A hidden application. Users have a right to know what processes are running on their machines.
Steve
|
|
|
|
|
RahulRKulkarni wrote: Just wanna to do an application
Then why do you want to hide it?
|
|
|
|
|
Hi,
I am using DataGridView in my application.I am creating a datatable which has fields whose DataType are Text,Boolean and Datetime.
I am assigning the created datatable as the datasource for the DataGridView.
But the value displayed in the DataGrid for the DateTime field is different from the Value present in the Datatable.
Ex: if the value for one of the DateTime field in the DataTable is 11/09/2006 10:04:40 PM,it is shown in the DataGrid as 11/09/2006 10:04 PM the seconds value is not shown.
When i checked the properties for the DataGrid Cell the EditedFormattedValue was 11/09/2006 10:04 PM and Value was 11/09/2006 10:04:40 PM.
This is happening for only the DateTime field.
Any idea why is it happening.
Regards
Vinutha
|
|
|
|
|
What this error means and how to fix it?
"SOAP header Security was not understood"
TIA
Jay
Jay
|
|
|
|
|
I have a C# application that calls an unmanaged C++ dll. I keep getting a "System.NullReferenceException: Object reference not set to an instance of an object" exception when running it on one machine. However, it works fine on another machine.
Both of the machines are running on Windows XP SP2 using the .Net 1.0 framework.
Does anyone have a clue what the problem might be?
Thanks in advance.
|
|
|
|
|
|
How would you allow a user to type only two digits after a decimal point is typed?
I'm pulling my hair out on this one. I cant even figure out the logic.
I want the user to type in a PRICE for something. For example they will type "23.95" the problem is they can continue typing and end up with "23.956766737" money doesn't work like that.
Is there a way to count position backwards?
yeah boy
|
|
|
|
|
I've done this before. You handle the keypressed event of the control, and you have to work out where the cursor is, what key was pressed, and if the key pressed is inserted where the cursor is, will result in a number that is valid. If not, set e.Handled to true. If Char.IsControl on the char pressed, you don't want to set handled to true.
There is a masked edit control in .NET 2.0, but I think it is nasty.
|
|
|
|
|
I have a subClass that extends the System.Windows.Forms.WebBrowser and overrides the WndProc in hopes to capture the standard context menu that ie uses.
As soon as the browsers loads the document i am not able to capture the context menu using the CONTEXTMENU.. Can someone tell me or POINT me to the correct documentation so that i can get access to the context menu and add a couple items to it..
Thanks very much!
Erik
---This is the method that i am using to get access to the menu; and then from their i can do the rest. I just need to know how to get access to this context Menu..
protected const int WM_CONTEXTMENU = 0x007B;
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_CONTEXTMENU)
{
string lll = "";
string ddd = lll;
}
else
{
base.WndProc(ref m);
}
}
enviroment -> vs2005 -> winxp
|
|
|
|
|
I'm working with the following Remove code. My code is failing at line # 6 and throwing an exception. I don't understand why "index == -1" (see immidiate-window output) is evaluating to true, eventhough my immidiate window is returning true for existance of 'column' object in the ArrayList. Furthermore, if I comment out lines #4-7 then the all is golden.
Any help would be appreciated.
Thanks,
- Malhar
public class ColumnCollection
{
ArrayList _columnList;
...
1: public void Remove (TreeListColumn column)
2: {
3: int index = _columnList.IndexOf (column)
4: if (index == -1)
5: {
6: throw new ArgOutOfRangeException (...);
7: }
8: _columnList.RemoveAt (index);
9: }
...
}
Immidiate/Command Window (Break point at line # 3):
column == _columnList[4] ==> true
Object.ReferenceEquals (column, _columnList[4] ==> true
_columnList.IndexOf(column) ==> -1 :wtf:
|
|
|
|
|
It might have something to do with how the items are compared. The IndexOf method doesn't use the == operator or the ReferenceEquals method to compare the items, but the Equals method.
---
b { font-weight: normal; }
|
|
|
|
|
You are right, but the "Equals" method is not overridden and the TreeListColumn is using the base (object.Equals) method. (Not that it matters) But the value returned GetHashCode() is also the same for both the objects.
- Malhar
|
|
|
|
|
hi everyone
i'm looking for a way to display services associated with a process. i've found that i need to use "QueryServiceStatusEx" , problem is i'm programming in C# and don't have much experience in Win32 API. i'm struggling to make it word in my program and MSDN's code example aren't are complex . can anyone please help me? how do i implement "QueryServiceStatusEx" in C# first and then enumerate the list of services associated with a process? plz help
kind regards
|
|
|
|
|
Hello,
I have a client app written in c# that contains checklistbox. I had the statement clearselected() to clear out the checked checkboxes when the user loads the new case... Everything worked perfectly until my users got converted to new domain.
Since they got converted to the new domain, the checkbox is no longer cleared out on pageload. Whatever the user selected in the previous case remained checked for the new case. The problem is: the application will not do anything because there are nothing actually checked (the checkedindices collection is actually cleared)! The user either has to shutdown the app or manually uncheck/recheck the items in order to add them to the checkeditem collection.
The situation makes me thinking of the cache problem, but the data is brought back correctly for each case, excepts the checkboxes remained checked "graphically" on the UI. I had tried to clear the check marks of the checklistbox by looping through the checkedindice collection, but that didn't help.
I have searched for a solution but did not see any. If anyone has suggestion please let me know.
Thank you very much in advance.
VN.
|
|
|
|
|
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
namespace WindowsApplication4
{
public partial class Form1 : Form
{
//private System.Windows.Forms.TextBox textBox1;
private System.Data.DataSet MODEL_1DataSet;
private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
//private System.Data.OleDb.OleDbCommand selectcommand;
//private System.Data.OleDb.OleDbCommand insertcommand;
//private System.Data.OleDb.OleDbCommand updatecommand;
//private System.Data.OleDb.OleDbCommand deletecommand;
private System.Data.OleDb.OleDbConnection connection1;
//private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
//using
//(System.Data.OleDb.OleDbConnection connection1 = new System.Data.OleDb.OleDbConnection())
//{
// The insertSQL string contains a SQL statement that
// inserts a new row in the source table.
//OleDbCommand command = new OleDbCommand(insertSQL);
// Set the Connection to the new OleDbConnection.
// command.Connection = connection1;
// Open the connection and execute the insert command.
//try
//{
connection1.Open();
//command.ExecuteNonQuery();
// }
//catch (Exception ex)
//{
// Console.WriteLine(ex.Message);
// }
// The connection is automatically closed when the
// code exits the using block.
}
}
private void Form1_Load(object sender, EventArgs e)
{
oleDbDataAdapter1.SelectCommand.CommandText = "SELECT Frame FROM Element Forces-Frames =" + comboBox1.AllowDrop;
oleDbDataAdapter1.Fill(modeL_1DataSet1);
Display(modeL_1DataSet1);
textBox6.Text += "\r\nsuccessful\r\n";
}
private void Display(DataSet dataset)
{
try
{
DataTable dataTable = dataset.Tables[ 0 ];
if (dataTable.Rows.Count != 0)
{
int record = (int)dataTable.Rows[0][0];
textBox1.Text = (string) dataTable.Rows[0][3];
textBox2.Text = ( string)dataTable.Rows[0][4];
textBox3.Text = (string)dataTable.Rows[0][5];
textBox4.Text = (string)dataTable.Rows[0][6];
}
else
textBox6.Text += "\r\nnot found\r\n";
}
catch (System.Data.OleDb.OleDbException oleexecption)
{
Console.WriteLine(oleexecption.StackTrace);
textBox5.Text += oleexecption.ToString();
}
}
}
}
this is my program i donno watzz wrong in this...
its giving errors
as
Error 1 The namespace 'WindowsApplication4' already contains a definition for '?' 71 53 WindowsApplication4
Error 2 The namespace 'WindowsApplication4' already contains a definition for '?' 71 56 WindowsApplication4
Error 3 The namespace 'WindowsApplication4' already contains a definition for '?' 72 60 WindowsApplication4
Error 4 The namespace 'WindowsApplication4' already contains a definition for '?' 72 63 WindowsApplication4
Error 5 The namespace 'WindowsApplication4' already contains a definition for '?' 73 60 WindowsApplication4
Error 6 The namespace 'WindowsApplication4' already contains a definition for '?' 73 63 WindowsApplication4
Error 7 The namespace 'WindowsApplication4' already contains a definition for '?' 74 59 WindowsApplication4
Error 8 The namespace 'WindowsApplication4' already contains a definition for '?' 74 62 WindowsApplication4
Error 9 The namespace 'WindowsApplication4' already contains a definition for '?' 75 59 WindowsApplication4
Error 10 The namespace 'WindowsApplication4' already contains a definition for '?' C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 75 62 WindowsApplication4
Error 11 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 55 17 WindowsApplication4
Error 12 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 64 17 WindowsApplication4
Error 13 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 68 55 WindowsApplication4
Error 14 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 71 54 WindowsApplication4
Error 15 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 71 57 WindowsApplication4
Error 16 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 72 61 WindowsApplication4
Error 17 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 72 64 WindowsApplication4
Error 18 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 73 61 WindowsApplication4
Error 19 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 73 64 WindowsApplication4
Error 20 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 74 60 WindowsApplication4
Error 21 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 74 63 WindowsApplication4
Error 22 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 75 60 WindowsApplication4
Error 23 Identifier expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 75 63 WindowsApplication4
Error 24 A namespace does not directly contain members such as fields or methods C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 77 17 WindowsApplication4
Error 25 Type or namespace definition, or end-of-file expected C:\Documents and Settings\sasikumar\My Documents\Visual Studio 2005\Projects\WindowsApplication4\WindowsApplication4\Form1.cs 80 13 WindowsApplication4
|
|
|
|
|
arjunsasikumar wrote: // code exits the using block.
}
}
private void Form1_Load(object sender, EventArgs e)
{
Delete the one of the closing brackets ("}").
|
|
|
|
|
this shows me connection error in
connection1.open()
|
|
|
|
|
this shows me connection error in
connection1.open()
|
|
|
|
|
Also I need to know if there is a way I can make my listview columns in details view unable to be resized.
|
|
|
|
|
I found an article and designed a new user control based on that.
|
|
|
|
|
How can i make my treeview show all the items expanded by default?
|
|
|
|
|
Either call the ExpandAll() method after adding new nodes or call the added node's Expand() method or even subclass the TreeView and override the Adding functionality so that it expands the added nodes automatically.
|
|
|
|
|
Hello fellow .NET users. I've been searching for a while and haven't found a good way to detect if a standard laptop lid has been closed through C# or any of the .NET languages. Does anyone know how I might do this though managed or even unmanaged code? Essentially if the laptop lid was set to "do nothing" under the power options I would like to be able to check if the lid has been closed.
|
|
|
|
|
There is no API for this that I know of, I suspect it's something that laptop manufacturers build in to their hardware, which then calls a known API based on how it is set.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|