Jakein2006's Q&A profile
Software Development for Windows Vista Workflow VB Snippet Error on Build
We recently upgraded to the Feb WinFX CTP and have been encountering the following VB workflow snippet errors during the builds: "C:\Program Files\Microsoft Visual Studio 8\VB\Snippets\1033\Workflow\DependencyProperty - EventHandler.snippet: Missing or invalid Code tag" The Error List Window header shows 0 Errors, 0 Warnings, and 0 Messages. However, the above error is displayed in the Output Window. All projects in the solution build without errors. Before installing the Feb WinFX CTP, we first uninstalled the VS 2005 Extensions followed by the Jan WinFX CTP. We rebooted then installed the Feb WinFX CTP followed by the VS 2005 Extensions. Has anyone run into this problem We are not using either VB or snippets in our ...Show All
Visual Basic vb.net equivalent of selection.insert shift:=xldown
am able to open my xl template with interop and can iterate through datatable to write rows to the template. Running into a problem when trying to insert a row and shift following rows down Dim iddatatables As DataTable = Me .RCSDataSet.InvoiceDetails Dim idx As Integer = 1 For idx = 0 To iddatatables.Columns.Count - 1 Next Dim row As DataRow Dim rowidx As Integer = 15 For Each row In iddatatables.Rows For idx = 0 To iddatatables.Columns.Count - 1 xlsheet.Cells(rowidx, idx + 1) = row(idx) Next rowidx = rowidx + 1 Next Catch End Try is there a .net equivalent of selection.insert shift:=xldown any help would be appreciated. i've tried if ...Show All
Windows Live Developer Forums Non-Framed Feature
Are there any plans to make the non-framed feature actually work Currently if you turn of the frames and menu bar you still can't mvoe the window to the top of the screen, making this feature redundant ...Show All
Windows Live Developer Forums Adjustable tile layer opacity via DHTML?
Hi, I was wondering if it is possible to adjust the opacity of a loaded tile layer via a dhtml control's event, say a slider. I've tried it but the tile layer seems unaffected by the slider setting a new opacity value even though I've made sure it's a float between 0 and 1. It doesn't even work when I hard code an appropriate value to be set on event. Another temporary option would be to scan the page's DOM and look for img tags that have a src set to your location of custom tiles. For example, I see a series of img tags like: < img src= http://localhost:8080/layertiles/layer1/032003210.png style=" left: 576px; top: 272px; width: 256px; height: 256px; position: absolute; z-index: 1; opacity: 0.5; "/> ...Show All
Software Development for Windows Vista Display an image
I am re-hosting the workflow designer, and i want to change the look and feel on the activities in the workflow. To make them look like blue rectangles I have added this code: (I am overriding the OnPaint method.) protected override void OnPaint( ActivityDesignerPaintEventArgs e) { base .OnPaint(e); Rectangle frame = new Rectangle ( this .Location.X, this .Location.Y, this .Size.Width, this .Size.Height); Brush frameBrush = new LinearGradientBrush (frame, Color .DarkBlue, Color .LightBlue, 45); e.Graphics.FillPath(frameBrush, RoundedRect(frame)); } Instead of showing a blue box I want to show an image. Is this possible Can anyone show me what code I need to add ...Show All
.NET Development SecureString Usability
I'm sure this is very obvious, but why doesn't the SecureString class support an "AppendString" or equivalent method I've searched the forums and cannot find an answer I've seen code that simply iterates the characters in a string and appends them as it loops. Is this bad practice If not why isn't the SecureString class more helpful Can anyone help I'm confused... Thanks One key thing to remember about SecureString is that just like the regular String class... is immutable, so every time you want to add a character to the string at a time, a new instance needs to be created which is why there is no Append() method as there is with the StringBuilder class. Furthermore the use of a ...Show All
Smart Device Development Taget the different Device
Hi, I developed an application for Pocket Pc2003. I want to target to Treo700WX. But Generally I get only 5 devices in the list (in "Deploy" window) when I use F5 to deploy and debug. Treo700WX is already added to All platforms menu(Tools-->Options-->devices--> All platforms). Can anyone tell me how to target the Treo700WX or any other device. Is there any way to find whether my Pocket PC is phone edition or not. because I want to add Vibration, LED, and SMS notification which works on only phone edition. Thanks in Advance, Thank you Illya Tumanov. I got the solution. If anyone else get the ...Show All
Visual Studio Tools for Office Calling .Net Class Library
Is there a version of MS Access which support calls to .Net Class Library For example, would MS Access 2007 be able to call .Net Class Library written in C++/CLI (vs2005). Hi Charles You need to pursue this in an Access newsgroup. I think Access has the same (or similar) capability as other Office applications to work with COM Add-ins and COM libraries. This means you'd need to put your code in a COM Wrapper and register it under Windows. If you're not familiar with that, I recommend ".NET Development for Microsoft Office" by Andrew Whitechapel (MS Press). ...Show All
Visual C++ Visual Studio Aborts
When I try to add a new variable from an object, the dialog appears Ok. Then I pull down the Access field and then VS Aborts. Anybody have any suggestions Thank you. So, you are using the MFC dialog editor and you encounter a crash when using dropdowns in one of the wizards. Do you, by any chance, have IE 7 Beta installed If so, please see: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=460029&SiteID=1 ...Show All
.NET Development Binding Data retrieved from text file to textbox
In my following code example everything is running peachy except for when I'm trying to tie results[l] = rprtARR .ToString() I keep getting a null exception. I tried declaring string[] results = null; but that did no help to me. Obviously I'm a novice but I've been working my way through this thing. I am coming from developing in Visual Basic so I'm pretty rough around the edges. Thanks in advance for the help and here is the code: private void panelComboBox_SelectedChangeCommitted(object sender, EventArgs e) { using (StreamReader sr = new StreamReader(@"C:\LS.rpt", Encoding.GetEncoding(437))) { char delim = ' '; string entry; string panel = panelComboBox.SelectedItem.ToString(); st ...Show All
Visual Studio Express Editions About delegates
Can someone tell why this does not work, maybe (more probably) i'm too stupid to understand I have this error: error C3352: 'void ThreadAnalisys::Form1::SetRenderText(System::String ^)' : the specified function does not match the delegate type 'void (System::String ^)' The delegate is: public delegate void Iwant2ReceiveMsg( String^ msg); The SetRenderText is a function inside a Form. Ok, i figured out, after studing I found that what was missing it was the object ref that contains the function. Iwant2ReceiveMsg^ r = gcnew Iwant2ReceiveMsg(myForm,&ThreadAnalisys::Form1::SetRenderText); ...Show All
Windows Live Developer Forums Terms of use?
I have been going around and I am sleepy so forgive me, but where can I find the terms of use of the Windows Live search API, I have gone and created a script using PHP and I thinK it has some cool options, however I dont want to break terms of use, so I better read them! Also how much on average would fifty thousand queries cost ^Yours most, Daniel! Non-commercial usage agreement terms is here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/MSN_Search_Web_Service_SDK/HTML/AccessingTheMSNSearchWebServiceSOAP_API.asp ...Show All
Visual Studio Express Editions accessing custom properties of a file
I have written an app in VB.net 2005 express. This app is responsible for automatically moving new files around in my FTP server (located in my office). While this app is doing it’s thing, it is gathering information based on the file name and a some of the file’s properties (like the size and the date last modified) and creating text logs. I plan to create a database to hold all of this information, once I make a few tweaks in the app. One of the tweaks concerns the MS Word docs that are uploaded to our FTP. These Word docs have some information that is stored in their “custom properties”. If you were to right mouse click on any of these docs, you have access to the custom properties without having to open the doc. Is there a w ...Show All
.NET Development Timer doesn't seem to last forever
Hello. I have a timer in my app that fires every 15 seconds calling a function. It appears that after about 8 hours of running the timer stops calling the function even though the program continues to run. I define the timer in my main class like this: private System.Timers.Timer timer = new System.Timers.Timer(); Then in one of my init functions I set it like this: timer.Interval = 15000; timer.Enabled = true; timer.Elapsed += new ElapsedEventHandler(UpdateStats); timer.Start(); The function UpdateStats is called for about the first 8 hours. Then it isn't called anymore. To confirm that it isn't called anymore I have a a file being written to in the function that appends the current to the file. After 8 hours the f ...Show All
Visual Basic VB.net 2003 debugging problem
Hi all, I have a strange issue within vb.net 2003. I'm trying to step through some code within a project for example: if txtpassword.text = "" then msgbox "You must enter a password" exit sub end if If I put a breakpoint on the first line, when I run the app the breakpoint moves to the third line. What's stranger is when I step through code within this project it even steps onto empty lines. This is only happening within this one project. All of my other projects are working correctly. Does anyone know how to rectify this Thanks Paul I had that problem once. I resolved it by highlighting all the code and collapsing all the code. After that i turned off ...Show All
