|
|
Try putting this in there. It's pretty flexible. The Cells index is zero based.
Private Sub MyDataGrid_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) Handles MyDataGrid.ItemDataBound
If e.Item.Cells(4).Text.ToString.Trim = "John Henry" Then
e.Item.Cells(4).BackColor = Color.Yellow
e.Item.Cells(4).ForeColor = Color.Blue
End If
End Sub
|
|
|
|
|
Hello,
Does anyone know how to format a particular column in Excel to an accounting style?
Here's my situation, I created a Excel accounting report in a VB.Net application, but I'm not sure how to format certain columns to the different styles for example, accounting or currency. How is this done in the VB code?
Thanks!
|
|
|
|
|
Hello Sir,
I wanna hide my vb application from the task manager. My application is in startup so when I restart the machine anybody can close it from task list before the OS is started. so it could not come on desk top any more.
Best regards
M urtuza Patel
|
|
|
|
|
Simple. You can't. Even the system processes show up in the TM...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I think no way to do that
I Believe I Can fly!~~~
|
|
|
|
|
Hello Sir,
I wanna hide my vb application from the task manager. My application is in startup so when I restart the machine anybody can close it from task list before the OS is started. so it could not come on desk top any more.
Best regards
M urtuza Patel
|
|
|
|
|
IIRC, you can't.
You could rewrite it as a Windows Service, but that still won't hide it from the Windows Task Manager, although it will appear in the Processes tab rather than the Applications tab. Also, a Windows Service can still be shut down by the user through the Task Manager (which is not recommended) or via the Services management console (in Administrative Tools-->Services).
Does this help?
To my mind it is also highly suspicious that there is a valid reason why a process absolutely must remain active and should never be shut down unless it is an integral part of the operating system.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
It is possible with the help of API but
with the perfect API u can hide the Apps from Task manager
but sorry i dont know the code...
But it is possible
|
|
|
|
|
I want to create a program that will intercept a file download, and compare it to a database of files i already have. I am not looking for someone to code this for me, just an idea of were to start. TIA!!!
|
|
|
|
|
What do you mean by "intercept"? If you are looking to do this inside of IE, you'll want to check out Browser Helper Objects (warning: Lots of COM Interop involved). You won't be able to see the actual download itself, but you'll be able to see the link that is clicked on and use that instead.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Do you mean that the file name that you already download is record into the database? In my opinion, when you click on the hyperlink in the browser just copy the URL in one variable. After you complete its download, you need to pass the string from variable to database. If you did not download complete, the variable is cleared, your database has no new record and next time you have to download it from the beginner again. If you download the same file then it will check the database to make sure that it might duplicate or not.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi
Now I try to work with C#. My application had to process an *.xml file through Excel COM. Cause of I use native Excel help for VBA : “VBAXL9.CHM” .But there is any troubles .When C# generate proxy for excel object it not consider about optional argument and cause of I should explicit pass this arguments every time in methods call. In many places into excel help referenced behavior of an methods with parameters by default (optional parameters which omit), but I don’t know what it are.
Where I can learn about definition of this defaults parameters????
|
|
|
|
|
You questions concerning C# would be better handled in the C# Forum.
C# doesn't support optional parameters so, you actually have to pass in a value called Type.Missing . See this[^] document on MSDN for some explanations.
This is not a problem in VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is there any way to add right click menu
(adding extra menu item to launch my app)
on mail. I hope this can be easily by
adding a key in the registry.
Van
|
|
|
|
|
What do you mean by "on mail"? Are you looking to add a shortcut to the Explorer Shell Context Menu, like WinZip does?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If your looking to do it inside Outlook, it's hardly easy. Now your looking at a big can of COM Interop.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Probably dead easy but new to this and just cant work it out.
I want my combobox to display the data from a particular column in an access database. Can somebody please explain how in nice easy steps.
I have a connection in the server explorer and can drag the field from their to the form to get the connection and dataadapter objects and have created the data set (data, generate..) but cant get the combo to display the info from the db.
Paul
|
|
|
|
|
I just give you some idea relate to your idea.
1. Connect to your database and write and SQL statement to select all the information from database. Move to last and go to first record (populate the recordset).
2. In the DropDown event of the combobox try to loop one by one record and add it item to the combobox.
Note: before the dropt down list appear clear all the information in the previous list.
Roath Kanel
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Does VB.Net support Multiple Inheritance?
|
|
|
|
|
No. But, you can multiply inherit interfaces.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
How do I add this to my code to use AdsDDCreate? Or do I need too?
UNSIGNED32 AdsDDCreate( UNSIGNED8 *pucDictionaryPath,
UNSIGNED16 usEncrypt,
UNSIGNED8 *pucDescription,
ADSHANDLE *phAdminConn ); I am trying to create a data dictionary using an Advantage Client Engine in VB.net with ASP.net.
Then I am going to use
AdsDDCreate( "n:\\MyData\\myData.ADD", 0, "Database describtion", &hDD ); Thanks
Beginner in VB.Net and ASP.Net
|
|
|
|
|
<asp:datagrid id="dgCons" runat="server" Height="196px" Width="259px" Font-Size="10pt" BackColor="White" BorderWidth="1px" BorderStyle="None" CellPadding="4" BorderColor="#3366CC">
<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999">
</SelectedItemStyle>
<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
<HeaderStyle Font-Size="Smaller" Font-Bold="True" ForeColor="Navy" BackColor="InactiveCaptionText">
</HeaderStyle>
<FooterStyle ForeColor="#003399" BackColor="#99CCCC">
</FooterStyle>
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox id="chkUse" runat="server">
</asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle BorderWidth="1px" BorderColor="White" HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages">
</PagerStyle>
</asp:datagrid>
|
|
|
|
|
It would help if you explained what happened, and what was supposed to happen.
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Sorry, I was meaning to cancel this one out. It was reffering to the thread below. It's taken care of now. Thanks.
|
|
|
|