Topics
-
- 1 reply
- 828 views
Hi, I have the following javascript code that allows me to set the focus on a particular control as the page loads. The problem is if I click on one of the textboxes in the page, the focus switches to another control. The question is how do i maintain the focus on the original control all the time? Private Sub SetFocus(ByVal ctrl As Control) ' Define the JavaScript function for the specified control. Dim focusScript As String = "<script language='javascript'>" & _ "document.getElementById('" + ctrl.ClientID & _ "').focu…
Last reply by mike55, -
-
- Administrators
- 7 replies
- 11.1k views
Hi all, Is it possible for a windows service to call a web service? Have successfully added a web reference to the web service and I am running the windows service, but it seems to be having no effect. Any suggestions? Mike55.
Last reply by mike55, -
-
- 1 reply
- 2.1k views
Hi!, I'm trying to render a rectangle with a transparent color. I made a vertexbuffer like this: CustomVertex.TransformedColored[] pVerts = new CustomVertex.TransformedColored[4]; //590; 494 GraphicsStream pStream = m_pVertex.Lock(0,0,0); pVerts[0].Position = new Vector4(Position.X+Size.Width,Position.Y,Position.Z,1.0f); pVerts[1].Position = new Vector4(Position.X+Size.Width,Position.Y+Size.Height,Position.Z,1.0f); pVerts[2].Position =new Vector4(Position.X,Position.Y+Size.Height,Position.Z,1.0f); pVerts[3].Position =new Vector4(Position.X,Position.Y,Position.Z,1.0f); pVerts[0].Color = BackColor.ToArgb(); pVerts[1].Color = BackColor.ToArgb(); pVe…
Last reply by DrunkenHyena, -
- 2 replies
- 1.8k views
Hi Guys, Im just not sure how to do this..Dont know its simple or tough.. I want to place an image (banner) at top of the login page, and the length should be equal to the page size..I cant seem to get it done.. So i place using the <asp:image> tag. and i specify a certain height and width.. I want the width to cover the whole page length actually, but not sure how.. Currently if i put with 1800px, and view the page using smaller resolution, i see scrollbar.. So, how do i make the image fit on the page exactly as the resolution user is using so that i dont need any scrollbar and can cover the full width of the page? Thank You
Last reply by a1jit, -
- 0 replies
- 1.9k views
I have a page with several dynaically created System.Web.UI.WebControls.CheckBoxList controls created at page load. I have added a handler meant for when an item is selected/unselected as such: AddHandler chklst.SelectedIndexChanged, AddressOf filterchange All works well when I select an item, but it doesn't appear that the handler (filterchange) is called when an item is unselected - the page does reaload, but doesn't ever enter the filterchange handler? Any ideas? Randal
Last reply by rmatthew, -
- 0 replies
- 723 views
Hi all, I created two datatables in memory with the schema of the database tables, (they're empty they're just with the same schema) and after i fill theses datatables i wanna put the data back to the database how can I make this in a simple, easy and performant way?. I could get the tables from the database and add the rows and after invoke the accepChanges() method but i don't want get the stored records to make it faster. I could have also my InsertCommand and put the data in the tables on the database but adding the rows directly to the datatables i think it's more easy and faster. Any ideas of good practices about this? Thanks very much, Teixeira
Last reply by teixeira, -
- 1 reply
- 757 views
I have a doubt here. Recently I have updated my VS2003 with Crystal Report HotFix. And This hotfix have solved the bug in the embedded Crystal Report. However, this Hotfix is only solved the problem in my developement PC. Means when I delopy the application to client computers, the problem is not fixed. Means the bug is still there. I tried to run the Hotfix in the client computer, but, it works the sames. The bug still there. Any suggestion on how to deploy the hotfix direct with my Setup File?
Last reply by georgepatotk, -
-
- Administrators
- 1 reply
- 1.8k views
I am using a third party piece of software called FlyGrid, which is a piece of software that provides a more advanced grid control. The only problem I have is that I want to create a custom combobox, which context is from an arraylist or arraystring. According to the flygrid development team I need to create a UITypeEditor, what they said is below: The problem is that I do not know how to create the UITypeEditor code, and I have been trying to do this for a couple of days, with no joy :( Is it possible for someone to help me out and give me an example (VB.NET please) as this would be very helpfull. Thanks Simon
Last reply by PlausiblyDamp, -
-
- 1 reply
- 738 views
:-\ I have the following with an ado.net routine called. Public Sub DoModify() Dim bm As BindingManagerBase = Me.DataGrid1.BindingContext(Me.DataGrid1.DataSource, Me.DataGrid1.DataMember) Dim dr As DataRow = CType(bm.Current, DataRowView).Row Dim editform As New EditTransOverride(dr) oldPolicyNumber = dr.Item(1) oldTransCode = dr.Item(2) oldTransEffDate = dr.Item(3) Dim retval As DialogResult = editform.ShowDialog() If retval = DialogResult.OK Then bm.EndCurrentEdit() Try Dim substr As String = dr.Item(4) If substr Is System.DBNull.Value Then …
Last reply by georgepatotk, -
-
- Leaders
- 3 replies
- 2.4k views
I am trying to expose subs and functions from a DLL written in VB.net to COM to be used by a PointOfSale system that uses COM. Anyone have any ideas? My dll is already strongly named using the SN.exe tool. Any help would be appreciated. Thank you.
Last reply by 95se5m, -
-
- 0 replies
- 853 views
I have no code that is explicitly do anything weird, does anyone know why it would be called twice (only when redirecting or transferring to another page - otherwise only gets called once as expected).
Last reply by bri189a, -
- 1 reply
- 784 views
im designing a form to allow me to enter an unlimited number of records into a table. the number of records will never be more than 10 or so but it would suit the design better if i could enter as many as i wanted. heres the details: i have a customer table. a customer can have 1 or many visits to a resort. i want to come up with a solution to allow me to create a form to input all a customers visits. i dont want to limit myself by using text boxes as then im limited to the number of visits i can enter by how many text boxes i have. i suppose i could use a datagrid but what i want to know is can i have a button on a form that adds a row to a datagrid as i need it…
Last reply by georgepatotk, -
-
- Administrators
- 4 replies
- 820 views
This app I'm working on seems to just have a huge footprint and GC doesn't seem to do it's job properly: Most pages aren't too big, but there are some that have a datagrid in it with 100+ columns and 1000+ rows (should the user choose those options); so granted, it should take a lot of memory to render all of that, but it can peak up to around 300MB with a single user - which just seems insane. GC will come along and drop it to 140M at best on it's on. If I explicitly GC on the end of every page (regardless of the page) my footprint can drop down to 80M at best and never gets over 220M between postback and render (before I explicitly call GC). Something seems very…
Last reply by bri189a, -
-
- 0 replies
- 865 views
something very odd... I have installed visual studio 2005 on my machine. I created a console application with visual basic 2005. I typed something in. tried to delete.. but i couldn't :confused: I can't use enter, delete or tab for some odd reason.... this works perfectly fine with visual studio 6 and visual studio.net 2003 on the same machine :confused: what is this?
Last reply by inter, -
- 5 replies
- 1.2k views
i am having a DATE field and a TIME field. For comparison purposes, i need to combine DATE and TIME into DATETIME. Can anyone show me how? thanks. I want something like SELECT RCDATE & RCTIME FROM tblRC where RCDATE & RCTIME equavalant to DATE field and TIME field.
Last reply by georgepatotk, -
-
- Administrators
- 6 replies
- 2.1k views
I know how to save settings to the registry, but what I want do is save it to a location based on the name my programs name. So if I have more than two instancies running pro1.exe and pro2.exe the settings would be saved to pro1 and pro2 so there wouldn't be any conflicts. I know it is a lame question but the thoughs I have come up with have two many holes. Thanks for any thought you may have. Zeroeffect
Last reply by georgepatotk, -
-
-
- Administrators
- 2 replies
- 691 views
Hi, I defined a png picture to background for my form. The pictures comes from resources. When I compile, the background doesn't change ! I don't understand why. Is back color parameter must be modified ? Thanks for the help. Pascal T. OS : XP PRO VB.net Beta 2
Last reply by Cags, -
-
-
- Administrators
- 6 replies
- 615 views
Hi everyone, its been a long time since I've posted, but here goes. I've been recently working on an application and I've hit abit of a snag. I seem to be hitting some sort of a problem which appears to be something todo with references. If I create 2 blank arrays and then set them both equal to a third array, any changes I make to any of the arrays reflects in the others. int[] a = new int[4]; int[] b = new int[4]; int[] c = new int[] { 1,2,3,4 }; a = c; b = c; b[0] = 2; After running this section of code its obvious that a[0], b[0] and c[0] are now all equal to 2. This obviously means that by assigning the values equal I have created some kind of refe…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.7k views
I have the following procedure SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO /* ------------------------------------------------------------ PROCEDURE: dbo.prc_TransOverride_upd Description: Updates a record In table 'dbo.prc_TransOverride_upd' ------------------------------------------------------------ */ CREATE PROCEDURE dbo.prc_TransOverride_upd ( @Policy_Nbr varchar(7), @Trans_CodeOrig varchar(6), @Trans_Eff_Date datetime, @Override_Code varchar(2), @NR_CodeOvr varchar(1), @Trans_CodeOvr varchar(6), @CreatedDate datetime, @CreatedUID nvarchar(48), @ModifiedDate datetime, @ModifiedUID nvarchar(48), @Plan_Year int ) …
Last reply by macupryk, -
- 0 replies
- 901 views
So I read some great aritcles on MSDN about garbage collection - have a better understanding now and I went to do some expierments. I was always under the impression that ASPNET_WP calls dispose on the code behind Page class and being a naming container it would dispose all of it's children. I did some Debug.WriteLine in the Dispose event and it's never called. It's no wonder in my other post that memory increases expedentially. Is this by design? I don't understand why it would do this. I guess maybe it could be on a differant thread, but would that keep the Debug.WriteLine from being visible??? I'm confused, what I though I knew I don't, maybe I'm over thin…
Last reply by bri189a,
-
Who's Online 0 Members, 0 Anonymous, 55 Guests (See full list)
- There are no registered users currently online