Geeks With Blogs
Gaurav Taneja Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in. December 2008 Entries
To change the colour of TAB control
To change the color of Tab control Add this event handler DrawMode property to OwnerDrawFixed. Override the DrawItem event handler definition. tabControl2.DrawItem += new DrawItemEventHandler(OnDraw... step 2 private void OnDrawItem(object sender, DrawItemEventArgs e) { TabPage CurrentTab = tabControl2.TabPages[e.Index]; Rectangle ItemRect = tabControl2.GetTabRect(e.In... SolidBrush FillBrush = new SolidBrush(Color.Red); SolidBrush TextBrush = new SolidBrush(Color.White); StringFormat sf = new ......

Posted On Wednesday, December 10, 2008 11:34 PM

Creating a Dll(asembly dynamically) +
CREATING DLL DYNAMICALLY you need to complie this code Public Function CreateResourceAssembly() As Boolean Dim currentpageHashVal As Hashtable = New Hashtable() Dim intArrIndx As Integer Dim strTextVal As String Dim blnIsSuccess As Boolean Dim strAsmFileName As String = FetchTest.resources.dll Dim strPathAssmbly As String = strAppPath + FetchTest.resources.dll" Dim appdomain As AppDomain = Thread.GetDomain() Dim asmName As New AssemblyName() Dim strVersion As String = Nothing Dim strKey As String ......

Posted On Wednesday, December 10, 2008 11:32 PM

Reading Assembly into bytes +
Reading a dll into bytes Dim strPathAssmbly As String ="c:\abc.dll" Dim btByte() As Byte = File.ReadAllBytes(strPathAs... ......

Posted On Wednesday, December 10, 2008 11:25 PM

Displaying the controls of page
Diplaying the controls Public Sub DisplayControlName(ByVal oControl As Control, ByVal strPageName As String) Dim txtBox As TextBox Dim ddlLst As DropDownList Dim rdBtn As RadioButton Dim rdBtnLst As RadioButtonList Dim chkBx As CheckBoxList Dim chkBx1 As CheckBox Dim lblVal As System.Web.UI.WebControls.L... Dim htmTbl As System.Web.UI.HtmlControls.... Dim btnVal As System.Web.UI.WebControls.B... ' Checks for all the WebBased Control in the web page Select Case oControl.GetType.ToString 'Case ......

Posted On Wednesday, December 10, 2008 10:51 PM

Fecting Page controls Dynamically +
How to fetch Page controls of web form Dynamically in To Find the Page Controls in a Web Page Public Function FindPageControl(ByVal oControlCollection As ControlCollection, ByVal strPageName As String) As ArrayList ' Traverses all the controls in the page For Each oControl As Control In oControlCollection DisplayControlName(oControl, strPageName) FindPageControl(oControl.Co... strPageName) Next Return ArrayLst End Function How to call this function FindPageControl(Page.Controls, strPgName) ......

Posted On Wednesday, December 10, 2008 10:49 PM

Copyright © Gaurav Taneja | Powered by: