Topics
-
-
- Leaders
- 8 replies
- 1.1k views
I have a string that represents a part number. The part number is always a 5 or 6 digit number, such as "35292" or "105468". Optionally, the 5 digit part numbers could have a suffix such as "37023-BF". I am trying to find a way to get just the numerical portion of the part number string whether it is 5 or 6 digits & has a suffix or not. The first character of the suffix will always be a dash ("-"), if that helps any. I have tried the parse & convert methods but they error out on the strings with suffixes. Can anyone provide me with a solution to this problem? Thanks...
Last reply by snarfblam, -
-
- 2 replies
- 996 views
I've always had to do this differently in every version of VB. So could someone please tell me what's the best practice in switching between two forms in the same application now in VB 2005? I tried the following, but the program crashes if I close one of the forms by clicking the red cross on the form's top right corner and then try to switch again. 'Switching to form2 from form1 Form2.Show() Form2.Select() 'Switching to form1 from form2 Form1.Show() Form1.Select() Could it be possible to cancel during unloading and hide the form instead?
Last reply by Nate Bross, -
- 3 replies
- 972 views
hi, i have some problems with my msde/sql express database located on an inet server (p4 2,4ghz, 1024mb ram, 100mbit broadband connection). i have about 10 clients out there which connect every 15 minutes do the db to do some processing...mostly performing select commands which seems to run fine! i have one admin tool to fill the db with records here at my office and sometimes when i am performing an update or insert command it just timeouts...i then have no chance to edit records! just a few records seem to be blocked, because some work like always!! sometimes after a few minutes everthing is ok again...sometimes it takes hours what is causing this? pleas he…
Last reply by natarius, -
- 3 replies
- 1.6k views
Let say that I have a Hashtable ht = new Hashtable() My hashtable consist of a key and a value. The value is a Queue. Everytime a command is being saved for this key the queue will be increased. Until a command has been executed and it will there after be decreased. Since I can only add a key to the Hashtable once, how do I then solve this problem ?
Last reply by Joe Mamma, -
- 1 reply
- 2.1k views
Has anyoen got any ideas how to avoid flickering when u resize a form and the listview is anchored and resized, causing it to flicker, ive tried extending hte listview and turning double buffer on doesnt work. I'm trying to find a way for it to not paint on resize, basically ive tried calling BeginUpdate on the form resize event, but i have no idea how to figure out when the user has finished resizing, so that i can call end update any ideas? thanks
Last reply by Panason1, -
-
- Leaders
- 2 replies
- 2.2k views
I am trying to test for a collision from a rectangle to a circle and I need to calculate the closest point on a rectangle to a point any ideas? Public Shared Function HasCollisionOccured(ByVal Object1Pos As Vector2, ByVal Object2Pos As Vector2, ByVal Object1Radius As Single, ByVal Object2Size As Size) As Boolean HasCollisionOccured = False Dim Gap, distance, difX, DifY As Single difX = Object1Pos.X - Object2Pos.X DifY = Object1Pos.Y - Object2Pos.Y Dim angle As Single = Math.Atan2(Object2Pos.X - Object1Pos.X, Object2Pos.Y - Object1Pos.Y) MISSING CODE Dim Object2Radius As Single Dim x,…
Last reply by JumpyNET, -
-
- 1 reply
- 1.4k views
How can I swap between flow and grid layout in .net 2005. From what I can see and what I have experienced, it seems that the only option available for web applications is Flow layout. Mike55.
Last reply by bri189a, -
- 1 reply
- 1.2k views
Is there a way to add a confirmation pop-up (maybe js) on an editable datagrid? I have a datagrid that allows users to edit a field. When they click the save button in the editbuttoncolumn I would like a confirmation message to pop up so that they can reverse course if they wish. But I can't get a handle on that save button because it isn't generated in the beginning to add script to it. Is this possible?
Last reply by bri189a, -
- 0 replies
- 791 views
Know this is out of the realm of the forums but I'm sure there a plenty of sould here who have experiance (since all of us professionals usually have some sort of testing software we have to use) and I need some help. It's on Mercury Test Director 8.0. I'm looking for message boards such as this, etc. Respond here or pm me. Thanks.
Last reply by bri189a, -
- 1 reply
- 1.6k views
Hi. I'd like to download file from internet. I'd like to download specific picture. I have a lot of problems, becouse file doesnt get downloaded each time. I'm using this procedure and in 5 of 10 shots it fails. please help 'download image Try My.Computer.Network.DownloadFile(urlPath, myFile, "", "", False, 10000000, True) sql.Insert_Log(clsSQLfunctions.ErrorTypes.Importance4, 1, "Downloaded: ", urlPath) Img = Image.FromFile(myFile) DownloadImage = True Catch ex As Exception DownloadImage = False sql.Insert_Log(clsSQLfunctions.ErrorTypes.Importance1, 1, "Error: Can't dow…
Last reply by OMID SOFT, -
- 10 replies
- 5.9k views
I've been able to get an item and one of it's subitems from a listview and copy it to another listview. However I have more than one subitem I want to copy. Here's what I have so far Dim RightDate As String RightDate = lvwLeftList.Items(I).SubItems(1).Text lvwRightList.Items.Add(SelItem).SubItems.Add(RightDate) Anyone know how to get the additional subitems?
Last reply by Cags, -
- 4 replies
- 4.2k views
I found this article on MySQL written by Mike Hillyer; http://dev.mysql.com/tech-resources/articles/vb-blob-handling.html Under the topic "Connection Object" Mike states: This article is discussing VB6; I interperet this to mean ALL objects instanciated in the declaration will feel this performance hit. But I'm curious, does anyone know if this has been fixed in VB.Net, and if so, is it all versions or only after certain years, such as fixed in 2003 but not 2002?
Last reply by alreadyused, -
- 5 replies
- 2.2k views
Hello All, I am getting the standard "Object variable or With block variable not set" error on the following code. I have a repeater with some textboxes that I'm trying to collect the input from in an event handler triggered by a button outside the repeater control. Am I missing a step somewhere? Protected Sub addCart_Click(ByVal sender As Object, ByVal e As EventArgs) ' If add to cart button is pressed, check all qty boxes for quantities objCartDT = Session("Ordering_Cart") Dim i As Integer = 0 For i = 0 To itemRepeater.Items.Count - 1 Dim dataItem As RepeaterItem = itemRepeater.Items(i) ' Validate non-emp…
Last reply by FastPlymouth, -
- 0 replies
- 1.2k views
Especially for someone who has already learnt basic C++ (not, no at the beginner level, and not a Guru either.) The only VC++ I ever did is some opengl programming back in collage days and no more. Any recommendation(code must work in VC.NET 2005) Thanks in advance! :)
Last reply by Worrow, -
- 1 reply
- 646 views
In the 2003 code I have the following: oReader = oFile.OpenText(myFile) where oReader is a System.IO.StreamReader and myFile us a string refering to a temporary file location. With the 2005 environment, I am getting the following error: "Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated". Any suggestions? Mike55.
Last reply by mskeel, -
- 4 replies
- 1k views
I have two listviews. lvwA and lvwB. I'd like to search lvwB for the existence of the same item in lvwA. I'm not sure how to go about it. Any help? Thanks.
Last reply by bjwade62, -
- 1 reply
- 1.4k views
I've got a datagrid with a EditCommandColumn. For certain rows I may need to disable or hide the Edit button. How can this be done? Thanks!
Last reply by rangerstud620, -
- 3 replies
- 1.5k views
Hi can anyone tell me how i can determine during runtime whether the User is copying or deleting? Situation is that i have a filewatcher and a timer class which both check a certain directory (my Docs in my case) for its size. So while the size is smaller than a certain value (determined in the registry), it should only check for new incoming files and if there is a change in directory size it should get the size of the whole directory and compair it to that value. If the size is bigger that value, it should check every X seconds (value again determined in registry) if the size is still to big and give out a warning. Problem is: When i'm deleting files while t…
Last reply by Asharon, -
-
- Administrators
- 2 replies
- 2.9k views
Hai, I placed the scrip from web page Custom Control - KeySortDropDownList) to my project ContactSearch.ascx.cs Sours: 1. namespace vestinside.Controls 2. { 3. using System; 4. using System.Data; 5. using System.Drawing; 6. using System.Web; 7. using System.Web.UI.WebControls; 8. using System.Web.UI.HtmlControls; 9. using vestinside.DB; 10. using vestinside.Library; 11. 12.namespace Thycotic.Web.UI.WebControls 13.{ 14.public class KeySortDropDownList : DropDownList 15.{ 16...... After compiling I got the following error: O:\localhost\Controls\ContactSearch.ascx.cs(12): Cannot use qualified namespace names in nested namespace declarations Proj…
Last reply by Rea, -
-
- 4 replies
- 3.2k views
Alright here is my dilemma. This project I am working on is for school. Right now I have a managed Direct3D application (using their Framework) with the CustomUI's interface. What I need to do is when a button is clicked, clear the screen then play a AVI in the window. As we all know DirectShow is a piece of crap. I would like to use the AudioVideoPlayBack, but that seems to only work in Windows.Forms. If possible I don't want to have to use forms. I saw a bit of information on rendering it with a texture, but from what I see that code is pretty broken and a pain the *** to use. So I am in the position where I am not sure where to head. An idea would be if I coul…
Last reply by Something Sexy,
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online