Topics
-
- 0 replies
- 1.6k views
I am using the .Net WebBrowser and want to programmatically click on a particular link. I know I can do this with mshtml link element using the click property but not with a regular htmlelemnt from Windows.Forms. (I wonder why they made so few html object in windows forms and so feature poor, they are almost not worth bothering with). I know that I may be able to do a cast to accomplish this but not sure how to go about it. Any suggestions? Caeanis Es bonita la venganza cuando el dios la conceda
Last reply by caeanis, -
- 4 replies
- 1.4k views
I have a page which contains a drop down filled with forms that can be downloaded, they are all PDF's Is there any way I can prompt the user to either save or open the file - whats happening now is the PDF just opens in the browser, I dont want this as they need to save it locally. It would work correctly if they were .exe files instead on PDF so is there a way I can force this prompt? Thanks
Last reply by Mondeo, -
-
- Administrators
- *Experts*
- Leaders
- 5 replies
- 1.5k views
Is it true to say that every type of grouping class (collection, array, hashtable etc.) is zero based in VB.net, except for the collection class which is 1 based? I note in particular that the IList contained in the List property of CollectionBase is 0 based. I find this a bit annoying. If I have a collection and then decide I need to make it strongly typed by having a class inheriting from CollectionBase I either have to change all item references in my code or have the following rather awkward code in the new class: Public Function item(ByVal i As Integer) As String Return MyBase.List.Item(i + 1) End Function Any thoughts?
Last reply by Nerseus, -
-
- 0 replies
- 946 views
Resolved... I simply needed to use RepeatDirection="Horizontal" I have a RadioButtonList and even when I do RepeatLayout="Flow" it's output <br> tags that I can't override with Display: inline; <asp:RadioButtonList ID="DistanceBW" runat="server" CssClass="RadioGrid" RepeatLayout="Flow"> <asp:ListItem Value="20ft" Text="" /> <asp:ListItem Value="21ft to 40ft" Text="" /> <asp:ListItem Value="41ft to 60ft" Text="" /> </asp:RadioButtonList> which outputs <span id="ctl00_Content_DistanceBW" class="RadioGrid"> <input id="ctl00_Content_DistanceBW_0" type="radio" name="ctl00$Content$DistanceBW" value="20ft" /><br /…
Last reply by travisowens, -
- 1 reply
- 1.3k views
RESOLVED... see the following post I have the following markup <asp:RadioButtonList ID="DistanceBW" runat="server" CssClass="RadioGrid"> <asp:ListItem Value="20ft" Text="" /> <asp:ListItem Value="21ft to 40ft" Text="" /> <asp:ListItem Value="41ft to 60ft" Text="" /> <asp:ListItem Value="61ft to 99ft" Text="" /> <asp:ListItem Value="100ft" Text="" /> <asp:ListItem Value="NA" Text="" /> </asp:RadioButtonList> which outputs <table id="ctl00_Content_ImageDistance" class="RadioGrid" border="0"> <tr> <td><input id="ctl00_Content_ImageDistance_0" type="radio" name="ctl00$Content$ImageDistance" val…
Last reply by travisowens, -
-
- Administrators
- 3 replies
- 1.1k views
Im using VS2005 and when i add a Crystal Report it crashes. the last thing i see before it crashes is that it tries adding the references as CrystalDecisions.Enterprise and another file i cant catch then it crashes. A few months ago it was working fine and did not add these two files. What is wrong?
Last reply by melkanzi, -
-
- 2 replies
- 1.9k views
Hello, I would like to ask You, how do You check the source code quality and how do You check Your source code on the basis of your coding conventions? Do You use some special tools or Your own application? When You are using some tools, then what these tools are testing? Is it better to run test by daily development or by daily build? Wojtek
Last reply by gicio, -
- 3 replies
- 1.6k views
I have a multiline textbox on my form and it is used for a chat and everytime it is recieveing the messages, its moving the scrollbar back to the top.. which isn't going to work good at all for a chat program.. so, I need the code that will keep the scrollbar as long as it will go so each time something new is recieved it will go down more.
Last reply by GrenadeFX, -
-
- Leaders
- 0 replies
- 7.5k views
I've seen certain questions asked a number of times and decided that it would be appropriate to have some reference that clearly explains the details of this tricky aspect of function calls. To get the most out of this you should understand the concept of pointers and the difference between value-type objects and reference-type objects. Pointers, Pointers Everywhere Like traditional VB, DotNet languages (C++ aside, this article will focus on VB and C#) do an excellent job of hiding pointers from the programer, despite the fact that they are a very fundamental aspect of DotNet programming, used with reference types, pass-by-reference parameters, Delegate objects, and u…
Last reply by snarfblam, -
-
- 2 replies
- 2.3k views
I think I know the answer to this , but just want to double check. Using OOP like a good boy should, I pass forms to other forms often. By default vs.net uses a ByVal word instead of byref. Also, I've seen many other vb.net code examples that pass a form to a form or an object around and ByVal seems to work like ByRef in those instances. Am i right? I sure hope i'm not passing a whole copy of the form over when i use ByVal, and I hope i'm just passing a reference to the form i want to pass. ByVal should actually mean that i'm passing a copy to the new form though, according to old C++, am i right? So are ByVal and ByRef pretty meaningless on many objects such as for…
Last reply by NeuralJack, -
-
- Leaders
- 3 replies
- 1.6k views
hi i want to open the help file of my application whenever user press F1 in any of my 84 forms. so should I enable the keypreview of all my forms and check if user press F1 in each form to show the help file? because i heard that it's not recommended to enable the form key preview. is there any other way? thanks
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 1k views
hi one of my problems in vb 6 was that how should i set the passwordchar property of text box to look like the windows xp, but it's different in xp and 2000 and me. so to whcih font and character and size should i set it to be ok always? thanks
Last reply by snarfblam, -
-
- 0 replies
- 939 views
I have set a combobox as follows: 'set the bindings for the transaction description combobox Me.cboTransDescription.DataSource = glb_dbTransactionDescBinding Me.cboTransDescription.DisplayMember = "tran_description" Me.cboTransDescription.ValueMember = "tran_id" This successfully populates the combobox and also allows me to add items which appear in the combobox. I want to be able to delete the selected item in the combobox and found on this site that one should use a bindingsource to do so which I did and it does get removed from the combobox but I have found that neither adding or deleting affects the actual database. Here is how I setup the bindi…
Last reply by pachjo, -
-
- Leaders
- 8 replies
- 11k views
I have a small form that the user types options into and I want those options to go back to the procedure that called the form. There are more than one values i'd like to return to the calling procedure. My strategy is to create variables in the calling procedure and pass those variables ByRef into the small options form. I'll open the small form with .ShowDialog and then the answers will be set in the form and the variables updated. When the user presses OK , it will simply shut down the small form and the calling procedure should be able to continue.. i think. Is there a better way to do this?
Last reply by betrl8thanever, -
-
- 1 reply
- 1.8k views
what happens to a timestamp/byte[] column when Dataset.WriteXML("somefile"). Is there any way to retrieve the value from the xml file?
Last reply by barski, -
-
- Leaders
- 1 reply
- 2.4k views
Hi all! I am working on an app using VB.Net 2005 Express. I am receiving data from the serial port and simply updating a few labels with the data I receive. I am using MethodInvoker to invoke a method that simply reads the data from the serial port buffer and updates the values on a few labels. If I am receiving data faster than I can update the UI (there is more data in the receive buffer to process) and try to close the application it hangs. I'm guessing this is because the SerialPort component has fired a bunch of DataReceived events which created a long list of methods to invoke. Here is my DataReceived event and Method that is called via the MethodInvoker…
Last reply by snarfblam, -
-
- 2 replies
- 1.2k views
Is there a way to determine if a FileStream, CryptoStream, etc. is closed or open. I've tried things like: If fs.Closed() = True Then Blah, blah End If But that doesn't work. Thanks, Ted
Last reply by TedN, -
-
- Administrators
- 1 reply
- 1.3k views
All financial programs here on portugal must now be able to export the their database in a XSD type file, but, I don't have a clue how to do this in my application. They gave me however, a XSD file containing all fields and the data structure to hold all companies' data. So, what will I do? Load the XSD file into my application and fill it on my own throught code? Or I should generate the whole thing to a XML file and then convert it to XSD? Either way, I don't know how to do it, I'm reading some tutorials for XML but I can't find nothing regarding XSD. I also heard that I need a SDX.exe or so to conver the XML into a XSD... is this true? God Help me... Thank …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- *Experts*
- 15 replies
- 2.6k views
What is the best application/program do you think you have ever made? My answer is my Page Edit 2 program that im working on. How about you?
Last reply by mooman_fl, -
-
-
- Administrators
- 3 replies
- 1.2k views
Note: This is a repost of something I posted on the sister forums that hasn't gotten any replys. What I'm looking for is a more simple way to Enable/Disable Edit Menu Items based on Active Control behavior. Behavior (basically, I might miss something): Copy/Cut/Delete - Only enabled when text is selected (SelectedText.Length is the way I normally go about it) Paste - Only enabled if text is on the clipboard I'm handling the event of the Edit Menu Dropdown and I can check the active control (Me.ActiveControl). Now I hope I'm missing something, but it seems I would have to do a Select (or If...Then) to find out what Type the ActiveControl is and then writ…
Last reply by PlausiblyDamp, -
-
Who's Online 1 Member, 0 Anonymous, 49 Guests (See full list)