Topics
-
-
- Administrators
- 3 replies
- 866 views
Hi, Is there a more efficient way to check if an object can be converted to a number than this: Function IsNumber(input As Object) As Boolean Dim out As Double Return Double.TryParse(input, System.Globalization.NumberStyles.Number, System.Globalization.NumberFormatInfo.CurrentInfo, out) End Function
Last reply by utilitaire, -
-
- 5 replies
- 1.4k views
I've got a program that uses managed directx and I've got a robot moving around an arena, I need of detecting collisions with walls so I can stop it going through them. The problem is I don't really know how to do it. I've tried methods like Mesh.Intersect, but it didn't work, (I don't think I understood it). Any help would be appreciated. Brad.
Last reply by Knight Chat X, -
- 4 replies
- 1k views
Do any one know a command to completly stop the program running . I have a for loop which has a try and catch function For Each MyFile In FilesArray Try MyFile.Delete() Catch ex As Exception MessageBox.Show("close all other wondows a run the program again", "DocumentManager Information", MessageBoxButtons.OK, MessageBoxIcon.Information) Application.Exit() End Try Next MyFile i use application.exit() to end the program ,but the program runs till "for loop" ends. ie if the looop goes into catch 2 times then it displays …
Last reply by shankar_it, -
- 0 replies
- 1.5k views
I have just started using Firebird for all my embedded database needs when programming with C#. I was wondering if anyone knew if there was a way to list fields and data types in Firebird. I am used to MySQL and I have always used the DESCRIBE statement, but Firebird does not seem to allow this. The ultimate goal is to get the field names and types into a DataTable in C#. Thanks
Last reply by grip003, -
- 2 replies
- 829 views
I'm trying to get into the proper ways of oop, design patterns and everything. I've picked up alot the past few weeks but I still keep getting unstuck on seemingly really simple issues. Current confusion: - I'm UMLing a web application, situation summarised is: - Members (i.e. users) can log in, view events (I.e. an event held at a specific location), attend events, leave messages about events etc. In my class diagram i have a Member class and an Event class. Where would a method such as viewEvent() go on the Member class because a member can view an event or on the Event class because it is the event that can display its details????? Also how would i re…
Last reply by bri189a, -
- 5 replies
- 816 views
I ran the CLRProfiler on my laptop. I changed "machine" name to "server". Everything ran fine... I have another laptop..i downloaded CLRProfiler, changed "machine" to "server", started CLRProfiler, started my website but i got an error that application is not available and to look in Event Viewer.. I looked in Event Viewer and this is the error msg: aspnet_wp.exe could not be started. The error code for the failure is 80004005. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to t…
Last reply by eramgarden, -
- 2 replies
- 5.6k views
Hello, I've problems with one assembly. I'm using and have referenced Microsoft.mshtml.dll, which is Primary Interop Assembly. It's in "D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll". Public Class Enlaces Private Enlace As mshtml.HTMLAnchorElement Public Sub New(ByVal e As mshtml.HTMLAnchorElement) Try Enlace = New mshtml.HTMLAnchorElement() Enlace = e AddHandler DirectCast(Enlace, mshtml.HTMLAnchorEvents2_Event).onclick, AddressOf EnlaceOnClick Catch exc As Exception MsgBox("Error en constructor de Enlace: " + exc.Message, MsgBoxStyle.Critical) End Try End …
Last reply by theBug, -
- 1 reply
- 984 views
Im not sure if this is a correct place fro this post but here it is anyway btw thanx in advance for help ok i have a webbrowser on my form called wb1 on startup, it loads a page that has some text on it. I wouldnt mind knowing how i can red some of that text of the page and place it in a label control thanx guys
Last reply by neodammer, -
-
- Administrators
- 1 reply
- 2.5k views
s there an easy way to upgrade a vc++ project to VC++.net/C#/(even VB.NET) ? Thanks, Linesh PS: I already posted this Q in the VC++ syntax specific section, but thought this was a more appropriate forum for it.
Last reply by PlausiblyDamp,
-
-
- 1 reply
- 1.9k views
Hello all, I have written a class that exports all the rows of a table in a dataset to an excel file, I use an oledb connection to do this. now it works no problem but I wonder if I can speed it up, this is where you specialist come in, this is my code this one creates the excel file and the first cells ( headers ) try { if(System.IO.File.Exists(System.IO.Path.GetFullPath(_FileName))) System.IO.File.Delete(System.IO.Path.GetFullPath(_FileName)); DT = _ds.Tables[0]; StringBuilder CreateTable = new StringBuilder("CREATE TABLE "); CreateTable.Append(_ds.DataSetName); CreateTable.Append(" ("); foreach(DataColumn col in DT.Columns) { …
Last reply by TripleB, -
- 0 replies
- 7.5k views
some of you might find this of use. . . Suppose you have an property of a class that is an "Flags" attributed enum. reference the attached FlagsUI.dll assembly. . . apply this attribute to your property: [EditorAttribute(typeof(FlagsUI.FlagsEditor), typeof(System.Drawing.Design.UITypeEditor))] Now you get a dropdown checkbox to select the set of flags that are applied to the property. attached zip contains: FlagsUI - the Flagged property editor FlaggedComponents - two simple component/flag enumeration examples testapp - an example app. for best results - Build the solution before opening the form. Click on the "value" property of either of the…
Last reply by Joe Mamma, -
-
- *Experts*
- 6 replies
- 1.1k views
Hi , All I have a strange question. I want to create new User control. But when I select "File -> New > Project -> Visual Basic ", there is no "Windows control library". Should I install them extra. or how I can create an user Control Thanks, Erdenemandal
Last reply by DiverDan,
-
-
- 2 replies
- 956 views
Hi guys, Recently i made an app and it works very well so far ... but these days i decided to extend client part's features to remote access the data stored on server machine. Actually, all i need is when my laptop PC is located out of LAN to still able update/select/delete/insert data from within MS Access DB. I've been look around for some useful informations in order to resolve my issue but i found may different opinions ... some people says that i need to go for SQL Server and that it is the best and only solution ... also, some people claimed that i should go for web services as it's most adequate and simplest solution for me ... so, i'm wondering is there someon…
Last reply by kulrom, -
- 5 replies
- 1.2k views
hello, i am making an web application for the university, and in some places, there makes somethings in the DB, then i would like to leave the page like "suspended" and when the job is all done, then i raise an event, and render the data to the page... it is this possible??? thanks!!!
Last reply by bri189a, -
- 0 replies
- 894 views
Here's the setup: Forum software written in .net on a shared server running .net 1.1. Here's the idea: To monitor a pop3 account for incoming messages, attach them to existing (or create new) threads. Here's the problem: Since it's a shared server I can't just create a separate service to handle this (which would be the better solution IMO), so what I want to do is start a thread that will monitor that pop3 account. However I am unsure as to where in application I can do so effectively. Classic ASP had the Application_OnStart and Application_OnEnd (correct me if I'm wrong) events in global.asa that I could use. Does ASP.NET have similar events that I could…
Last reply by DimkaNewtown, -
- 17 replies
- 3.1k views
On a custom control in design mode, I have a drop-down property based on an enum. Now on my control's property grid, I want a second drop-down property based of another enum, but it would change to a different enum list based on the value selected in the first drop-drop box. For example... Public Enum A F1 F2 End Enum Public Enum B G1 G2 G3 G4 G5 End Enum Public Enum C V1 V2 V3 End Enum Property1 is always assigned to Enum A. No problem there. However, I want Property2 to use Enum B if Property1 = "F1", but to use Enum C if Property1 = "F2". Is this possible?
Last reply by JDYoder, -
- 9 replies
- 1.3k views
Alright, I'm SURE there are lots of MSDN subscribers here. (For those who don't know, Windows Vista (Longhorn) beta just came out for MSDN subscribers, along with IE7 beta. ). Let's hear about IE7 and Vista. Are they good? Are they fun? Is IE7 useful? How do they look? Does vista have too much eye-candy? Can you easily change the amount of eye-candy it has? Any cool features in Vista you want to share? How about in IE7? I'm sure everyone here is dying to hear about this stuff.
Last reply by Denaes, -
- 0 replies
- 2.7k views
I have a regular expression to aid me in extracting information from a file: (ALPHA|NUMERIC|DATE)\s+(\w+)\s+ Which extracts a type descriptor and the variable name into the cature groups. However a textline may have one or more ';' characters followed by (and/or preceeded by) whitespace which acts as a comment and hence in these cases I would like the expression not to match. Is there a way to do this without performing a seperate extra check for a ';' preceeding the part I want?
Last reply by Afraits, -
- 0 replies
- 815 views
Hi, Can anyone suggest the best way for deleting/destroying either a dataset or a datatable. I use the two methods .clear and .dispose when I am doing it but I don't think that these two command actually destroy the structure but simple remove all data from inside the structure. Mike55
Last reply by mike55, -
-
- Administrators
- 3 replies
- 1.3k views
I've been working for 2 months on visual studio 2003 with source safe 6.0 with my partner in a new web application. After we managed to synchronize our work with source safe, I decide to upgrade to visual studio 2005. The main reason was the new tool that allow us to auto-generate resource files. This tool is supposed to loop through all controls and insert texts into the resource files it creates. The problem I had with vs2005 is VSS. Visual source safe desn't seem to work no more in vs2005, am I right? The new source control is «team fondation». I just can't manage to understand how team fondation server is supposed to work. Actually, I understand how the client work…
Last reply by utilitaire, -
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online