Topics
-
-
- Administrators
- 4 replies
- 978 views
Is there any easy way to implement dockable windows like the Solution Explorer and Toolbox in .Net in an application? VB now does so much that I rather expect that there must be, but I can't find it. If not, I shall just use permanently docked panels that the user can simply make wider or narrower.
Last reply by Cags, -
-
- 0 replies
- 798 views
visual studio is telling me that there is something wrong with my insert command for this data adapter and keeps throwing an error when i try to insert a row. can anyone see any problems with this code? the error simply says there is a problem with the insert into statement, but i cant see any problems. in the table, all fielts are text fields( as it is an access database) except the "text" field which is a yes/no field. this is the code to create the insert command for the data adapter: this.daContact.InsertCommand = conn.CreateCommand(); this.daContact.InsertCommand.CommandText = "insert into contact_details(patient_id,home_phone,mobile_phone,address,email,…
Last reply by fguihen, -
- 1 reply
- 782 views
Just a thought: I made some classes equivalent with database-tables, like students and courses. If a user changes the address of the student, it has to do an Update-query to update the database record. Something like: public class MainForm: System.Windows.Forms.Form { Student student = new Student(name, id, address); ... student.Address = something_else; // updatequery code here } Would it be any good to let the "Student" object interfere directly with the database? public class MainForm: System.Windows.Forms.Form { ... Student student = new Student(name, id, address); ... student.Address = something_else; student.UpdateRecord(); } class Student { ... pub…
Last reply by Cags, -
- 3 replies
- 3.2k views
I have a form with one ListBox in it and use the code below. I have allowed drop to the listbox and plan to drop files to it (both folders and files). Files are added at once and folders are searched for more files and subfolders. But when I add a folder containing alot of files like the C-drive then both the program and explorer hang until all files are added. I could prevent the program from hanging by adding Application.DoEvents() here and there but of course it has no effect on explorer. So how can I prevent explorer from hanging? I would like to drag&drop other folders to my app from explorer even when the previous folder had not yeat been fully processed. …
Last reply by JumpyNET, -
help
by syntaxerror- 1 reply
- 1.4k views
would this be a good place to get some help on a vb.net assignment?
Last reply by IngisKahn, -
- 2 replies
- 1.4k views
I have a groupbox in one of my forms and in click event of that groupbox I have some code written. Once I changed the flatstyle to �system� click event of the groupbox is not working. And my other problem is, when I place a groupbox on top of another groupbox font of top most groupbox is getting upset. (This is also when the faltstyle is set to �system�) This is in my windows application. and I'm using vb.net. If anyone can give a solution I really appreciate. Thank you very much in advance
Last reply by dhj, -
- 2 replies
- 1.1k views
In ASP.NET application, as I know there are 2 type of printing. First, user can use browser 'Print' button to print whatever they see in browser. The main disadvantage of it, we cannot control the page break. So for normal business application printing, it is not a good practice. Second, if I use Crystal Report, I can print with page break. But the problem is my client print using server printer (I not sure whether we can switch to client printer). So if this web application host by third party hosting service, how can the user collect their printed document? I just want to know how your guys handle printing in ASP.NET application? Thank you
Last reply by bungpeng, -
- 1 reply
- 1.5k views
in a list box you can have a selected item, and a selected value. the items are shown in the list box and when you select one you can use the underlying selected value. eg. select "jimmy" in the list box, and the selected value property might be something like "cust_03". is this possible with cells in a datagrid?
Last reply by karimgarza, -
- 3 replies
- 4.5k views
I find that the icon of a maximised MDI child form does not show correctly until the MDI form is resized. Instead you get the standard icon with a red, blue and yellow box showing. Only when the MDI form is resized is this refreshed. This problem occurs whether the icon is set at design time or on loading the child form. The best solution I can come up with is the truly awful: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Enabled = True End Sub Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick MDIParent1.Width = MDIParent1.Width + 1 …
Last reply by rbulph, -
- 1 reply
- 1.1k views
Hi all, Is there any way to disable the autofill for password fields? Mike55.
Last reply by kahlua001, -
-
- Leaders
- 8 replies
- 1.6k views
I'm having a problem using embedded image resource file. I have added a .jpg file as an embedded resource and set the build action on the image to Embedded Resource. However when I use the follow code which I found on this forum, it returns the following error "Additional information: 'null' is not a valid value for 'stream'." the code that I am using is this Dim myAssem As [Assembly] myAssem = [Assembly].GetExecutingAssembly() Dim s As System.IO.Stream s = myAssem.GetManifestResourceStream("EmbeddedResources.logo.jpg") imgLogo.Image = New Bitmap(s) Has anyone got any ideas??? Thanks Simon
Last reply by karimgarza, -
-
- 1 reply
- 6.1k views
I have a mdi parent window that opens some mdi child windows. When it opens the mdi children, these show up maximized in the parent. Now this was converted from .net 1.1. I added a new form, set all the properties the same as the other forms but when the mdi parent opens it, the mdi child form is the same size as it is in designer. The only way to actually get it maximized is to resize the mdi parent. Anyone seen this before?
Last reply by DimkaNewtown, -
- 0 replies
- 787 views
Given this database structure: table InvItem table InvItemDetails where the InvItem has many InvItemDetails records linked by a the ItemID, is there an SQL statement that will combine all of the InvItemDetails.Desc fields into a single string and return that string to me? tia, flynn
Last reply by flynn, -
-
- Administrators
- 7 replies
- 1.1k views
How do you determine within an application whether it is running in the development environment or an exe? In VB 6.0 I always did it by using a Debug.Assert statement, but I imagine there is a simpler way in .net.
Last reply by IngisKahn, -
-
-
- Administrators
- 17 replies
- 1.6k views
If you want to have a class inherit from more than one other class you get a message from VB that only one Inherits statement is allowed in each class. But why? Suppose I have a Securities class and a Debt Class. A Loan Class would inherit Debt. A Shares Class would inherit Securities. A Bonds Class would inherit Debt and Securities. It seems a reasonable enough thing to want to do to me. I guess you have to be sure there's no conflict between properties in the Securities and the Debt class, but I'm sure that could be dealt with. Is there any decent workaround to this?
Last reply by mskeel, -
-
-
- Administrators
- *Experts*
- Leaders
- 5 replies
- 1.9k views
After reading this thread and reading an article, frankly, I am starting to get quite frustrated with .Net. They created something powerful and flexible yet simple. The essence of elegance. Then they tack on generics, nullable types, and partial classes. Now we have extenders, lambda expressions, implicit types, object initializers, anonymous types... We are taking C#, throwing in everything bad about VB (don't get mad, VB users, you know it has potential for horrible programming practices), adding the confusion of C++ (don't get mad C++ users, you know that it takes a lot more time to learn and requires a much finer understanding of the language to fully utilize all its …
Last reply by PlausiblyDamp, -
-
- 0 replies
- 858 views
Hi all, I have a datagrid with a template column with Image control on it. Heres how it goes: <asp:TemplateColumn HeaderText="Image"> <ItemTemplate> <asp:image id="imgImage" Runat="server" ImageUrl="ApprovarImage.gif"></asp:image> </ItemTemplate> </asp:TemplateColumn> Now i need to get an image from the MemoryStream into this Image Control. How can i get the same. Thanks in advance Ashutosh
Last reply by ashutosh9910, -
-
- Administrators
- 1 reply
- 836 views
Hello Dear! Hope you will all be fine i have made a Dynamic wesite in Asp.net successfully Alhamdulila but i am not completly satisified with that because i have written some of my database code in .aspx file too i don't want to do this but i didn't know that how can i write it in .cs file and implement it so i need your help in this regard i am sending you one .aspx file please change it to write all database code in .cs file i will be really really grateful to all of you...............please reply me as soon as possible....................... Please reply me on my email address malik_hafiz@hotmail.com Thanks and Regards AbuBakar Malik
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 5 replies
- 1.6k views
I need to create a program to measure fps of a different program...Need help with that...o yeah is Refresh rate the same as fps?
Last reply by IngisKahn, -
-
- 5 replies
- 927 views
I've recently been coding various logic puzzles and I've ran into a tricky problem. I need to take a number between 1 & 45 and work out which (unique) numbers between 1 & 9 can be added up to achieve this number. For example 17 can only be made using 8 & 9. Unfortunately I can't think of an efficient way of doing it.
Last reply by IngisKahn,
-
Who's Online 0 Members, 0 Anonymous, 55 Guests (See full list)
- There are no registered users currently online