Ravencraft's Q&A profile
Smart Device Development SIP Disappears after MessageBox.Show() -- Doesn't come back
I have strange problem that SIP disappears after the messagebox.Show() is called and never shows up again. 1. I have 5 forms and One form is the startup form. I am displaying other 4 forms as ShowDialog when particular button is pressed in the MainForm. 2. Whenever I have informational message box MessageBox.Show() the SIP disappears. After I click OK in the message box, the SIP still doesn't comeback. If I remember where the SIP was before and if I click that place SIP appears again. So SIP appears again only when there is only 2 Sub Menu Items. In that case SIP Icon was in the bottom middle of the MenuBar. In these cases SIP comes back after I click wher the SIP was. 3. But SIP doesn't come back when the SIP was at the Bott ...Show All
SQL Server run-time changeable queries
I need to extract and store a value from a table (or from a MS Access file with OpenDataSource) which is not always the same and it is therefore stored in the @openfile variable. Something like this: ... declare @standardselect nvarchar(4000) declare @value int select @standardSelect='select top 1 @value=val from ' + @openfile exec (@standardSelect) ... It obviously doesn't work because the variable @value is not declared within the sql string. However, since @openfile is always different, I need to pass it through a string and the only way I know is within a variable. If I declare @value inside the @standardselect it is not accessible to the rest of the procedure, which is not acceptable for me. Any suggestions ...Show All
Visual Studio Where can I get December 2005 version now?
Hello, please where can I download Dec 2005 version now All links redirect me to June 2006 version which doesn't work with Smart Client Software Factory right now. Thank you, Borek Hello, I followed the instructions in GettingStarted.rtf file which comes with SCSF but everytime I try to build any solution, this error occurs: Error 1 Assembly 'Microsoft.Practices.RecipeFramework.VisualStudio.Library, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' uses 'Microsoft.VisualStudio.TextTemplating, Version=8.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'Microsoft.VisualStudio.TextTemplating, Version=8.0.0.0, Culture=neutral, Pub ...Show All
Visual C# Variables and Methods
I have passed two variables into a method, and it modifies them internally, and then assigns them. For example: public void MyMethod(String var1, String var2) { String methvar1 = "x"; String methvar2 = "y"; var1 = methvar1; var2 = methavr2; } When the method exits teh external variables (var1 and var2) are unchanged, even though in the method they have been reassigned. Normally I would just return the variable to avoid this problem, but how do I return two variables at once Arrays dont work as in my actual code they are each arrays. Any ideas Mike Parameters are passed by value, for strings that means that you get a copy of the reference. In your method you are changing the reference ...Show All
Smart Device Development get sms from the inbox
how to get sms from the inbox my develop platform is c# .net cf 2.0 Thank you Try this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/ReceivingSMSMessages.asp http://www.microsoft.com/downloads/details.aspx familyid=98CCF3D4-DB7C-4A7D-A323-53BBDBBE0420&displaylang=en#RelatedLinks ...Show All
Visual Studio 2008 (Pre-release) Authenticating to Proxy and Service destination with username password.
Hi, kennyw blogged about this a while ago http://kennyw.com/indigo/143 and i seem to be running into this problem. As 'proxy authentication' and 'service authentication' use the same credentials store i cannot log on to the service with username/password credentials and log on to the proxy with different username/password credentials. I am running into this problem by several clients who try to access our service. The current implementation of this in WCF is very limitting to me, how should i go about to fixing this problem Jusy for your information its not acceptable to use the same username password combination at the service and proxy (as this involves 2 different companies.) @#$##% hell, ...Show All
SQL Server i'm sorry man no was my intention
i’m sorry my bad english i have a dts in sql server 2005 for example in sql server 2000 i can do that : over DTS right-clik choose option "Scheduled pachage" and this create a scheduled what i mean is that this produces a "JOB" what i mean is that i need to know how can to create a scheduled to DTS’s in sql 2005 Please anyone of you provide some solution for this. Thanks BSalvo. I added my SQL ID as a member of SQLAgentOperatorRole under msdn database. And now it's working well! I had to use SQLAgentOperatorRole because my SQL ID is not the owner of the SQL job. ...Show All
SharePoint Products and Technologies State Machine Workflow - change state
anybody know how to Dynamically change state in Sharepoint State Machine workflow ...Show All
Software Development for Windows Vista IEventActivity
Hi all, I want to custom a activity which have the same functions of HandleExtenalEvent, how to do or how to implement IEventActivity. many thanks. You might want to take a look at several examples to get a feel as to how it works. I'd start with the FileSystemWatcher sample activity and the Workflow Adapter/Connector pair sample. You can also take a look at the Custom Activity Framework , which has some support for this. I also have a couple of articles on the basics of implementing event activities here and here . My own MsmqReceiveActivity sample also shows how to implement it. ...Show All
Visual Studio Tools for Office Right Click Event on Email Item
Right now i am trying to edit the right click menu of outlook 2003 using VSTO. also i want its events so that i can do some necessary work becore the right click menu. Any help regarding this would be appreciated. In versions before Outlook 2007, Outlook does not directly expose the right-click context menu in its CommandBars collection. You will, however, see a new right-click command is when the item selected is using a custom form that includes one or more custom actions. You can also add a custom action without using a custom form, as demonstrated at http://www.outlookcode.com/codedetail.aspx id=526 Richard Kagerer has posted a code sample at http://www.outlookcode.com/codedetail.aspx id=314 that shows how you might trick Outlo ...Show All
Visual Studio Express Editions Problem linking Win32 application
I've followed the instructions here to set up Visual C++ Express with Platform SDK to build Win32 applications: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx I can create a Win32 application using the Win32 wizard. When I try to build the application, the Linker gives this error (any many others like it) unresolved external symbol __imp__TranslateMessage@4 referenced in function _wWinMain@16 It seems that the linker is not able to find the libraries which include the Windows API functions. It is as if the include and library paths have not been set but I have made sure they are pointing to the Platform SDK paths as per the instructions on that page. What could I be doing wrong Why can't the linker find these func ...Show All
Visual Basic Passing the values from a custom dialog box back to the original form
Hi, I have a form that contains a button on it. when that button is clicked, i have a custom dialog box that contains 3 different buttons. the user should click one of these buttons, the dialog box close, and then some code run in the original form depending on which button was clicked in the dialog box. how do i do this I assume that its something to do with passing parameters back and forth between the forms, but i am not sure how to do this with the sub_click subs. Any ideas Thanks, ben thanks for your help, this did get me thinking and i ended up just placing the buttons on the original form. keep up the good work, this forum is really helpful ...Show All
Visual Basic what is wrong with this?
dim y_m as double dim y as integer y_m = 6.09 For i = 1 To 12 y_m = y_m + 0.01 y = y_m If y_m = CDbl(y + 0.12) Then y_m = y + 1 End If Next When y_m is 6.12 the if statement doesn't catch that fact!!! The CDbl() function doesn't seem to help. It doesn't work whether or not I have the conversion function. Single precision is even worse because adding 0.01 several times gets you not 6.10 and 6.11 but something crazy like 6.110002. Brian Well then there's something wrong with the VBEditor because when I put the cursor over variables, it shows exactly 6.11 not 6.1100002. The only time I see 6.1100002 is when the type is Single. I fully expect th ...Show All
Internet Explorer Development The issue of 'Zoom' of 'Page'
Hi,all, When I try to use zoom in and zoom out of 'Page-Zoom' by pressing Ctrl+"+" and "Ctrl+ "-",elements of form and characters superposed each other. You can try to visite www.google.com and press ctrl+"+" after the page loaded. I have made a simple testing for that. a.Use a table to locate, 'Zoom' will work well:<html> <body> <form> <table border = 1> <tr><td><INPUT type="checkbox">aaaaaaaaaaaaaaaaaa</td><td>aaaaaaaaaaaaaaaaaaaaaaaa</td></tr> </table> </form> </body> </html> b.Don't use table tag to locate. <html> <body> <form> <INPUT type="checkbox">aaaaaaaaaaaaaaaaaa</td><td>aaaaaaa ...Show All
SQL Server DDL Extraction
Does anyone know how to pull DDL create statements out of a SQL Server 2005 EE database for existing objects I'm mainly concerned with indexes and constraints. If possible I can create the statements myself if I can get all of the information out of the databse. Thanks in advance You can look in the system views and get all the information you need. INFORMATION_SCHEMA prefixed views are a more denormalized version of the sys.XXX views and will contain most everything you would need to script create statements. ...Show All
