Lok_Tan's Q&A profile
Smart Device Development Radio Buttons
Hi, I have this problem: In my application i have a dataset with some rows, and for each row i design some labels and a textbox and 2 radio buttons dinamically, so my problem is that for example if i have 4 lines (8 radio buttons) i only can have 1 radio button selected. I want to have 1 radio button selected by line, does anyone know how can i do this Thanks. Thanks for your feedback. I already solved the problem with checkboxs (with the same behaviour of radiobuttons). Note: My application is running on a PDA with a resolution of 640x480. ...Show All
.NET Development Asynchronous Web services in Vs. 2005???
So I've seen a lot of examples on how to do web services in 2003 but it apears that in 2005 there is no BeginXXX and endXXX so I'm a little lost. So far I have got this which compiles and runs but doesn't seem to catch the result like it should. Any ideas Public Class frmWebService Public Delegate Sub getIndex( ByRef newDS As String ()) Private casedoc As New disapp.clsContentManager Private casedoc2 As New disapp.getNeedIndexDocInfoCompletedEventHandler( AddressOf getNeedIndexDocInfoCompletedEventHandler) Private Sub frmWebService_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .DataGridView1.DataSource = Me .BindingSource1 End Sub ...Show All
Visual C++ DlgProc and WndProc as class members
I have been trying to write a class to manage a bundle of windows - a dialog box with some controls - and have a problem. class pane { ... HWND hPane; ... BOOL CALLBACK PaneDlgProc(HWND, UINT, WPARAM, LPARAM); public: ... pane(HWND); ... }; pane::pane(HWND hWnd) { ... hPane=CreateDialog(g_hInst, MAKEINTRESOURCE(IDD_PANE), hWnd, PaneDlgProc); ... } BOOL CALLBACK pane::PaneDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { ... return TRUE; } This returns a compiler error: error C2664: 'CreateDialogParamA' : cannot convert parameter 4 from 'BOOL(HWND,UINT,WPARAM,LPARAM)' to 'DLGPROC' If I declare the DlgProc globally, and call: hPane=CreateDialog(g_hInst, MAKEINTRESOURCE(IDD_PANE), hW ...Show All
.NET Development stack overflow and memory corrupt when use DsBrowseContainer
[DllImport("dsuiext.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern int DsBrowseForContainer(IntPtr infoHandle); public delegate int BffCallBack(IntPtr handle, uint message, IntPtr param, IntPtr data); [StructLayout(LayoutKind.Sequential)] public struct DSBrowseInfo : IDisposable { /// <summary> /// size of structure in bytes /// </summary> [MarshalAs(UnmanagedType.U4)] public int size; /// <summary> /// dialog owner /// </summary> public IntPtr handle; /// <summary> /// dialog caption text (can be NULL) /// </summary> [MarshalAs(UnmanagedType.LPWStr)] publ ...Show All
Visual Studio Tools for Office Is there any wait to find when text/bookmark is modified in Word?
Is there any way to find out when bookmark is added/deleted from "Word Template" addin If it it's not possible, is it possible to find out when anything is modified in Document In this case I can go trough all bookmarks and figure out which ones have been added/deleted So far I found only SelectionChanged event on Document, but it doesn't fire if you're typing, adding/deleting bookmark or hit "Backspace" or "Delete". Thanks, Victor Tools.Word Bookmarks is only available when using VSTO 2005 (not SE). Apparently you're not, since you don't see "Tools"... In this case, you can't use them. The VBA approach means you need to have VBA procedures named the same a ...Show All
Smart Device Development launching external application on device from c#
Hello, Hopefully someone can help me... I have two c# apps, App1.exe and App2.exe. They are both in the same directory on the device, What i am trying to do is either... Have App1 to call App2 directly, Have App1 run a file that is associated with App2 (which would automatically open up App2) or Have App1 call App2 directly and pass a file name to it to open. I have tried... CreateProcess(txtApp.Text, txtParam.Text); and a few others that i have found but they all return errors and wont compile. and i have looked at the Process class from OpenNETCF but i have so far had no success. Does anyone have any example code they can share or know of any useful links to help me on my way... (preferrably without having to use the fi ...Show All
Visual Studio Express Editions Database decimal to convert to double for Equations
Here's a nub question..... I have a database and i'm trying to bring in decimal info into a form and use the decimal in equations. when i do that i get an error saying "cannot convert string to double" how can i resolve this issue Thanks, Rob you were right...(surprised ) well there were nulls. these were created because when form1 loaded it did not open form4. i corrected this by adding this line of code: Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Form4.Show() Form4.Hide() End Sub Is there an easier way of doing this i dont want form4 to be shown at load ...Show All
Visual C# using controls form VB in C#
Hello everyone, is it possible to use controls from VB like InputBox in C# projects thanks Just add the reference "Microsoft Visual Basic .NET Runtime" to your project. you needs to import " using Microsoft.VisualBasic;" then try to access the inputbox method. For ex:- string x = Interaction.InputBox("hi","hello","nothing",10,10); MessageBox.Show(x); ...Show All
Visual Studio Express Editions How to Delete a File using VBX2005
I have a problem on my program, In VB 6 I used "Kill" to delete a file that was previously from a picture box. When I used VBX 2005, i got an error, i cannot delete the file that i previously loaded in a picture box, it says "The file is being used by another application" Can u help me please:( I guessed that calling Dispose() would remove the lock but ran into lots of trouble making that work. This finally worked for me: Dim bmp1 As New Bitmap("c:\temp\test.bmp") Dim bmp2 As New Bitmap(bmp1) PictureBox1.Image = bmp2 bmp1.Dispose() Kill("c:\temp\test.bmp") Looks to me like Microsoft is forgetting to call Close or Dispose on their internal stream o ...Show All
SQL Server Cannot create new or change existing subscriptions
We are having problems when creating new subscriptions or when trying to edit existing subscriptions. When editing an existing subscription, the report manager displays "An Internal error occured" message and when I look in the log the error says Only members of sysadmin role are allowed to update or delete jobs owned by a different login When trying to create a new subscription the report manager displays "An internal error occured" and the log says System.Data.SqlClient.SqlException: The schedule was not attached to the specified job. The schedule owner and the job owner must be the same or the operation must be performed by a sysadmin. We are running sql reporting services 2005 sp1. The report server database s ...Show All
SQL Server Help on dynamic sql results on temp table
The dynamic sql is used for link server. What I need is that the result of the dynamic sql put on a temp table. Can someone help. Im getting an error CREATE PROCEDURE GSCLink ( @LinkCompany nvarchar ( 50 ), @Page int , @RecsPerPage int ) AS SET NOCOUNT ON --Create temp table CREATE TABLE #TempTable ( ID int IDENTITY , Name nvarchar ( 50 ), AccountID int , Active bit ) INSERT INTO #TempTable ( Name , AccountID , Active ) --dynamic sql DECLARE @sql nvarchar ( 4000 ) SET @sql = 'SELECT a.Name, a.AccountID, a.Active FROM CRMSBAL ...Show All
Visual Basic initialized array
In Lesson 5 of the Absolute Beginers Video Series for Visual basic Using Branching and Recursion http://msdn.microsoft.com/vstudio/express/vb/learning/ The following statement is shown as an example of how to declare an initialized array of strings. In the video this appears to work fine. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myArray() As String = ( "Sammy" , "Jimmy" , "Sally" ) MessageBox.Show(myArray(1)) End Sub But when I create this statement I get errors like: 1. ')' expected 2. myArray is not declared. What's missing What am I doing wrong I love trying to learn something new and, i ...Show All
Visual C# Designer Generated Code: SizeF
What does the 'F' accomplish or stand for in designer generated code for form ' AutoScaleDimensions' this .AutoScaleDimensions = new System.Drawing. SizeF (6F, 13F); Immediately following this code in designer generated code: this .AutoScaleMode = System.Windows.Forms. AutoScaleMode .Font; this .ClientSize = new System.Drawing. Size (292, 262); Why have 'SizeF(6F, 13F)' when the size is explicitly declared as 'Size(292, 262)' The Designer then adds the hidden methods: this .ResumeLayout( false ); this .PerformLayout(); ... attempting to create a new library class. Hi, TMB. >> What does the 'F' accomplish or stand for in designer generated code for form 'AutoScaleDimensions' &qu ...Show All
SQL Server Ole DB Destination - Fast Load - Permissions
All, If I use an OLE DB Destination with Fast Load, and enable check constraints, I would expect to see this work as BCP would in this scenario on 2005. However, instead, I get the error ALTER TABLE permissions required. I understand that when using BCP, if you disable check constraints and triggers, then you need alter permissions. But, when you explicitly enable these, then you do not need this permission. I would expect the same behaviour in SSIS, but I am not seeing it. Fast Load seems to always require ALTER TABLE permissions. Can anyone confirm/deny this Thanks, dcb99 I have a table where I have a simple constraint of having the value of a column less than a certain value. I can use da ...Show All
Software Development for Windows Vista State Machine Exception Handling
Can anyone tell me what the best practice is to handle exceptions in a state machine process. I would like to move the instance to different error states depending on the type of exception. It would seem that normal compensation processing is not available in a State Machine Regards Jaco I suggest that you create a simple state machine workflow. In the event driven activity throw an exception and debug the fault handler. This will allow you to step into the process and evaluate the result. I have had some issues with regards to catch and rethrow, but in most cases the out-of-the-box functionality works as advertised Regards Jaco ...Show All
