Topics
-
-
- Leaders
- 3 replies
- 2.6k views
There's rather a bewildering choice of methods to draw a curve. Do any of them allow me to draw a curve beginning and ending at known points, and specifying areas of the graphics object that the curve is to avoid? Or do I have to figure out points away from the areas to be avoided to cause the curve to avoid them?
Last reply by rbulph, -
-
- 5 replies
- 6.4k views
i have a form which i validate on code behind, after postback the page is on its topmost, i wanted it to move to an anchor somewhere in my page, anyone knows how to do this, or is there an alternative to this?
Last reply by lamy, -
-
- Administrators
- Leaders
- 7 replies
- 1.8k views
Not to bore you with details, but I am concerned about 2 things with a project I'm presently working on, first my application size is now over 9mb when compiled using over twenty forms, and secondly should I be breaking down forms into dll�s? I'm looking to see if there is a certain advantage as to breaking down my project into smaller projects and then use them as dlls and is there a certain size I should be concerned with not going beyond in my application?? I have had some problems with the assembly due to the fact I'm using over three thousand textboxes on certain forms. Thank you for any advice anyone has as to tackling such a large project.
Last reply by snarfblam, -
-
-
- Administrators
- Leaders
- 6 replies
- 6.2k views
I recently came across the VB operator AndAlso, up untill that point I had no idea such an operator existed. My question is, what exactly is the difference between 'And' and 'AndAlso' (or should that be 'And' and also 'AndAlso' ;)). Logically to me in English terms they mean the same thing, so I looked them up in the VB reference guide. 'AndAlso' is described as a "short-circuiting logical conjunction" which as far as I can discern means the second expression is not evaluated if the first is false. Since 'And' is not described as a "short-circuiting logical conjunction" does this mean it will evaluate both expressions before checking if they are both true? I know that…
Last reply by snarfblam, -
-
- 2 replies
- 1.2k views
Hi! I use this code to export the contents og a gridview to MS Excel: Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click Response.Clear() Response.AddHeader("content-disposition", "attachment;filename=FileName.xls") Response.Charset = "" ' If you want the option to open the Excel file without saving than ' comment out the line below ' Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/vnd.xls" Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter() Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite) GVIn…
Last reply by noccy, -
-
- Administrators
- 3 replies
- 8.3k views
Okay, here is my code: Dim msNewStream As New MemoryStream Dim msstreamhass As New MemoryStream msNewStream.Write(msStream.ToArray, 0, msStream.Length - (hashsize * 8)) Dim intP As Integer = msStream.Length - (hashsize * 8) intP = msStream.Length msStream.Position = 0 msstreamhass.Write(msStream.ToArray, (msStream.Length - 159), msStream.Length) The first part works fine "msNewStream.Write(msStream.ToArray, 0, msStream.Length - (hashsize * 8))" The second one always throws an exception of: Offset and Length were out of bounds for the array or count is greater than the number of elements from index to the…
Last reply by cpopham, -
-
- 0 replies
- 846 views
Hello Extremers, Long time not come back to this forum since I quit my last programmer job :( Hope the rule have not changed. :) I have a function GetChkBoxList() which return a checkboxlist class with value according to the input. Function GetChkBoxList(ByVal input as string) as CheckboxList .... .... Return outputChkBoxList End Function I want my Viewgrid control can run GetChkBoxList at runtime. Therefore Viewgrid can show up a list of checkbox according to one of the field's value. But I am not sure how the syntax work. Did any one here can share me some idea? Thank you very much!
Last reply by legendgod, -
- 9 replies
- 3.7k views
Hi, I have a property which contains an upper/lower combination that I have declared my own structure for. How do I make it editable in the properties window when I put my control on a form? It's visible, but I can't set the values, I want it to show up just like the location with a small + that expands to show Upper and Lower values. TIA /Kejpa
Last reply by kejpa, -
-
- Administrators
- 10 replies
- 1.6k views
Hey all, I got a webform on my site that needs to assign a different server side include depending on the previous page the user was on. The selection process is good and it works, the only thing remaining is to find a way to add variations of <!--#Include virtual="html\top.inc" --> to my page. I have tried this: [size=2][color=#0000ff]Dim[/color][/size][size=2] q [/size][size=2][color=#0000ff]As [/color][/size][size=2][color=#0000ff]Char[/color][/size][size=2] = Chr(34) [/size]me.lblTop.text = [size=2]"<!--#Include virtual=" & q & "html\top.inc" & q & " -->"[/size] [size=2][/size] Any help would be appreciated. …
Last reply by laredo512, -
-
- 1 reply
- 1.4k views
i have run a query in access which returns a lot of rows. what is the sql syntax to save the returned data in a new table?
Last reply by HJB417, -
- 0 replies
- 895 views
I seem to get very strange errors in VS 2005 when I am linking project files. Say in one solution I have a project with some classes, then I create a new project in that solution (usually a Winforms app to test my Windows Service), and add all the classes by using 'Add as link'. Strange things start to happen - like this one. Name 'E' is not declared!!!! ROFL :rolleyes:
Last reply by sgt_pinky, -
-
- *Experts*
- Leaders
- 7 replies
- 1.4k views
Hi All, We all know that the VS.NET 2003 IDE and the framework had a lot of bugs (like many other languages) in it. Just wondering if there is a listing of the different issues noticed in .NET 2003 that are fixed in the 2005 release? I am more specifically looking for fixes in the TabControl (w.r.t. random tab reordering, enabling/disabling tab pages, etc.). I know there is a host of other bugs as well and would be interesting to know which ones have been fixed. Any links ?? Thanks Linesh
Last reply by snarfblam, -
-
- 2 replies
- 1.9k views
I'd like to send a reference to a type with a dragdrop routine, but can't get it to work. Any thoughts? Here's the code I'm using: Public Class Form1 Dim s As Type Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.PictureBox1.AllowDrop = True End Sub Private Sub PictureBox1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles PictureBox1.DragDrop Dim f As Type f = e.Data.GetData(GetType(Type)) Debug.Print(f Is Nothing) 'returns True. How do I extract the Type from e.Data? End Sub Private Sub PictureBox1_DragEnter(ByVal sende…
Last reply by rbulph, -
- 1 reply
- 774 views
I am working with an application that doesn't support the .NET 2.0 framework yet. But I want to use VS 2005 for development with this application. I there a way to develop in VS2005 but make use of the .NET 1.1 framework? Thanks Feurich
Last reply by mskeel, -
-
- Administrators
- Leaders
- 4 replies
- 1k views
Hi ppl I have created an app that does quite a bit of processing. My trouble is that when I press the process button, the window will often go blank (especially if you change to another window, and get then back to this app), and the objects don't get refreshed. I tried using this.Refresh() which they say "forces the control to invalidate its client area and immediately redraw itself and any child controls", but it didn't work all that well. At least not as I expected... Is there a simple way to force the window to refresh from time to time, say every x cycles in the main loop? thanks Ricardo
Last reply by Nate Bross, -
-
- 0 replies
- 2.2k views
i have used WMI to change network settings (ip address, default gateway, DNS). it works fine in administrator account environment but when im in the restricted user account it wont work. any idea's? do i need to allow user account to access network configuration? i tried to browse for solution in the WinXP MMC (Microsoft Mananagement Console) but i have no luck at all. do i need to edit or add parameters in the registry in order my code to work in user account environment? Please help me... Thanks in advance...
Last reply by jemico, -
Why do you guys use third party bb software for the site; Instead of just creating your own, like in ASP.NET?? IMHO- php is nothing but a bunch of hacks glued together... -kurf-
Last reply by mskeel, -
- 1 reply
- 2.5k views
Anybody who's writing a RegEx (regular expression) knows that they can be hard to troubleshoot & debug. Or more importantly, trying to learn them can be equally as hard because there is no easy way to test out your regex. Because of this, I decided to write a quick & simple .Net 2.0 app that lets you enter a regex and a string to match against, and it displays in realtime if the regex is a match, not a match, or invalid regex. I've also included the source code, and I welcome anybody to make improvements and email the source back to me. Also, I've included some regexes I wrote that I like to call my "Ultimate Regexes" because they are very flexible and cove…
Last reply by Mister E, -
-
- Administrators
- 3 replies
- 2.1k views
Are the Code Tags for C#(Csharp) Broken!?!?!?!? I've tried [c#] [csharp] and to no avail they DO NOT highlight the code! What gives? -kurf-
Last reply by PlausiblyDamp, -
-
- 4 replies
- 726 views
In VB 6 you could toggle between viewing a single procedure in a module and viewing the whole module. In .net 2005, you have the option to close down any number of procedures so that just their first lines show by clicking on the little minus signs shown against them. But there doesn't seem to be any way to just view one procedure, which I find a shame. Or is there something I'm missing?
Last reply by rbulph,
-
Who's Online 0 Members, 0 Anonymous, 49 Guests (See full list)
- There are no registered users currently online