Topics
-
- 2 replies
- 2.7k views
Hi, I'm using ajax in my content page which contain several control in page. It could be like dropdownlist, button, gridview and radiobuttonlist. All control is working find except the radiobuttonlist, it always do the postback. Since I'm using master page to control all content page, I have no idea why is not functioning? Therefore, I create a single page without inherit the masterpage, the radiobuttonlist is working. So is it the masterpage problem? Part of the code: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <atlas:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> &l…
Last reply by calvin, -
-
- Administrators
- 2 replies
- 2.6k views
I use a few API like GetPixel and BitBlt. However these do not work correctly on an Aero window. First, is there any way for me to detect if the user is using Vista in Aero Mode from my code? Second, is there any way to use those functions or functions like it to analyze pixels from Aero windows? Thanks for any help
Last reply by NeuralJack, -
-
- 0 replies
- 1.6k views
Hi everybody! I am new to game programming so this must be a basic question for you What is the easyest way (and fastest for computing) to achieve this using DX or other way: I have known camera position and a simple polygon defined by 3 vertex in space, how do I get xyz position where mouse intersects this polygon? I want the most accurate method Thanks
Last reply by jakovn, -
-
- Administrators
- 3 replies
- 3.7k views
Hi, I'd really like to use some C++ programming in a vb.net project of mine because as far as I know only C++ allows you to use true assembly code. I need a bit of clarification on the best way to go about this these days. IJW - It Just Works - This does not apply to me because it only works in Visual C++ right? I can not use IJW in VB.Net as far as I know. Does this mean my only real option is using P/Invoke? I have no problem with this until I see some articles where they're the "Mangled Names" of the functions in the C++ DLL. That just seems incredibly ghetto to me. Is there a smoother method? http://www.codeproject.com/KB/mcpp/usingcppdll.aspx I simply want …
Last reply by NeuralJack, -
-
-
- Administrators
- 1 reply
- 705 views
Hello, I want to compare 2 numbers in VB6. The numbers are in a format like: 1.2.3 So here 1.2.3 is less than 1.2.4. Also 1.2.3 is greater than 1.2.1. And 1.2.3 equals 1.2.3. So how should I do it? Dim NumberOne As Single Dim NumberTwo As Single NumberOne = 1.2.3 NumberTwo = 3.2.1 If Version > MyVersion Then ... End If If Version = MyVersion Then ... End If If Version < MyVersion Then ... End If But I think it has some logical problems as it won't compare correctly! Thank you for any ideas you might have!
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 6 replies
- 797 views
I am trying to create a program that allows you to enter any time of the day you want. Then I am trying to edit that time, either by adding or subtracting hours, minutes, seconds, or milliseconds. I started on it by every time I run the program I get an error, "When casting from a number, the value must be a number less than infinity." and error details "{"Conversion from string "2" to type 'Date' is not valid."}" If someone can give me a different way to approach it or any ideas that would be great. Thank you.
Last reply by Nate Bross, -
-
- 2 replies
- 4.9k views
Hi, I want to detect the version using GetVersionExA. With the following module I can do this, but there is a problem in detecting Windows Vista against Windows Server 2008 because they have the same minor and major versions. According to Microsoft I have to use use OSVERSIONINFOEX Structure. It contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and information about product suites and the latest Service Pack installed on the system. This structure is used with the GetVersionEx and VerifyVersionInfo functions. The version numbers for Windows Server 2008 and Windows Vista are…
Last reply by ksupriyap, -
- 0 replies
- 2.3k views
I have a situation where it's necessary to open a Backend MDB and alter a report. I need to add controls (in this case labels) and set their properties, then close. I've gotten up to the point of trying to set properties and can't get that to work. Here's what I have so far. Access.Application oAccess = new Access.ApplicationClass(); object oMissing = System.Reflection.Missing.Value; oAccess.DBEngine.OpenDatabase("C:\\data\\test.mdb", false, false, ";PWD=12345"); oAccess.OpenCurrentDatabase("C:\\data\\test.mdb", true); oAccess.DoCmd.OpenReport("paycheck", Access.AcView.acViewDesign, oMissing, oMissing ); …
Last reply by HaoRan, -
-
- *Experts*
- 2 replies
- 3.7k views
Hi I have a static class that acts as a "hearbeat" to allow external listeners to tell if the application is running healthily :- private static HeartbeatListenerCollection _listeners = new HeartbeatListenerCollection(); /// <summary> /// Sends a heartbeat to any heartbeat monitors /// to indicate that the application is running /// </summary> public static void Beat() { // make each heartbeat listener beat foreach (HeartbeatMonitorBase _listener in Listeners) { _listener.Beat(); } } /// <summary> /// Starts the hear…
Last reply by Merrion, -
-
- 0 replies
- 912 views
[PLAIN]How to get Microsoft Japanese "LH Kenji" voice for TTS MS Speech project [C++/C#2002][/PLAIN] I am working on a Text-To-Speech (TTS) project [C++/C# 2002] using Microsoft Speech (SAPI 5.1) and need to use the Japanese voice ("LH Kenji") - sadly I cannot seem to find it anywhere and was hoping someone could help point me in the right direction... The project is being run on English Windows XP set as Japanese Language/Regional Settings... (I've not tested on a Japanese Windows XP - hopefully that wouldn't make a difference). Looking for the component which would include it I've installed: - Install Speech SDK 5.1 (no LH Kenji) - Install Speech SDK 5.1 La…
Last reply by Shaitan00, -
-
- Administrators
- 1 reply
- 942 views
If I write a service for windows that talks to a windows mobile application, and they want to exchange data can I type an object as the same type between applications by way of an interface? The question comes from the face that I have to compile separate assemblies for each side on different frameworks, however I do not know if the interface definition is the same and exists in the same namespace on both sides then will an object serialized in one be able to be de-serialized in the other application?
Last reply by PlausiblyDamp, -
-
- 2 replies
- 3.6k views
I have a DLL which i reference in my asp.net page. i start populating properties of this DLL from my page, when i get the follwoing error: Attempted to access an unloaded AppDomain The dll basically goes out to a network drive by using the UNC path and grabs files, The DLL always works for the first file it grabs but then on the next file grab call it gives me the above error. when i check the values of the current domain before the next file grab call everything is still set correclty. I have searched though google and other places for answers to this, and have come up empty.. Any help would be great, and at this point so need. Thanks to anyone who has insi…
Last reply by santoshforum13, -
- 0 replies
- 1.5k views
Hi Iam new here and to .net. I have aproblem.Iam trying to run a procedure depending upon results from another query. Iam using visual studio 2008.Language:C# back end:mysql 5.0.1 . my code : DataColumnCollection drc = myDataSet.Tables["industry1"].Columns; DataRowCollection dra = myDataSet.Tables["industry1"].Rows; foreach (DataRow dr in dra) { DataColumnCollection drc = myDataSet.Tables["industry1"].Columns; DataRowCollection dra = myDataSet.Tables["industry1"].Rows; foreach (DataColumn col in drc) { //prefereed method //Console.WriteLine(dr[col]); //…
Last reply by LogicalPerson, -
- 0 replies
- 2.6k views
I have two procedures that work together. If a child node is selected on a TreeView control, the records for the parent are displayed and focus is given to the child record. If the parent node is selected, I simply want to display the records associated with the parent node. It worked ok (by displaying all of the data rows) until I tried to apply a RowFilter to the DefaultView. Now, the DataGridView contains 0 Rows (see line 576 below), and my app would sit there and loop until it reaches a stack overflow (because of the test condition on line 552 and the recursive call on line 554) if I tried to deply it now. Instead of getting rid of the loop condition, I'd like to f…
Last reply by joe_pool_is, -
-
- Administrators
- 5 replies
- 839 views
Hello, I use this code to loop through all items and read all of them, from 1st item to the last one! Dim ReadUsers As New OleDb.OleDbCommand("SELECT * FROM Emails WHERE GroupID = '" + MyID + "'" + SortSQL, MyConnections) Dim MyReader1 As OleDbDataReader = ReadUsers.ExecuteReader While MyReader1.Read ... End While This is OK when I want to read all items of this table. But what should I do if I want to read only item number 100 to 200? I mean in the above code how can I change the While loop to a For loop with specified start and end point? Thank you for helping :)
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 1 reply
- 726 views
Hi, Recently I wrote a Java application with NetBeans. It has one feature I would like to have in VS08: If an object is selected, it highligted all recurring instances of that object. For example: Dim X as Integer X = 10If I select the 'X' in the first line the second 'X' in the next line is also highlighted. I've searched a bit for Add-ins but I couldn't find one which features this. Does anybody know of such an Add-in?
Last reply by snarfblam, -
-
-
- Administrators
- 4 replies
- 2.8k views
Hi I need to identify video files and that as fast as possible. Since I didn't find any hash which can generate an id within a second, I only hashed a very small part of the file. Basically I did this: Divide the data into 64 equal large sections At the beginning of each section, read the first 8bytes and concat them together. Take a MD5 hash from those 512bytes Is there something I can do to optimize the "hash"? Or maybe there is already such a hash which is generated within a second.
Last reply by Arokh, -
-
Hi! I'm working on a WPF program in C#. I'm still a bit new to WPF. I wanted to know how to set a control's position(image for instance)- from code. There isn't a "img.left" in WPF. I don't know how to control an image's position by code. Can someone please help me? Thanks!
Last reply by amitairoa, -
- 0 replies
- 2.3k views
Hi every one, This is my first post... I desesperate to find the solution. This more that 3 days, I have been searching the net... Here is what I have to do. I have to write an apllication that shows patterns on a small LCD (800x600). but The patterns has to be drawed with GDI in a backbuffer, ans has to be blittered on the screen in the shortest time. in fact a triggered camera is acquiring on theses paterns. I was using Directshow, but now as all 2D is deprecated, I try to do it with D3D. Can someone show me a sample how to draw something on a surface in a backbuffer and show me how to blit it on the screen ? Thx folks ygi
Last reply by ygi, -
- 1 reply
- 2.3k views
I guess it is a longshot but i'll ask anyway: Somtimes the declaration Enums is deeply nested in a class Class Some Class VeryLong Class ClassNames Enum eBla Test End Enum Public Shared Sub TestSub(ByVal Bla As eBla) End Sub End Class End Class End Class And if one wanted to call TestSub it would result into a very long line: Some.VeryLong.ClassNames(Some.VeryLong.ClassNames.Test) Is there some way to shorten it to Some.VeryLong.ClassNames(Test)? (Without moving the enum to another location)
Last reply by cugone,
-
Who's Online 0 Members, 0 Anonymous, 48 Guests (See full list)
- There are no registered users currently online