|
Udayaraju wrote: Can anyone trace out where is the error
Not without you telling us what the error is, which line it occurs, what the results are and what the expected results are...
|
|
|
|
|
Hi,
Here I am trying to edit value in lstListView.SelectedItems[0].SubItems[3] column.
The textbox I have placed is not displayed at that coulmn position. I have done with all the possibilites but unable to place the textbox in required Location.
The position of textbox is not displayed in required column.
|
|
|
|
|
Bitmap bmp = new Bitmap(ofd.FileName);
Bitmap bmp_backColor = new Bitmap(bmp.Width, bmp.Height);
for (int x = 0; x < bmp.Width; x++)
{
for (int y = 0; y < bmp.Height; y++)
{
Color tmp_oldColor = bmp.GetPixel(x, y);
if (tmp_oldColor != Color.Transparent)
{
Color tmp_newColor = Color.FromArgb(tmp_oldColor.A, Color.Red);
bmp_backColor.SetPixel(x, y, tmp_newColor);
}
}
}
Graphics m_gr = Graphics.FromImage(bmp_backColor);
m_gr.DrawImage(bmp, 0, 0, bmp.Width, bmp.Height);
m_gr.Dispose();
pictureBox1.BackgroundImage = bmp_backColor;
I've written this code to set a red backcolor to any image's visible pixels(specially for half tranparent) but its very very slow, any way to boost the code
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
|
|
|
|
|
Try this[^]
Be careful, there is no Undo Button(Ctrl+Z) in life.
|
|
|
|
|
ok, if i add Alpha in struct and other things too then will it work ?
thanks
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
|
|
|
|
|
Xmen wrote: ok, if i add Alpha in struct and other things too then will it work ?
I haven't tried adding alpha and other filter in unsafe, I was just setting the pixel to gray in order to make the whole image as grayscale image. Yes one thing I am sure using unsafe in get and set pixel makes it very fast.
Be careful, there is no Undo Button(Ctrl+Z) in life.
|
|
|
|
|
Use unsafe pointers as explained here[^].
egards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
that looks awesome man, i will try that later
thanks you both
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
|
|
|
|
|
hello.. i have a windows form and a windows service running.... how can i pass parameters or make a comunication between them so that the windows form can pass arguments to the service .... both devoloped in c#
|
|
|
|
|
You can use named pipes or .net remoting
|
|
|
|
|
thanks for the sugession.,...
|
|
|
|
|
You are welcome
|
|
|
|
|
Hello Experts,
I need sample code how do i adjust width in excel in server with out installing excel in server machine. Can any one give Us sample code .
|
|
|
|
|
You want to edit excel documents without office installed? I don't know if you can, but I am sure you will need the office XP PIA's[^] to do that, assuming it is possible...
|
|
|
|
|
vikram_asv wrote: I need sample code how do i adjust width in excel in server with out installing excel in server machine
Don't know what you mean by width, but if you're using Excel 2007, you can manipulate (and create) the workbooks without excel since the files are basically zipped xml files. For more info, have a look at: http://www.codeproject.com/KB/office/OpenXML.aspx[^].
If you're using older versions of excel, you will either need to install the excel or use SpreadsheetML. In that case, look: Dive into SpreadsheetML (Part 1 of 2)[^]
|
|
|
|
|
Hi,
this is probably an easy one too...
When I try to send an email notification, I get an error, saying the virtual machine is not properly configured to send emails....
I found a document saying I have to edit the web.config within the \program files -directory of the Foundation Server-..... which I did.
But the error is still the same
any suggestions how to get this going?
Thanks
Cheers
Piratenwichtl
|
|
|
|
|
Hi,
I am new to Team Foundation Server.. so its probably an easy question.. anyway I am not able to find out whats wrong.
1. I installed Team Foundation Server successfully... sweet!
2. I then installed Team Explorer
3. I opened the Web-Portal and started to configure it...
what puzzles me is -- I got tasks within my Team Explorer and I got tasks within my Web-Portal. I would have thought if you enter a task, doesnt matter where, that you would find it on both ends, in the team explorer AND the web portal.
But the tasks I add to my team explorer are not visible from the web portal and vice versa.
Why is this? Am I doing something wrong?
Please help me
Cheers
Piratenwichtl
|
|
|
|
|
Sorry, I don't see the connection with C#.
|
|
|
|
|
fair enough... what messageboard would be more fitting for my question?
|
|
|
|
|
hello every one..
i am devoloping a LAB monitoring system as an acedamic project..the first tast is to remotely authenticate the user this may not seem to be a big problem in windows foms.. but i need to have a windows integrated login where as the system boots and the logonui.exe triggers it should acceps the use password and should authenticate to the server running a c# system service from the database defined...can any one tell me if its possible and how to do it... thans....
|
|
|
|
|
Did I understand correctly that you want to automatically logon to the desktop of the remote machine. Couldn't you create a service which runs on this machine and communicate with the service (or the service communicates with a server) instead of using a desktop application which is run in user session?
|
|
|
|
|
thans for ur reply... let me explain you clearly...
our lab has 100 systems and a server. i am installing c# system services on the server and clients to communicate. but when windows starts the client has to get a user name and password form insted of the windows authentication and the user name and the pass should be passed to the server for the authentication from the database... all insted of the default windows authentication...
|
|
|
|
|
Did I understand correctly that when windows starts, you want to create a desktop session using account information from database? AFAIK that's not possible. A database and windows can share the same user information which is stored in Active Directory, but you still logon to windows using windows authentication.
Or do you mean that when user has logged into windows and the desktop is running, you want to connect to a database using the same account information that windows uses. In that case this is called integrated security if you're using SQL Server.
|
|
|
|
|
. i meant the first one.. creatng a desktop session ussing the account information from a database...thanks for uor reply.
|
|
|
|
|
Ok, in that case I'm sorry but as far as I can see, Windows cannot use any other login information than windows accounts. If that's true, I believe that the only option is to use service as I suggested on the lab machine (since services don't need to logon to windows the way that user session does).
|
|
|
|