Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to Add Sub Column in datagridview .
Posted
Comments
Shambhoo kumar 19-Jul-13 7:53am    
Remove Trojan:Win32/CoinMiner.G Infection

Trojan: Win32/CoinMiner.G, from name it is clear that it is backdoor infection which is installed on user computer devoid of any information and remains in sneakiness mode. This dangerous infection once after getting installed starts monitoring the user’s activity like web page visiting time, user credential like username, password, login information and so on. The information which is collected is further rerouted to remote location where it is used by third party for illegal purpose.
Shambhoo kumar 19-Jul-13 7:54am    
http://remove-virus-trojan.blogspot.in/2013/05/remove-trojanwin32coinminerg-easy.html
Shambhoo kumar 22-Jul-13 1:14am    
http://www.flexerasoftware.com/webdocuments/productdemos/IS2010_VSLE_Demo/IS2010_VSLE_Demo-lite.html

1 solution

I solved my self.

class level variable

C#
int flag=0;



onForm load Event

C#
#region TestCode
           try
           {
               this.dgvCreateResult.Columns.Add("1", "");
               this.dgvCreateResult.Columns.Add("2", "");
               this.dgvCreateResult.Columns.Add("3", "");
               this.dgvCreateResult.Columns.Add("4", "");

               this.dgvCreateResult.Columns.Add("Eng1", "FA1");

               this.dgvCreateResult.Columns.Add("Eng2", "SA1");

               this.dgvCreateResult.Columns.Add("Math1", "FA1");

               this.dgvCreateResult.Columns.Add("Math2", "SA1");

               this.dgvCreateResult.Columns.Add("Hin1", "FA1");

               this.dgvCreateResult.Columns.Add("Hin2", "SA1");

               this.dgvCreateResult.Columns.Add("Phy1", "FA1");

               this.dgvCreateResult.Columns.Add("Phy2", "SA1");

               this.dgvCreateResult.Columns.Add("Che1", "FA1");

               this.dgvCreateResult.Columns.Add("Che2", "SA1");

               this.dgvCreateResult.Columns.Add("colTotal", "");

               for (int j = 0; j < this.dgvCreateResult.ColumnCount; j++)
               {
                   if (j >= 0 && j < 4)
                   {
                       if (j == 0)
                       {
                           dgvCreateResult.Columns[j].Width = 50;
                           dgvCreateResult.Columns[j].Frozen = true;
                       }
                       else
                       {
                           dgvCreateResult.Columns[j].Width = 120;
                           dgvCreateResult.Columns[j].Frozen = true;
                       }
                   }
                   else
                   {
                       if (j == dgvCreateResult.Columns.Count - 1)
                       {
                           dgvCreateResult.Columns[j].Width = 100;
                       }
                       else
                       {
                           dgvCreateResult.Columns[j].Width = 50;
                       }
                   }
                   dgvCreateResult.Columns[j].SortMode = DataGridViewColumnSortMode.NotSortable;
               }

               this.dgvCreateResult.ColumnHeadersHeightSizeMode =

                    DataGridViewColumnHeadersHeightSizeMode.EnableResizing;

               this.dgvCreateResult.ColumnHeadersHeight =

                           this.dgvCreateResult.ColumnHeadersHeight * 2;

               this.dgvCreateResult.ColumnHeadersDefaultCellStyle.Alignment =

                    DataGridViewContentAlignment.BottomCenter;

               this.dgvCreateResult.CellPainting += new

                    DataGridViewCellPaintingEventHandler(dgvCreateResult_CellPainting);

               this.dgvCreateResult.Paint += new PaintEventHandler(dgvCreateResult_Paint);
           }
           catch (Exception Ex) { }
           #endregion

C#




C#
private void dgvCreateResult_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
        {
            if (e.RowIndex == -1 && e.ColumnIndex > -1)
            {

                e.PaintBackground(e.CellBounds, false);



                Rectangle r2 = e.CellBounds;

                r2.Y += e.CellBounds.Height / 2;

                r2.Height = e.CellBounds.Height / 2;

                e.PaintContent(r2);

                e.Handled = true;

                flag = 0;

            }
        }



C#
private void dgvCreateResult_Paint(object sender, PaintEventArgs e)
        {
            try
            {
                string[] monthes = { "SNo", "AdmissionNo", "Name", "Grade/Percentage", "English", "Math", "Hindi","Physics","Chemistry","Total" };

                for (int j = 0; j < dgvCreateResult.Columns.Count; )
                {

                    //get the column header cell

                    Rectangle r1 = this.dgvCreateResult.GetCellDisplayRectangle(j, -1, true);



                    r1.X += 1;

                    r1.Y += 1;

                    int a = j;

                    if (j >= 0 && j < 4)
                    {
                        r1.Width = r1.Width - 2;

                    }
                    else if (j ==dgvCreateResult.Columns.Count-1)
                    {
                        r1.Width = r1.Width - 2;
                        a = j - flag;
                        flag++;
                    }
                    else
                    {
                        r1.Width = r1.Width * 2 - 2;
                        a = j - flag;
                        flag++;
                    }

                    r1.Height = r1.Height / 2 - 2;

                    e.Graphics.FillRectangle(new SolidBrush(dgvCreateResult.ColumnHeadersDefaultCellStyle.BackColor), r1);

                    StringFormat format = new StringFormat();

                    format.Alignment = StringAlignment.Center;

                    format.LineAlignment = StringAlignment.Center;

                    e.Graphics.DrawString(monthes[a],

                    this.dgvCreateResult.ColumnHeadersDefaultCellStyle.Font,

                    new SolidBrush(this.dgvCreateResult.ColumnHeadersDefaultCellStyle.ForeColor),

                    r1,

                    format);

                    if (j >= 0 && j < 4)
                    {
                        j++;
                    }
                    else if (j == dgvCreateResult.Columns.Count - 2)
                    {
                        j++;
                    }
                    else
                    {
                        j += 2;
                    }

                }
            }
            catch (Exception Ex) { }
        }



C#
private void dgvCreateResult_Scroll(object sender, ScrollEventArgs e)
        {
            dgvCreateResult.Refresh();

        }
 
Share this answer
 
v2
Comments
Shambhoo kumar 12-Jul-13 7:58am    
What is win32.androm infection..??
Win32.androm is a unpredictable computer threat that directly affect the performance of your PC.When this threat enter Your PC then you will often here unique sound and noticed that number of shortcuts are created on your desktop and your PC work like a stranger.It also slow down the speed of your system. Win32.androm may change the browser setting, homepage and also lost of conscious information without your knowledge.
When Win32.androm is installed on your system it gives number of unnecessary popup and bogus information related your PC.Once it is installed then its most difficult task to remove all its component of the system. It Hunk the task manager and malware removal tool. It directly affects the Registry setting once it is changed then it is crucial to recover. If Win32.androm is insatalled on your PC then you receive a message then you want to remove this then you use automatic remove infection tool instead of buy a Win32.androm program.
Once you insatalled the removal infection tool then this tool automatically abstract the Win32.androm threat.
Shambhoo kumar 14-Jul-13 22:01pm    
How Harmful xyz infection is!
As your PC infected with xyz infection then first its effect comes on the performance of PC. Your PC may respond very much slowly and can block the network connection. Many unwanted changes can be seen into PC like corruption of registry files, deletion of important data files, corruption of stored database and important software has not be active anymore. This xyz infection is very much severe that it will allow third party hackers to enter into the system to scan throughout the system and steal confidential information. When you search something on browser then you will redirected to the malicious sites and some of infection program can be downloaded from there, which will be very much harmful.
How xyz Enter Into PC?
In response of this query, it can be said that there is not any fixed way through which xyz makes its entry into the PC. These unwanted programs often come from many sources like malicious banner, infected ads, spam emails, free software download etc. Due to adware program, these kind of hazardous xyz infections can enter into the PC, such as Coupon Companion, Savings Vault Adware and Coupondropdown . This kind of infection can also enter into the PC while visiting malicious sites or by downloading infective freeware software. it is very important to remove these all infection as soon as possible otherwise it will make the infected computer almost unusable.
Role of Antivirus Program in xyz Removal
When computer users get infected by xyz infection then they are looking for their antivirus program to remove it. But xyz infection is developed by highly qualified professional hackers who know functionality of antivirus program so these infections can easily beat these antivirus programs. There is no any perfect antivirus program that can solve everything because everyday many viruses are created and it takes time for antivirus software to make solutions for the latest viruses. On the other hand, xyz infection is somewhat more dangerous because it is adding new characteristics all the time, so it is not possible to detect this infection by any antivirus completely or it can even disable it.
Manual Removal Of xyz
Xyz infection is very much dangerous program and in very short period of time, it can infect throughout your System and can make your several programs useless. It also affects important registry files and modifies or corrupts them. To remove xyz infection manually, it is important to scan for the infected files and all the damage or corrupt registry files. The registry files of xyz infections must be removed to complete removal of xyz infection. But most of the time, this task cannot be completed due to lack of knowledge. So it is suggested to use automatic removal method to get rid of xyz infection completely.




Automatic Removal xyz Infection
This method of xyz removal is completely automatic. You don’t need to search for infected files or registries. There is a xyz removal tool that is developed by highly qualified professionals and has the capability to detect any kind of infection. It will perform scan throughout the PC to detect infective files and folders. It will also provide protection from other severe infections to your PC. This tool also prevent the entry of other infective programs and keep safe your system data and other confidential files.
Shambhoo kumar 25-Jul-13 7:57am    
<html>
<body>
<table border="1" align="center" width="70%">
<tr height="250px">
<td colspan="3">
<p>Mens</p>
<p>Womens</p>
<p>Kids</p>
</td>
</tr>
<tr id="Mens_ID">
<td>
<table border="1" width="100%" align="center">
<tr>
<td bgcolor="#123ddd" align="center" colspan="3">Mens</td>
</tr>
<tr height="140px" >
<td align="center"><img src="1.jpg" width="150px" height="150px"></td>
<td align="center"><img src="2.jpg" width="150px" height="150px"></td>
<td align="center"><img src="3.jpg" width="150px" height="150"></td>
</tr>
<tr>
<td align="center">750 Rs</td>
<td align="center">570 Rs</td>
<td align="center">890 Rs</td>
</tr>
</table>
</td>
</tr>
<tr id="Womens_ID" style="display:none">
<td>
<table border="1" width="100%">
<tr>
<td bgcolor="#123ddd" align="center" colspan="3">Womens</td>
</tr>
<tr height="140px">
<td align="center"><img src="4.jpg" width="150px" height="150px"></td>
<td align="center"><img src="5.jpg" width="150px" height="150px"></td>
<td align="center"><img src="6.jpg" width="150px" height="150"></td>
</tr>
<tr>
<td align="center">950 Rs</td>
<td align="center">770 Rs</td>
<td align="center">690 Rs</td>
</tr>
</table>
</td>
</tr>
<tr id="Kids_ID" style="display:none">
<td>
<table border="1" width="100%">
<tr>
<td bgcolor="#123ddd" align="center" colspan="3">Kids</td>
</tr>
<tr height="140px">
<td > </td>
<td > </td>
<td > </td>
</tr>
<tr>
<td > </td>
<td > </td>
<td > </td>
</tr>
</table>
</td>
</tr>
</div>
</table>
</body>
<script type="text/javascript">
function ShowHideFunction(var1,var2,var3)
{
document.getElementById(var1).style.display = 'block';
document.getElementById(var2).style.display = 'none';
document.getElementById(var3).style.display = 'none';
}
</script>
</html>
Shambhoo kumar 25-Jul-13 8:00am    
href="javascript:ShowHideFunction('Mens_ID','Womens_ID','Kids_ID'); "
href="javascript:ShowHideFunction('Womens_ID','Mens_ID','Kids_ID'); "
href="javascript:ShowHideFunction('Kids_ID','Mens_ID','Womens_ID'); "
Shambhoo kumar 2-Aug-13 7:49am    
Worm.Phorpiex.U is classified as a highly risky worm infection which has the ability to open up the backdoor on your compromised computer for the threats and even the remote computer hackers. Worm.Phorpiex.U has the ability to disable all your security tools including the antivirus program which makes your system vulnerable for other type of thread. After presenting itself as legitimate software it performs fake scan on your computer and shows fake results. Usually, Worm.Phorpiex.U spreads all over of your system and transfers copies of itself to other computers through all kind of tricky approaches without any consent. More seriously, Worm.Phorpiex.U also has the capability to make record of the keystrokes user type, so it can be called a serious threat to your financial data or other sensitive information. To prevent your computer from Worm.Phorpiex.U you must have to use Worm.Phorpiex.U removal tool. Powerful scanning algorithm of the software makes your computer safe and secure from malicious files and applications. Reimage Worm.Phorpiex.U removal tool offers you complete protection from worm, virus, malware or spyware infection.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900