Topics
-
-
- Leaders
- 5 replies
- 4.8k views
Hallo, i try to create a bitmap from a filled richtextbox in C#. Any idea? :rolleyes:
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 3.3k views
I have a variable of type "MoveDirection" that is currently used like this: MoveDirection direction = MoveDirection.Right; However, instead of always going right (MoveDirection.Right) I wanted to make it RANDOM, so that "direction" could be any of the four possible results in the enum MoveDirection Given the following Enum: public enum MoveDirection { Right, Up, Down, Left } I need a way to generate a Random value of the enum MoveDirection, I thought of using Rand but am unable to generate anything other then just random numbers and not random enums of type MoveDirection. Any ideas, hints, and help would be greatly appreciated, thanks
Last reply by snarfblam, -
-
-
- *Experts*
- *Gurus*
- 12 replies
- 4.3k views
Plugin-based app with plugin GUI tutorial First of all I want to thank divil for his wonderful tutorial on plugin-based apps. I have put together a simple companion tutorial for making a plugin-based app that adds a GUI contained in the plugin to your host form. Please take a look and tell me what you think. BTW... the code in the PluginServices Class file is still all divil's code. I saw no reason to change it since it did such a wonderful and simple job at enumeration of available plugins. Full credit is given to him for this in the Readme. Attention to management: If you consider this worthy you can add it to the Code Library or Tutors Corner, whichever is …
Last reply by Vlukodlak, -
-
-
- Leaders
- 12 replies
- 975 views
Hey all. Im a C++ Coder looking to get into creating GUI apps. Im looking to try out Visual C++ .NET and dont know where to start. Any links/sites that could help me start to create GUI apps in Visual C++ .NET would be much appreciated. :D Thanks
Last reply by irtaza, -
-
- 2 replies
- 5.5k views
I am writting an application in VB.net using the compact framework. I need to place a keycode in the keyboard buffer. Sendkeys is not supported in the compact framework. I tried using keybd_event in the Win CE API. This gives me and unsupported exception error. Certainly there must be a way to do this. Any help would be greatly appriciated.
Last reply by Howard Kaikow, -
- 0 replies
- 710 views
I'm using SourceSafe 2005 and VS.net 2005. When ever I commit a file to SourceSafe and try and do a compare in vs.net or view in SourceSafe I'm told that the file is a binary. But if I open the file it's normal text. Does anyone know whats going on? and one step better know a solution so when I commit it as text it stays as text. Any help is greatly appreciated.
Last reply by Humble Seeker, -
-
- Administrators
- 1 reply
- 1k views
Is there a way to see all the services on a remote computer with .net ? thanks,
Last reply by PlausiblyDamp, -
-
- 2 replies
- 897 views
I am looking at dealing with cross-site scripting, one solution that I came across, involves setting the validateRequest = false in either the web.config (covers the entire project) or in the @Page tag in the source of individual pages. Once this change has been made it is necessary to use the cmds: HttpUtility.HtmlEncode and HttpUtility.HtmlDecode to convert the data as you are collecting/ distributing to the page front and database. Another solution suggested involves employing required field validators on all text fields. Has anyone used any of these methods, and what are their impressions of them. Mike55.
Last reply by mike55, -
-
- Administrators
- 8 replies
- 4.9k views
Without using the System.IO, etc, libraries, I'd like to find an example of how to use the Unicode API functions FindFirstFileW and FindNextFileW in VB .Net. The goal is to convert the VB 6 code to VB .Net.
Last reply by Howard Kaikow, -
-
- 1 reply
- 932 views
Hi I'm looking to update about 80 rows in a table where I need to sum some values from the source table. Basically I want to run a query that does this: UPDATE tblDaily SET SALES = 'x', REDEMPTIONS = 'y', NET = (x + y) WHERE FDATE > '13-Feb-2006' AND FDATE < '14-Jun-2006' The values of 'x' and 'y' are stored in another table, and I can get them using this query: SELECT SUM(x), SUM(y), SUM(x + y) FROM tblSTAGING WHERE FDATE > '13-Feb-2006' AND FDATE < '14-Jun-2006' What I'm looking to do is to combine these queries so that I can run the UPDATE query with the SELECT query as a sub-query. Does anyone know how to do this? Thanks in ad…
Last reply by Puiu, -
- 3 replies
- 3k views
I want to clear cache on an object datasource through code, through Google I figured out from asp.net that if I do the following (where the original DefaultValue for the SelectParameter = "ORIGINAL"), the cache will get cleared: ObjectDataSource1.SelectParameters[0].DefaultValue = "Original"; ObjectDataSource1.SelectParameters[0].DefaultValue = "ORIGINAL"; This in essence marks the parameter dirty causing the ObjectDataSource control to internally call OnParameterChanged which clears the cache (thank you Reflector!). This is a hack at best to get around the problem that there is no way to directly (that I've found) to clear the cache on ObjectDataSource progama…
Last reply by Diesel, -
- 2 replies
- 1.2k views
A short bit ago I read about MSBuild in the June MSDN magazine article. I was wondering if anyone out there could provide some insight into NAnt and MSBuild having used both of them? Not looking to start a debate or anything of that nature. What I am after is just some insight into what others think that have used both of them. I personally have not used either before but I am possibly looking to utilize one of these tools in the near future and have begun my information hunt about them.
Last reply by irasmith, -
So I downloaded all 3.2GB of Vista today and installed it on a 2nd partition on my pc. Few buggy things that I still have to fix to get XP back up and running. Should of searched the net first before I installed it, a few tricks to get it done right, but anyways. All seems to be running pretty smoothly, no sound though, creative havn't made vista drivers yet. I then run a program I have been working on in .Net 2. Was a bit of a shock, controls are all different colours, although some controls look pretty good in vista. Going by that, I think most programs will need a lot of work done to make them look good. Will have to try and install a few other things, see…
Last reply by irasmith, -
- 2 replies
- 992 views
iam used to vb 6 ...but going now to .net.... i was wondering whats faster in .net.... old Dir,FSO(scripting) or the System.IO.Directory class.
Last reply by Arch4ngel, -
-
- Administrators
- 4 replies
- 908 views
Maybe I am missing something really obvious but I am at a loss on this. 1.Went into my 2.0 win app and got to the properties page (vs2005). 2.Added a few string settings on the settings tab (application scope). 3. this results in the following xml bit in the app.config file (which i spawned earlier): <applicationSettings> <Myapp.Properties.Settings> <setting name="LogOutputFilePath" serializeAs="String"> <value>C:\\Temp\\ErrorLog\\</value> </setting> </Myapp.Properties.Settings> </applicationSettings> 4.In code I want to pull this value out using: string …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 9 replies
- 3.3k views
Prompted by the differences between how Visual Studio 2005 handles designer generated code in Visual Basic and C# in this post, a conversation of what was hidden in VB versus C# versus IL versus Assembly began followed by a debate as to whether it was a good thing that so much information be hidden from VB developers and your opinions on it. This is a continuation of that conversation and debate. ****** Marble_eater, technically, at least in the C++/Assembly world, everything reduces down to do-while loops. Loop performance is going to be affected by a number of factors including but not limited to function calls within a loop (as you said) but also paging/memory us…
Last reply by mskeel, -
-
- 2 replies
- 1k views
I'm trying to insert data into a table that was created dynamiclly. Data will be inserted into several of these types of tables. I tried to substitute the tablename as a parameter, but got the following error when I tried to execute the query: "Invalid object name '@CDRTableName'. Here is my stored procedure. Notice I included the periods for brevity: ALTER PROCEDURE [dbo].[insertCDRSearchResults] ( @BatchName varchar(50), . . . @CDRTableName varchar(20) ) AS INSERT INTO [@CDRTableName] ([batchName], ..., [CDR_Version]) VALUES (@BatchName, ..., @CDR_Version); If I obviously hard code the parameter @CDRTableName, it works just fine. How can I successful…
Last reply by wsyeager, -
- 0 replies
- 1k views
Are the following equivalent? <DllImport("kernel32", CharSet:=CharSet.Unicode, SetLastError:=True)> _ Private Shared Function FindFirstFile _ (ByVal lpFileName As String, ByVal lpFindFileData As WIN32_FIND_DATA) As Integer End Function <DllImport("kernel32", CharSet:=CharSet.Unicode, SetLastError:=True)> _ Private Shared Function FindFirstFileW _ (ByVal lpFileName As String, ByVal lpFindFileData As WIN32_FIND_DATA) As Integer End Function <DllImport("kernel32", CharSet:=CharSet.Auto, SetLastError:=True)> _ Private Shared Function FindFirstFileW _ (ByVal lpFileName As String, ByVal l…
Last reply by Howard Kaikow, -
- 0 replies
- 1k views
Is anyone else who is using the v2.0 framework having problems building their applications because the schema is not found at the web address it points to? I called MS yesterday to find out when it would be back up and the ID10T's there had no clue what I was talking about. But they did verify that the page it (the web.config) file was pointing to for the schema was indeed missing. Just wondering if it is only me or if EVERYONE is experiencing it still. Just seems odd. Here is the address in case anyone wants to check it out... Let me know if you get a 404 for it as well. http://schema.microsoft.com/.NetConfiguration/v2.0
Last reply by college_amy, -
-
- Administrators
- 1 reply
- 929 views
I created a form that uses Enterprise Library - DAAB - version Jan 2006 to access the DB in its constructor. Everything works fine; however, when I created a UserControl that attempts to store that form as a variable, the VS 2005 designer will not let me drag that UserControl onto a new form. It gives me the following error: �Failed to create component �UserControl�. The error message follows: �System.NullReferenceException: Object reference not set to an instance of object. At Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.get_DefaultName(), at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseMapper.MapName(String name, IConfigurationSourc…
Last reply by PlausiblyDamp, -
-
Who's Online 0 Members, 0 Anonymous, 24 Guests (See full list)
- There are no registered users currently online