Topics
-
-
- Leaders
- 7 replies
- 1k views
I have created a class which stores information which will be displayed within a listview. A timer calls a procedure that refreshes the listview from this class, unfortunately this creates a flickering effect. 'IntegerA POSSIBLY changed IF IntegerA <> IntegerB THEN 'refresh listview IntegerB = IntegerA END IF The above example would only refresh if IntegerA HAD changed. Could someone please explain how can i do something similar to this with classes please? Thanks
Last reply by IngisKahn, -
-
-
- Administrators
- 1 reply
- 2.3k views
if i have something like this: foreach(object o in objects) { foreach(object p in objects1) { break; } } will the break break out of both loops or just the inside one?
Last reply by PlausiblyDamp, -
-
- 1 reply
- 856 views
I recently had to reinstall Visual Studio 2003 and now when I first open a project the pretty listing (auto formatting code) works fine but as soon as I run the project it turns off and there is no way to turn it back on without closing the project and opeing it again. Does anyone know of a fix? Thanks, OnTheAnvil
Last reply by mskeel, -
- 1 reply
- 1.3k views
I'd like to create a property which can only have a few flags. Dim _stat As Integer Enum status As Integer DefaultStatus = 0 NotConnected = 1 Running = 2 Stopped = 3 Paused = 4 End Enum Private Property ChangeStatus() As Integer Get Return _stat End Get Set(ByVal ValueAs Integer) _stat = Value End Set End Property How can I achieve that you can only change to predefined status values? tx matej
Last reply by mskeel, -
- 0 replies
- 1.4k views
EDIT... Nevermind i got it by using the following protected void itemDataBound(object sender, DataGridItemEventArgs e) { InspectorsIdentity identity = (InspectorsIdentity) Context.User.Identity; if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { ((Label)e.Item.Cells[0].FindControl("lblJobHoldID")).Visible=false; ((HyperLink)e.Item.Cells[0].FindControl("Hyperlink1")).Visible=false; } }
Last reply by reagan123, -
- 2 replies
- 1.5k views
i have looked at operator overloading, and can find out how to overload everything except the = operator. i have my own vector class, which has an x and a y co ordinate. rather than going v1.x = v2.x; v1.y = v2.y; id rather be able to do this: v1 = v2; any ideas?
Last reply by mskeel, -
- 3 replies
- 813 views
I'm using the BeginInoke to return a sqldatareader from a secondary thread back to the ui. it is working great.. unless the database I'm trying to connect to is offline or the server isn't availble. So I was going to wrap the BeginInvoke in a try and catch.. however try BeginInvoke(callit) catch ex as exception debug... end try the catch doesn't catch the exception.. what do I need to put in there so the program doesn't bomb out.. I'd like to put a nice message out to the debug.writeline for my development cycle.. thanks shannon
Last reply by jvcoach23, -
-
- Leaders
- 4 replies
- 1.6k views
i have an app that draws a lot to the screen. each time the paint() method is triggered, a load of mathsy stuff is done, and everything is redrawn to the screen. this is playing havoc with the processor, and the animation is kind of slow as the redraw takes so long, are there any commands in .NET, using c# where i can keep the processor for one task and deligate other computations to the math co-processor or the Graphics card( it being a graphics app?)
Last reply by Talyrond, -
-
-
- Moderators
- 5 replies
- 1.3k views
Hi, In ASP.NET (c#) I need to refresh another page after inserting some data in one page. These are not parent/child pages. I have to pages, say, one main, the other depends on it. In second page there is an image control, which must change depending on the data of the first page. how to make the second page refresh on button event(press)?
Last reply by exceter, -
-
- 7 replies
- 1.6k views
Is there anyway that I can check to see if acrobat reader is installed on a machine and if it is, automatically lauch acrobat reader to diaplay a given file. If anyone can assist I am writing my app. in vb.net. Thanks Simon
Last reply by SonicBoomAu, -
- 0 replies
- 3.4k views
I am attempting to teach myself DC's, these from what I understand can be anything from a window to a printer, monitor, etc. As an experiment to try and learn it, I want to grab the background image or color of the desktop and change it to some random color or colors. This is what I was thnking: PseudoCode Start Grab hWnd Grab DC CreateBitmap Toggle Bitmap Colors? Write Bitmap to DC using BitBlt? Release DC End [/Code] Does that look like it'll work? I haven't used bitmaps before either, so hopefully it'll be a good learning tool. I am using Unmanaged C++.
Last reply by coldfusion244, -
- 0 replies
- 798 views
Hi all, I am having a problem with a databound combobox in that when I save the record (ie, end current edit,update the database and accept the changes) the combobox resets its value back to the first object in the list. Anyone else experienced this problem before? My code for saving goes something like this. 'MsgBox("Record Saved") 'Create a new dataset to hold the changes that have been made to the main dataset. Dim objDataSetChanges As Buckner_Intranet.dsNCR = New Buckner_Intranet.dsNCR 'Stop any current edits. Me.BindingContext(DsNCR1, "NCR").EndCurrentEdit() Me.BindingContext(Me.DsNCR1, "Responses").EndCurren…
Last reply by kutz, -
- 7 replies
- 2k views
I�m looking for some code snippets on how to identify and change the value of a text box within a webpage in VB.NET and Internet Explorer. I�m using the axWebBrowser control on my form to display the web page and then do a directcast of my axWebBrowser to get my HTML doc. Dim doc As mshtml.HTMLDocument = DirectCast(Me.AxWebBrowser1.Document, mshtml.HTMLDocument) If I navigate to a web page, let�s take http://www.yahoo.com for example, how can I determine how the search text box is referenced and how I could send keystrokes to that search text box in my axWebBrowser control? Any thoughts on this would be appreciated Thanks in advance Ben
Last reply by Mister E, -
- 2 replies
- 2.5k views
Friends, Is there any way I can check if a certain computer (connecting to a network) is getting blocked by a firewall. I have remoted my project and am trying to run my UI App on one machine and a remote business server on another. Now, I have also implemented a Web service that provides the same function but is for clients outside of our network. I would like to have a check where I could identify if there is a firewall. If so, switch my application to connect to the Web service rather than the remote server. I dont know if Im making sense here, but it'd be good to know if we could have a utility that checks for firewall presence. Thanks, DTM
Last reply by dotnetman, -
- 6 replies
- 832 views
Just wondering if it's possible to use Visual Studio.Net to create ASP.Net web applications without having your own web server installed. For example if you run WinXP Home and have a Windows hosting account somewhere on the internet how can you create a web app and build it ready to be simply uploaded to the Windows web hosting account via FTP? MS VS.Net seems to require that you have a web server running to create an ASP.Net project. Any ideas?? As a small second question could someone confirm that Visual Basic.Net standard includes everything you would need to build ASP.Net apps and that purchasing VS.Net professional doesn't really add anything unless you want to…
Last reply by mark007, -
- 0 replies
- 1.7k views
:confused: I have a bar chart that is created dynamicly and works fine, but I would like for the value of each row to be display somewhere on the chart. It could be at the top, or below the row lable or on the bar itself. This is called "Data Label Value" in Excel. I'm not sure how to do this if VB. Anyone have any suggestons.
Last reply by ezeason, -
-
- Administrators
- 5 replies
- 7.4k views
Does anyone have the GetOpenFilename API code for opening custom dialog boxes (in particular with the ability to save the Views - Thumbnails, Tiles, Icons) in VB.Net, that actually works? I've found code in C++ that I don't understand, in CE.Net that doesn't translate, I've found VB6 code and Access code that works but I have not been able to translate successfully yet. MSDN doesn't seem to have any examples in VB.Net, I've searched Google, this forum, and others. Occasionally I see someone who can't get multiple file selection or some aspect of it to work, but there's never any code along with it. Please help! VB.Net!!! Thanks, Larry
Last reply by LianaEnt, -
-
- 1 reply
- 1.2k views
i can search the active directory to find the groups and i can search users and find out of what groups he's a member. But now i have to find a group, and find out what groups he's a member of, but i don't know where to start.... anybody who has an idea? thxs in advance
Last reply by Mister E, -
-
- Administrators
- 2 replies
- 1.4k views
hello, i want to do what the picture shows... i want to be able to put info in my function... how can i do it? (C# or vb.net its the same to me) thanks for any help...
Last reply by Rothariger, -
-
-
- Administrators
- 1 reply
- 789 views
hello i wish to know how to connect Oracle with VB.Net if VB.Net is using this coding Dim MyConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/MyDB.mdb") How would oracle looks like? This is my first time connecting using oracle or MS_SQL kindly help or guide me please Thank you in advance
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 102 Guests (See full list)
- There are no registered users currently online