Tej62007's Q&A profile
Visual Studio 2008 (Pre-release) how to pass URL query strings from one xaml to other.
how to pass URL query strings from one xaml to other. this might help http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=366650&SiteID=1 ...Show All
Visual Studio Lost Keys (Problem deleting chars)
I'm not sure using the right section. If there is a better one, feel free to move this topic. Now my Problem: I can't delete any chars from my Source using Visual Studio 2006 Professional. I can insert code but i can't delete it. I can't insert a line using ENTER. BSP and DEL doesn't work. Coding without this keys is very... complicated. Is there anybody who knows to fix this problem Thanks I was turning blue of the effort of getting vs to work: Slightly different problem but one of the solutions here fixed it, but the standard fix did not help. problem: Server explorer does not respond to commands to display pages making it impossible to open webpages. And does not respond to backspace ctrl-z ...Show All
Windows Forms Approach to drag picture around
Hi, I am pretty new to .net development. I have a tabcontrol. In it I programatically add tabs. In each tab I programatically add a panel. Now I select the first tab and programatically create a PictureBox. So far, so good. I see the picture. Now I want to be able to grap the picture with the mouse and move it to another location within the selected panel. The PictureBox does not have a private or public variable definition in the class. I can add an 'unlimited' nr of pictures, each in a PictureBox. In words it would be something like this: On mouse_left get the PictureBox the mouse is clicking on. While mouse_left_is_down PictureBox.Location = mouse.Location (follow mouse) On mouse_left_release leave the PictureBox at the release location ...Show All
Windows Search Technologies WDS 3.0 Beta 2 Crash srchadmin.dll
Hi! Every time I try to go into the filetypes in the Advanced option dialog WDS crashes on me. I get up a box saying "RUNDLL An exception occurred while trying to run "shell32.dll,Control_RunDLL "srchadmin.dll"". I used to have WDS 2.5 with some extra IFilters but I removed all that before I installed the beta. Thanks. Matt It looks like this happens with the RTW (final) version of WDS 3.0 as well. It happened on 2 different PCs here at work that had WDS 2.65 installed. On my PC which did not have any version of WDS installed, this was not a problem, although that could be a coincidence. ...Show All
.NET Development VbCode Why doesn't it work.2
Ok Im not sure if you got your answer yet, it is possible I may have misunderstood what you are needig however... Perhaps this will help Imports System.Xml Public Class Form1 Dim xmlFile As String = "..\Cars.xml" Private Sub btnMake_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMake.Click Dim xmlDoc As New XmlDocument xmlDoc.Load(xmlFile) For Each myNode As XmlNode In xmlDoc.DocumentElement.ChildNodes If myNode.Name = "car" Then txtMake.Text = myNode.FirstChild.InnerText End If Next End Sub End Class This will loop the nodes in your xml file and deliver the inner text contained within the element <make> Hope this helps ...Show All
SQL Server Object reference not set to an instance of an object
Hi I m trying to access a server report through report viewer control. I got the error "Object reference not set to an instance of an object". I have administrator rights on the reporting server. My code is as follows: ReportViewer.ServerReport.ReportPath = "/Reportfolder/reportname" ReportViewer.ServerReport.ReportServerUrl = New System.Uri( "http://servername/ReportServer" , System.UriKind.Absolute) ReportViewer.RefreshReport() I have created this report using Business Intelligence Projects. I am using textboxes and rectangles throughout the report. When I compile and run the project through Business Intelligence Studio, it works very fine, but when I try to access it through direct ...Show All
Software Development for Windows Vista [BUG] Vista doesn't start application called "install" w/o being elevated.
Hi, I just encountered this really strange behaviour, which is definitely a bug in Vista. Consider the following situation. You're logged in as an administrator account. Start a CLI shell of your choice, start it normally, so that it's running non-elevated. Now consider a console application called install.exe. It's neither a GUI application, nor is it an installer application in the Windows sense. It's just called install.exe. In my case it's part of GNU coreutils and it's called install because it's usual task is to install software on the system. However, it's perfectly valid to call install as normal user and use it to install stuff into a subdirectory on which you have permissions. This is what happens when running under Cygwin (proce ...Show All
Software Development for Windows Vista Modifying custom composite activities at design/runtime time inside of a workflow.
If I create a composite activity that inherits from SequentialActivity and has a number of other activities added to it and drop this new activity on a workflow is it possible to modify it at design time. So if one of the sub-activities I dropped on my composite activity was a sequential activity can it get modified after it is dropped on to the workflow. Basically what I want is to be able to create custom activities with certain common flows but at some point I want to be able to put a place holder in that flow to allow someone reusing my custom activity to do something custom. 2nd question related to the first. Same situation but instead of a placeholder (i.e. sequential activity) inside of this custom activity I want to use an ...Show All
Visual Studio Express Editions C#.net 2005 application with MS ACCESS db?
hi, I am trying to build a C# win form application that uses MS ACCESS database, I have a login screen, i want to compare the input username and password with the actual username and password stored in ACCESS db, and let user login when they match. I can do this in c#.net2003, but no idea how to do it in 2005, plz help thx ahmedilyas again for ur quick reply~ regarding to the connection string issue, I went into all possible places to find the connection string, which is very inefficient. could u plz advise a better practice to keep track of and retrieve the connection string for my case thx in advance ...Show All
Visual Studio Substring on Formula field?
Hi, I'm developing some reports with vs2005 + C# + Cristal Reports. I have a field that i have to format to show in report. The field is string and it value is something like this: '78171300' '98547236' and i have to show like this: '78171-300' '98547-236' I have a formula field that i want to do like this: 'CEP: ' & Substring({DATA.Cep}, 1, 5) & ' - ' & Substring({DATA.Cep}, 6, 3) but cristal doesn't have a substring function. How can i do that thanks. Hi Alessandro, Try: Left ( { InputString}, 5) & '-' & Right ({ InputString}, 3) If you always have 8 characters of input text, then this should provide the same functionality. - D ...Show All
Gadgets How to add Vritual Earth API in the Live.com Gadget?
Hi, Is there any way to add Vritual Earth API to Live.com Gadget It seems failure if writing "<script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script> " in the gadget content. Thanks But where's the fun in writing a Yet Another Iframe Gadget You may have had an easier time getting your iframe gadget going, but I'll bet startlet had a more fun time trying to figure out how to pull in the VE controls and hook them up inside the gadget itself. I'm a huge fan of non-iframe, non-flash gadgets. Yes, you can do some neat stuff by wrapping some external web page or flash movie in a gadget, but that's just plain boring. I'd rather figure out ...Show All
.NET Development WSE 3.0 get UsernameToken
How do i get my UsernameToken in a web Service [ WebMethod ] public string HelloWorld() { UsernameToken token = // how String username = token.Username; return username ; } Thanks. Paul. If you are using the default WSE 3.0 UserNameTokenManager then the userinformation is stored into the IIdentity after succesful authentication. using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using Microsoft.Web.Services3; [ WebService (Namespace = "http://tempuri.org/" )] [ WebServiceBinding (ConformsTo = WsiProfiles .BasicProfile1_1)] [ Policy ( "ServPolicy" ...Show All
.NET Development SqlConnection object and garbage collection
Hello Friends I am running this code to see number of pooled connections and total connection pools in performance monitor. This is just getting big pain. Everytime I run this 3 lines of code number of connections getting increased by 2 all the times and number of connection pools by 1. In .net pooling is by default true. I dont know what to do. Please suggest using System; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace TestApp { class Class1 { [STAThread] static void Main( string [] args) { SqlConnection Connection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); for ( int i=0;i<10;i++) { Connection.Open(); Connection.Close(); } ...Show All
Visual C++ BUG: when throwing exception a copy occured.
class Ex { public: Ex() { destroyed = false; cout<<__FUNCTION__<<endl; } //Ex(const Ex& v) //{ // destroyed = false; // cout<<"copy:"<<__FUNCTION__<<endl; //} ~Ex() { destroyed = true; cout<<__FUNCTION__<<endl; } bool destroyed; void M()const { cout<<__FUNCTION__ <<": "<<(destroyed "destroyed": "not-destroyed")<<endl; } }; void M1() { throw Ex(); } void M2() { try { M1(); } catch (const Ex& ex) { cout<<"Catch-beg ...Show All
Visual C# Wierd error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Ok I have a project that runs fine from the IDE, the problem is if I install the app or run it from the bin\release folder then I get this error on one of my method calls. I have tried this on a test machine and on my development machine and the results are the same. I have spent hours trying to figure this one out....... The crazy thing is, the method shows up in the stack trace but there is not code at all executed in that method. Mike Martin wrote: ok, just an update on what I found. I had the following in a method x=(variableA+variableB+ anothermathfunction(variableC,variableD)); what I changed that fixed my problem: y= anothermathfunction(variableC,variableD); x=(variableA+variab ...Show All
