Topics
-
- 1 reply
- 894 views
SOLVED: New Listview-style headers... an easy route? Greetings. Long time reader, first time poster... I am building a custom control, the fabled 'TreeList' (columns like a listview but with collapsible sections like a treeview) with bells on, both because it is the ideal method of displaying what I wish to display, and because it's an ideal way to practice some control development. Now on to the question. Using the ControlPaint class its dead easy to draw the column headers ala Windows 2000. However, these blocky buttons can look a bit out of place when surrounded by other controls which have adopted the system theme on XP. So, I'm asking if there is any simple …
Last reply by MrPaul, -
-
- Leaders
- 5 replies
- 1.7k views
I need to draw lines similar to drawing lines using a mouse (click to start the line and click to end the line. There is no holding down like dragging a mouse). How do I use invalidate so the entire screen isn't being redrawn but the line shows continously?
Last reply by Talyrond, -
-
I want to make an application that can put some data into a SQL server, and where I can retrieve the data again. My problem is just what kind of project to use ASP .NET Application ASP .NET Service or Windows Service ?
Last reply by Arch4ngel, -
-
- Administrators
- Leaders
- 18 replies
- 1.6k views
By my understanding, an interface is just a list of public functions/events/parameters/etc. I used IDisposable and it inserted a whole bunch of code, including a private variable and comments. Now I understand that it can be useful to have default code, but that isn't what an interface is supposed to do. But I think just being able to send comments with your interface signitures would be enormously helpful. Any insight on how it's done? I've been digging around the MSDN and Google and havn't found out. I'm probobly just not knowing the proper term to search for.
Last reply by Arch4ngel, -
-
- 1 reply
- 875 views
Okay, Datasource is an Object, which allows it to handle multiple types of DataSources. I'm having a user pass one in, I was "DirectCast"ing it to a DataSet, which is what I need, which worked fine if I choose A Dataset or TypedDataSet as the Datasource. If I choose a BindingSource, it errors out here. Obviously you can't DirectCast a BindingSource into a DataSet. But because things are Typed, I can't see how to make any logical statements to handle the DirectCasting. If I getType, it returns the TypedClass (ie CustomerDataSet rather than DataSet; or CustomerBindingSource rather than BindingSource). Is there any way to get to that base class? I need t…
Last reply by Denaes, -
-
- Administrators
- Leaders
- 3 replies
- 936 views
Hi, There is a big problem in how all Microsoft products handles substractions. When you subtract two values the outcome is wrong. This problem is found in VB6, .NET2001 and VS2005 as well in Excel. Try this in Excel: =79,8-84,2 and =79,7-84,1 both should give -4,4 but they give -4,40000000000001 and -4,39999999999999 (in Excel you must show all decimals otherwise it will round and it looks well) In .NET this gives a problem when you compare the values with each other, they are NOT equal and they should be!. This happens in many different cases! so be aware!! Fred
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 966 views
Hello, Everytime I run a vb.net project it keeps my output window open even after I stop the project from running. I know this is a small thing but I hate having to shut the output window down everytime after I run a project. Is there anyway to get VB to shut the window down automatically after I stop my project from running? Thanks!
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 5.9k views
We have an old mail server running MS Exchange 5.5. I was asked to write a script to get the mailbox sizes, and found the MSDN article related to it. When doing this as a script, I can get it to run fine, but the problem is that I don't know how to write it out to a text file. I can Echo it back, but then can't do anything with it; the cmd window won't let me copy the text. I did try running it as an executable instead, and everything worked fine except for getting the actual information that I wanted! I think that had to do w/ the variables, but this is soupposed to be a quick fix for the IT Mgr, so I'm trying to spend as little time on it as possible. Long stor…
Last reply by alreadyused, -
-
-
- Administrators
- 1 reply
- 2.4k views
Is there any advantage/disadvantage in declaring Dim ab as String as against Dim ab as System.String Please let me know your comments regarding this Thank u all in advance :p
Last reply by PlausiblyDamp, -
-
- 0 replies
- 792 views
Hi all I have set the authentication mode in my web app to Forms, I am using the following code when signing in: FormsAuthentication.Initialize() 'The AddMinutes determines how long the user will be logged in after leaving 'the site if he doesn't log off. Dim token As FormsAuthenticationTicket = New FormsAuthenticationTicket(1, _ txtMobile.Text, DateTime.Now, _ DateTime.Now.AddMinutes(20), True, tokenData, _ FormsAuthentication.FormsCookiePath) 'replaced txtMobile.Text with access Response.Cookies.Add(New HttpCookie(FormsAuthentication.FormsCookieName, _ …
Last reply by mike55, -
- 0 replies
- 1k views
Gud day! I have a main report and 4 subreports in it. Now, These subreports contains DateTime values. When I'll preview the main report, these 4 subreports does not align, it's in cascading form. Why is this happening? How will I align my subreports, so that it will appear as 1 row only? Please help... thanks
Last reply by tinJeff, -
- 2 replies
- 1.1k views
I am trying to generate an image from a url and load it into a picturebox, but I keep getting an invalid parameter error on my URL. I am attempting to use google maps and had an entire map path, but dropped it down to just the maps URL and still getting the error. Can someone let me know what is wrong with my code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'LoadWebImageToPictureBox(PictureBox1, "http://maps.google.com/?q=113+gunn+road" & Chr(44) & "+centerville" & Chr(44) & "+ga" & Chr(44) & "+31028&z=2&t=h") Try Dim req As Net.HttpWebRequest = Dir…
Last reply by cpopham, -
-
- Administrators
- 11 replies
- 1.8k views
I am trying to create a simple service, actually all it does is present a msgbox upon the start and end. But once thats working it would be easy to build upon. Anyway i have created the deployment project, and tried running the service and i am presented with this message "cannot start service from the command line or a debugger. A windows service must first be installed using installutil.exe and then started with the serverexpl, windows services or the NET START command." So after a bit of research i went and ran the c:\winnt\Microsoft.Net\etc.....\installutil projectname.exe and was presented with the following errorlog. Could someone please tell me where to…
Last reply by Kurt B, -
-
- 0 replies
- 688 views
ok, I got win32 application using directX... but of course I got a problem... I got Experimental3D.cpp, D3D.cpp and D3D.h the thing is that I would like to create a new D3D class object in Experimental3D.cpp but I don't know where or how... Experimental3D looks like this.... #include <windows.h> #include <d3d8.h> #include <tchar.h> #include "resource.h" #include "D3D.h" //HWND hwnd = (HWND)this->get_Handle().ToPointer(); yeah = new D3D(); <-- this is the problematic place... I would like to do like this but I cant... where should I create this object? D3D *yeah; // basic windows message procedure LRESULT CALLBACK frame_win…
Last reply by DR00ME, -
-
- Administrators
- 4 replies
- 1.7k views
I have a shortcut pointing to an xls file. In my C# application, I need to launch the shortcut with Excel. I am currently doing this: string full_path = path; FileInfo file = new System.IO.FileInfo(full_path); try { if (file.Exists) { Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name); Response.AddHeader("Content-Length", file.Length.ToString()); Response.ContentType = "application/vnd.ms-excel"; Response.Flush(); Response.WriteFile(file.FullName); Response.End(); } } This fails because the shortcut fails on the file.Exists function. How should I launch the shortcut with Excel? TIA.
Last reply by session101, -
-
-
- Administrators
- 3 replies
- 963 views
AAARGHHH!!! I'm sick of fighting with this!!! I've got a small web site for a customer, and they want to enforce roles-based security on two pages in that site. Add "location" tags to the Web.config file, right??? Well, when I try to use the file below, I get the "Server Application Unavailable" message. When I revert back to a more normal .config file, it works, but without the security the customer wants. What do I have wrong in there? Thanks. Here's the file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to insert debugging symbols (…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 2.2k views
Hey, First of all i work with an access database. In my program i made an DataAdapter with retrieves rows from the database from two tables(through an inner join). Because the dataset linked to this DataAdapter is represented in a datagridview i also wrote insert, delete and update commands. The way i solved the insert in two tables is with an transaction. In the RowUpdating event of the DataAdapter i create an transaction and manually insert the row in one of the tables. The insertcommand of the dataadapter will handle the insert in the other table. In the RowUpdated event of the dataadapter i commit the transaction. This works all fine, except for the fact …
Last reply by ChoKamir, -
-
-
- Administrators
- 2 replies
- 1.2k views
It was my expectation that a sub using the usual recursive FindFirstFile/FindNextFile would be able to walk the directory tree on any logical volume. I am finding that this may not be the case for certain Ghost 10 mounted volumes in Windows 2000. I was wondering whether the problem was in Ghost or I made some programming error. VB 6 project and VB .NET solution.
Last reply by Howard Kaikow, -
-
- 0 replies
- 842 views
Hi Guys, I have a custom treeview and additional treenodes properties defined. One of them is StatusType of type enum Actually the issue im facing is when i click a certain node, i want to go up to its parent and check if the StatusType is equivalent to "CAnalysis" for example, if its "CAnalysis", then extract some information and pull out some content. Otherwise, it should go up another level up till the root to find for the "CAnalysis" Status Type. I know how to determine the parent of a node by using the "node.parent" property, but i dont know how to write a looping mechanism to search for the parent of a parent for instance. Any guidance would be greatly …
Last reply by a1jit, -
-
- Administrators
- 1 reply
- 660 views
Is GAC the only way to share common code between applications (solutions). I have alot of common code (i.e. formatSQL, email routines, etc.) that I'm converting from Classic ASP to ASP.NET and compiling into a commonLibrary.dll, but the project team lead does not want the commonLibrary.dll showing up in everyone of the applications \bin directory. Is there a way to do this?
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 20 Guests (See full list)
- There are no registered users currently online