Topics
-
- 0 replies
- 2k views
In our application we have created a page where we use a gridview to show a long list of database records the user can select from. When the user selects one, the ID of the record is stored in a session (as we operate in a closed, controlled environment, we can assure the availability of cookies). Now, when the user leaves the page and returns later on, we need to preselect the row with the dataitem presenting the ID we stored in our session. This might be such an obvious thing, but we were not able to replicate such behavior. Thnak you in advance!
Last reply by namxam, -
-
- Administrators
- Leaders
- 5 replies
- 719 views
What does the "Throws" statement do? The VB help file is typically unhelpful saying: "The Throw statement throws an exception that you can handle with structured exception-handling code (Try...Catch...Finally) or unstructured exception-handling code (On Error GoTo). You can use the Throw statement to trap errors within your code because Visual Basic moves up the call stack until it finds the appropriate exception-handling code." OK, so I know where the "Throws" statement is used, but there is no explanation as to what throwing an exception is or does. What are the practical consequences of throwing an exception? What does it mean?
Last reply by rbulph, -
-
- 2 replies
- 1.1k views
hello, i'm using vs express. since i worked with java the past two years i don't really want to miss the power of testdriven development and a goot build tool. i was happy to find nant and nunit. the latter having test runners for visual studio. however the development seemed to have stopped in 2004? does anyone use nant and nunit with visual studio (express) 2005? if so - what version do you use and do you have any tutorials on hand? thx p.s. i want to use nant since i have a distributed build process. edit: i'm looking for a free tool. i found this for unit testing but it's not free: http://www.mailframe.net/Products/testrunner/Default.aspx
Last reply by Malfunction, -
- 0 replies
- 1.5k views
hello, i'm using visual studio express which doesn't contain the CAB Project template. is it possible to download the template from ms or is it just available with the regular ide? i searched on msdn but didn't find any information. thx
Last reply by Malfunction, -
- 1 reply
- 2.1k views
Hi, I have a date parameter on my report, but I can't pass it from VB2005 Here's my code: Dim Param As CrystalDecisions.Shared.ParameterField Dim myDiscreteValue As New CrystalDecisions.Shared.ParameterDiscreteValue Param = crViewer.ParameterFieldInfo("pDate") myDiscreteValue.Value = dateParam.dtSelect.Value.Date Param.CurrentValues.Add(myDiscreteValue) This didn't work. The date parameter in my report screwed up. Can someone give me solution? Also, how can I pass parameter that have multiple values ? Thanks in advance.
Last reply by michaelrawi, -
Track .exe
by bjay55-
- Administrators
- 2 replies
- 1.2k views
I was wondering if there was a way to track what files or registries a excutable file accesses while it is running. Thank You for any help.
Last reply by bjay55, -
-
-
- Administrators
- 1 reply
- 1.1k views
Could someone please help me with a problem I have. Is there a way using SQL that I can select the previous and next record in a table whilst specifying a specific ID value. E.g. If I currently have a record ID of 19 and I want to know the previous and next ID value from ID 19. Obviously I can not just add or minus 1 from 19 as there could be instances where ID 18 or 20 have been deleted, therefore I need the SQL syntax to jump to the next and previous record. If we use an example of the table as shown below: ID firstname lastname 17 simon liddicott 19 john smith 28 tim smith Therefore I would pass record ID valu…
Last reply by PlausiblyDamp, -
-
-
- *Experts*
- Leaders
- 4 replies
- 1.2k views
I was recently browsing through a book on C# 2.0 and came across an example of using a for loop to create an infinite loop. I'm not sure why you'd want to, incidently neither was the book, it just listed it incase you came across it. But has anyone ever come across this syntax. for(;;) { // do something // obviously you'd want to check for an exit clause } // just for clarification purposes c# evaluates all the statements as true, // thus producing the same outcome as this while(true) { // do something // obviously you'd want to check for an exit clause }[edit]I used the code tags because the cs tags couldn't cope the for statement (it tried to load a pictur…
Last reply by mskeel, -
-
- 1 reply
- 655 views
How do I extract the filename, its path, last modified file time as well as its name of the classes n method from a source code file. I need to extract it and then place it in a xml or html file format n display it as documentation. Please reply Thanks
Last reply by mskeel, -
VB6 to .Net
by Jay1b- 1 reply
- 2.6k views
Hi I'm trying to convert a VB6 project to .Net. This worked to some extent, however it didnt convert winsock to sockets. I've tried rewriting the sockets side of things, but i have no experience in this area. Private Sub btnMyCode_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMyCode.Click Dim strMessage As String = "" Dim strEsc As String = Chr(&H1BS) 'Holds Escape ASCII Character sHeader = Chr(&H99S) sNumMessage = Chr(&H1S) sNumDestination = Chr(&H1S) sNumSigns = Chr(&H1S) sMessHigh = Chr(0) Call writedebug("Trying to Connect..." + sMessLow + "...") …
Last reply by Jay1b, -
- 2 replies
- 1k views
Hi all, I know that one should always try to avoid frames, but in this case I'm just curious. I've got 2 frames: frame1, frame2. Frame1 has a button. When this button is clicked I want to show the page test.aspx inside frame2. How can I do this? Thanks, Theo
Last reply by Theo, -
- 0 replies
- 2.7k views
Hi all, I want to resize a listbox using JavaScript. I want to check the current resolution of a user and then take appropriate measures. This is what I have so far: function CheckResolution() { if (screen.availWidth == '1024') { document.forms[0].lbTest.Height = 200px; } else { document.forms[0].lbTest.Height = 400px; } } But nothing happends. Can someone help me with this? Thanks, Theo
Last reply by Theo, -
-
- Leaders
- 0 replies
- 909 views
After much effort and time, I've gotten the collection editor to properly work with a collection property (Items) on a control I've written. The only problem I am having now is that when I delete the control in the designer, the components that were assigned to the Items property are not being deleted with the control. For instance, if you create a TabControl and add multiple TabPage components to the TabPages property, then delete the TabControl, the TabPage components disappear with it. When I delete my control, the items are not deleted. They remain in the designer generated code and in the drop down list at the top of the property grid. Some declarations: // …
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 1.3k views
Hello, Ive build a program with some crystalreports in it. If i install it on a 'clean' windows machine, i'll get some errors running the normal program (install works fine!). The program stuck on the place i wanne print a crystalreport. I'll get the print properties. Then the crystal report should be filled but that doesn't work. :( Some experts know what the problem is?
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 6 replies
- 1k views
Hello My program is completed. So i build a install file. But i need 1 more file. The ini file i've generated. The program needs it. But it's gone!? I've searched all disks and can't find something... But the program can open it :S . Maybe you can help me. This is the code: IniFile ini = new IniFile("JTBilling.ini"); ini.IniWriteValue("Info","Database",database.Text); ini.IniWriteValue("Info","LastName",textBox2.Text); Where should Microsoft visual studio save it like this??? If i made it like: IniFile ini = new IniFile("c:\test.ini"); Then i cant find it in de the root of "C:\"
Last reply by Jelmer, -
-
-
- Administrators
- Leaders
- 3 replies
- 2.9k views
Whenever I open the Random Thoughts thread, the "Do you program for hobby, work, or both?" thread is always marked as having new posts. Oddly if I go up a level, Random Thoughts isn't marked as having new posts. Has anybody got any idea why this thread always looks like this, even if I open the thread and then go back up a level its still marked as having new posts. Is it perhaps something todo with the Poll?
Last reply by Cags, -
-
- 2 replies
- 6.8k views
Well, i figured out how to convert a bitmap into a byte array. I use this to save signatures from a pocket pc emulator. How would I convert the byte array back to a bitmap to display what i had previously saved. I found something like this on the internet: Dim BackGroundImage As Bitmap Dim ImageFileName As String = "path" BackGroundImage = New Bitmap(ImageFileName) GraphicsHandle = Graphics.FromImage(BackGroundImage) but that doesn't seem to be working. i get an "Exception" error on BackGroundImage = New bitmap(imagefilename) Any thoughts??
Last reply by jayy66, -
-
- *Experts*
- 1 reply
- 1.1k views
hi, Wonder if anyone can point me in the right direction...(VB.net 2005) Im trying to send data from formB to FormA's sendstuff sub... but getting and error on -> sw.Write(sdata & vbCr) Object reference not set to an instance of an object. And something about using "New"??? "Use the New keyword to create the instance" Its probably something basic, but after days of searching im now blind as to what im looking for :s Any help is much appreciated :) Jai parts from FormA: Imports System.Net.Sockets Public Class FormA Public tcp As TcpClient Dim netstream As NetworkStream Dim sr As IO.StreamReader Dim sw As IO.StreamWriter Di…
Last reply by mutant, -
-
-
- Administrators
- 5 replies
- 869 views
Three questions about building projects which I haven't been able to find the answers to: 1. What's the difference between Build and Rebuild? 2. What does "Clean" do? 3. What's the reason for having a "bin" and an "obj" file within a project folder? They seem rather duplicative. Thanks.
Last reply by Malfunction, -
-
-
- Administrators
- 2 replies
- 1.5k views
Hi, I want to create a component that inherits a label and have it's own autosize in width (because it's use an image and a text). My question is, is there a way to know the length of a text ? Thanks in advance.
Last reply by michaelrawi, -
-
Who's Online 0 Members, 0 Anonymous, 48 Guests (See full list)
- There are no registered users currently online