|
You can use System.Diagnostics.Process.GetCurrentProcess to get the list of process which are running, assign it to the "Process" class one by one and then you can find a whole lot of info about each process
|
|
|
|
|
Hi There
I am using encryption and decryption using RijandaelManaged algorithm.
When I write integer in plain form .It is occupying 4 bytes.
When I use encryption It is occupying 16 bytes.
Can anybody tell me why?
Your response will be apperciated
Thanks
|
|
|
|
|
Encryption makes it "bigger". If it didn't, it would be relative easy to crack.
A text that gets encrypted usually isn't the same size as the encrypted version.
I are troll
|
|
|
|
|
hi, how can i know -in C# code- what a process is doing in a specific moment, what the files opened by the process and in what order?
|
|
|
|
|
Dear friends,
i have to find a solution to capture the Text or image or any file that is getting printed.
is there any possiblity to do that in c#
any idea? usefull links?
note:
i have searched in the net, and i have got program called
SpoolfileReadertest.exe in this website that was in vb.net.
this program works for dot matrix printer.
and i have "Xerox Phaser 3117" printer for this printer that program is not working.
please tell me how to capture Printer content in all the Printers?
Thak You.
With Love
Joe.I
|
|
|
|
|
hello..
i have a 100 picture boxes in my forum from PictureBox1 ... PictureBox100
and i have to assign same image to all of them and change the image at runtime so i have to write the code for each picture box like
PictureBox1.Image="";
PictureBox2.Image="";
PictureBox3.Image="";
PictureBox4.Image="";
.
.
.
PictureBox100.Image="";
is it not possible to write like
for(i=0;i<=100;i++)
PictureBox[i].Image="";
i tried it but its not the correct format so how can it be down . thans
|
|
|
|
|
You cannot use "PictureBox[i]" unless it is indexed. the one like in old VB.
Better is to navigate through the control array.. Here you can use Controls[i] (according to C# Syntax) and check for the control type ..
Enjoy..
modified on Thursday, February 26, 2009 6:19 AM
|
|
|
|
|
controlArray[i] i dont get that if could explain a bit further it would be fine
|
|
|
|
|
Something like this, I reckon;
foreach (Control c in this.Controls)
{
if (c is PictureBox)
{
PictureBox pictureBox = c as PictureBox;
pictureBox.Image = "blaaat";
}
}
I are troll
|
|
|
|
|
Yes. exactly.. this is what i mean
|
|
|
|
|
Hi,
AFAIK PicureBox is the dumbest Control Microsoft ever came up with. And you want 100 of them?
A Form should not contain such high number of Controls, and certainly not PictureBoxes. Use a Panel and draw the images yourself, that way you are in charge, your code will run more smoothly and you will not need to ask questions here again about your form flickering when you resize it.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
thans but how can i dwar a jpg image on the form...
|
|
|
|
|
max.4u wrote: how can i dwar a jpg image on the form...
using the Paint event, a Paint handler, the Graphics class and its DrawImage method, the Image class and its FromFile or FromStream methods. This is elementary stuff. Read the documentation on all the above, read an article, or better yet study a programming book.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
thank you...wil definitly do that
|
|
|
|
|
Hey everyone,
You call a form from a form and then hide the calling form, now you want to get back to the calling form and show it, how do you do that??
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Form.Show();
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
The better idea is to maintain a pointer.. I mean an instance variable to the calling form. Before it is closed. But beware. If you are closing it using the close() Method. The object will get disposed and calling the same instance again will throw a objet disposed exception. In this case you have to create a new instance.
|
|
|
|
|
Use an event in the called form that the hidden form listens for. When the called form fires the event, the callee can unhide itself.
[Edit]Simple example using the FormClosed event - but it could be a custom event[/Edit]
using System;
using System.Windows.Forms;
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Shown += new EventHandler(Form1_Shown);
}
void Form1_Shown(object sender, EventArgs e)
{
Form2 form2 = new Form2();
form2.FormClosed += new FormClosedEventHandler(form2_FormClosed);
form2.Show();
Visible = false;
}
void form2_FormClosed(object sender, FormClosedEventArgs e)
{
Visible = true;
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Hi,
My server is in the central timezone, but the users can be anywhere in the world, and users can set a local time for a meeting, the user can only login for meeting at that time only. How can i compare time for login?
Regards,
Yesuprakash
|
|
|
|
|
How about comparision using ToUniversalTime() ?
Edit: To be precise, use ToUniversalTime on both the datetime in the compare
|
|
|
|
|
Hi all,
I need to split a SELECT QUERY fom a database (which i put in a DataTable) from this:
DataTable1
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
0
1
2
0
1
To this:
DataTable1
0
1
2
3
4
5
6
7
8
9
10
DataTable2
0
1
2
3
4
5
6
7
8
9
10
DataTable3
0
1
2
3
DataTable4
0
1
2
DataTable5
0
1
How can i do that?? 
|
|
|
|
|
you have to iterate through the all rows in DataTable then when you got 0 add a new table.
eg
List<datatable> DT_list = new List<datatable>();</datatable></datatable>
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi all,
I need to split a SELECT QUERY fom a database (which i put in a DataTable) from this:
DataTable1
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
0
1
2
0
1
To this:
DataTable1
0
1
2
3
4
5
6
7
8
9
10
DataTable2
0
1
2
3
4
5
6
7
8
9
10
DataTable3
0
1
2
3
DataTable4
0
1
2
DataTable5
0
1
How can i do that??
modified on Friday, February 27, 2009 1:41 AM
|
|
|
|
|
List<DataTable> DT_list = new List<DataTable>();
for (int a=0;a<mainDT.Rows.Count;a++)
{
if (mainDT.Rows[a]["ColumnNameHere"].ToString().Trim() == "0")
{
DataTable tmp_DT = new DataTable();
// Add same columns as in mainDT
DT_list.Add(tmp_DT);
}
DT_list[DT_list.Count - 1].ImportRow(mainDT.Rows[a]);
}
I didnt test this, just wrote in CP
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
How to do? or in somewise make form always active
P.S. sorry for my bad english
|
|
|
|