Topics
-
-
- Leaders
- 0 replies
- 912 views
I am using Application.EnableVisualStyles() followed by a doevents. When the program starts, there is a treeview docked on the form that contains a scrollbar on the bottom, which should not be there (there is not enough content in the treeview to require it). Additionally, the scrollbar does not use XP styles. When the treeview is resized to a size small enough that a scrollbar becomes necessary, the scrollbar partially takes on Xp styles. When the treeview is made larger again, the scrollbar finally dissapears. After this point, the scrollbar behaves as expected, visually as well as in the fact that it is only there when necessary. The workaround I have used in the…
Last reply by snarfblam, -
-
-
- *Experts*
- Leaders
- 4 replies
- 1k views
I have an application that i want to when closing prompt the user with the question if they want to save changes yes or no. And if yes save the changes. However if the user just opened the application and pulled up a certain record, but made no changes and begun to close the application, I do not want it to prompt them with that question. So if they made changes prompt them with the question if there are no changes don't prompt. Any help would be greatly appreciated. By the way the program is written in VB.NET.
Last reply by DiverDan, -
-
- 2 replies
- 750 views
How do I resize textboxes bases on the size of the form. For example if the user maximizes the form I want the boxes to be adjusted approiately, if the user reduces the form, I want the boxes to be adjusted apprioately. As always any help given is greatly appreciated.
Last reply by Talyrond, -
-
- Leaders
- 1 reply
- 784 views
What does it main when a form is closed outside of region? and opened for that matter as well.
Last reply by Iceplug, -
-
-
- Leaders
- 6 replies
- 3.5k views
Hi All, I am trying to search through a text file for heading [TYPE1] and then load the information under that heading into a combo box. Is this possible and what method would I use? Here is an example of the text file: [TYPE1] Type A Type B Type C Type D [TYPE2] Type A Type B Type C Type D [TYPE3] etc.... The only way I can think of is using the following: Dim sr As StreamReader = File.OpenText(strFullPath) Dim input As String input = sr.ReadLine If input = "[TYPE2]" Then ' loop through until input = "" ' Somehow load the information into a combo box. …
Last reply by Iceplug, -
-
Alot of encoding/decoding algorithms produce a ciphered text which contains 'garbage' characters - characters which are neither the regular english alphabets or numbers. I would like an encoding/decoding algorithm which produces a ciphered text which consists of only the regular english alphabets and numbers. Thank you.
Last reply by klone, -
- 3 replies
- 1k views
Hi All, I need help in detecting whether client has disabled cookies. I have tried this code: Request.Browser.Cookies() But this returns true whether cookies are disabled or not. Please help. Thanks, Dave.
Last reply by kahlua001, -
- 1 reply
- 1k views
When I change the selectedindex of the tabcontrol, the first textbox in the tabpage container receives OnEnter before the SelectedIndexChanged event fires. What is the event order for the tabcontrol? what ends up happening is OnEnter of the textbox I'm validating the previous textbox (from the previous tabpage) which fails, so I set the SelectedIndex back to the previous tabpage index. This results in tabpage being hidden. If I set the SelectedTab = TabPage1 then I the correct page is visible, the correct textbox has focus, but the tab at the top is still showing tabpage2 as selected eventhough it is showing the first page. Any suggestions.
Last reply by rustyd, -
-
- *Gurus*
- Leaders
- 6 replies
- 4.5k views
I personally feel that a section devoted to all aspects of the Compact Framework would be usefull. Especially as it can be quite hard to find information specific to the CF.
Last reply by kahlua001, -
-
- 9 replies
- 1.4k views
I have a function i use in Windows forms applications for returning the primary key of an auto incrementing identifier. Im making an ASP application...and i want this to be as quick as possible. Whats the quickest way to return the number of the primary key ,of a record that was just inserted into a database? Here is an example of a function i used in a windows form app. But a completely different context. Since i dont need to store them. 'returns customerID's Private Function getCustomerID(ByVal strFirstName As String, ByVal strLastName As String, ByVal dtDate As Date) As Integer Dim strSQL As String = "SELECT FirstName, LastName, CustomerID, …
Last reply by AFterlife, -
-
- *Experts*
- 5 replies
- 1.3k views
i have build a toolbar with different button in usercontrol which will allow many forms to refer it, user control toolbar include: save, edit, delete, print, next, previous.... form1 save, next, previous form2 print, save, delete my problem is how to hide the toolbar button which i not declare.
Last reply by mskeel, -
-
-
- *Experts*
- Leaders
- 5 replies
- 1k views
Usually we use System.Windows.Forms.HorizontalAlignment for TextBox alignment, and System.Drawing.ContentAlignment for Label alignment. I am wondering how to make use of System.Drawing.ContentAlignment in TextBox. Cause now I am faking the TextBox and make it looks like a Label. One of the property of the Label (.TextAlign) is a must in my situation. So, if you know, please helps.... 100,000X thanks in advance.. hehe.... :D
Last reply by georgepatotk, -
-
- 0 replies
- 745 views
i am trying to design a dataSet in VS.NET Table A has 2 primary key columns CustomerID and ProductID. Table B has a single primary key column ProductID. I want to create a foreign key relation from the ProductID column in Table A to that in Table B. in Visual Studio I click Add > Relation then when I select Table A in the parent element field it shows both its key fields in the grid below. The problem is that it wont highlight the OK button unless I assign a foreign key field to by both CustomerID and ProductID rows in the grid. yet my table only needs a single constraint on one column. am i missing something?
Last reply by Wee Bubba, -
- 1 reply
- 952 views
it's possible to set the form's close button to invisible?? so that mean the form remaining the title of the form, minimum, maximum and close button is invisible in toolwindow?
Last reply by bshaen, -
-
- Leaders
- Administrators
- 6 replies
- 961 views
At the following code line it is giving me an invalid cast exception not sure why. Keeping in mind that option strict is on. Any given would be greatly appreiciated. Dim tindex as integer tindex = Convert.ToInt32(ComboBox4.SelectedValue)
Last reply by snarfblam, -
-
- 3 replies
- 1.4k views
Hi all Uri myUri = new Uri("http://localhost/ddmswebservice/services.asmx/VerifyUser"); and I put break point and check myUri's values from Local window it gives following. For example, BasePath is not the property or method of Uri class. I tried to get the value. But, I can't find it. Then how Visual studio be able to show it? If VS.NET can do it, I should be able to get the value. Do you know any differenct between what I can get from Local window and What I can get from my code out of an object? From Local.. uri {System.Uri} System.MarshalByRefObject: {System.Uri} AbsolutePath: "/ddmswebservice/servssices.asmx/VerifyUser" AbsoluteUri: "ht…
Last reply by HJB417, -
-
- Leaders
- 1 reply
- 861 views
i have to draw 10 circles on a form, all with the same diameter. they cannot overlap. the formula to see if they overlap is: SquareRoot( Squared(A.x -B.x) + Squared(A.y - B.y)) what i cant figure out is a system that will allow me to check each new circle against the previous ones, to see if they overlap, and if they do , to generate new random co-ordinates and re check. any ideas anyone?
Last reply by snarfblam, -
-
- 0 replies
- 984 views
I need to write a webservice containing methods that accept or return numerous parameters, and have heard that the best way to pass the parameters is to use a dataset object, but have yet to find a simple example as such. I would very much appreciate if anyone could provide a real simple example illustrating how to pass a dataset to a webservice.
Last reply by veger, -
- 6 replies
- 1.2k views
Ladies and Gentlemen, I have created a VB.NET class that, when given a physical path to a .TIFF file, will output the file, edited to show a watermark. What I would like to do is take this logic and put it in - I believe - an ISAPI filter, and configure my web server so that any time a file of extension .TIFF is fetched, it is put "through the wringer", so that the client browser gets the watermarked .TIFF I am completely over my head at this point, so even the most simplistic of advice that gets me started is greatly appreciated. Charles.
Last reply by HJB417, -
- 2 replies
- 2.4k views
hey guys. I wanna download html from a server and then change the html a little and then submit the form on the page. I wasn't sure how I can submit a form back to the server... anybody know how I can do this? Thanks.
Last reply by JRichmond,
-
Who's Online 0 Members, 0 Anonymous, 73 Guests (See full list)
- There are no registered users currently online