nilaavu's Q&A profile
.NET Development AppDomains and delegates: the hidden quirk!
Hi, So I've partitioned my app into multiple app domains. Everything works fine If I use the objects through interfaces (defined in a shared dll). In other words, an assembly in one domain is not loaded up into the other domain when calling the object. Interfaces provide an extra level of indirection. Using an object directly will cause that assembly to be loaded into the calling domain which defeats the whole purpose of the secondary domain. Now, all was working fine until I decided to use a delegate. I have a key binding system going on, where you can bind a keyboard button to a method (ie. 'W' is Camera::MoveFoward). The problem (I think) ...Show All
Windows Forms a control that looks like VS.NET toolbox
How can i create this kind of control Or where kan i buy it I have tried to make something that looks like the Visual Studio toolbox. But i cant get it right! Please help! I'm trying to greate a "button list" that has the same look and feel as the VS.NET toolbox... I have checked out the lib you sugested, but& ...Show All
.NET Development UserID and PWD sent to Webservice
I have this code in my client app "windows forms": CredentialCache cc = new CredentialCache (); WebService ws = new testApp. WebService (); cc.Add( new Uri (ws.Url), "Basic" , new NetworkCredential ( "userName" , "MyPwd" )); ws.PreAuthenticate = true ; ws.Credentials = cc; MessageBox .Show(s.HelloWorld()); Now, in the server side "web service", how do i retreive the user id and the pwd i added to the credentialcache.. i tried User.Identity.Name but it showed me the name of the current windows user that uses the Client app.... Thanks If u r using IIS ...Show All
Visual Studio Team System Performance Wizard Error
Hello, I am trying to run performance wizard for my web application. when i try to do this i am getting given below error's. Launch Error: The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost:1375/src/VSEnterpriseHelper.axd' returned an error: The information returned is invalid. PRF0017: Can't launch server for 'D:\...\src\'. given below is my web.config file. < xml version = " 1.0 " > <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. U ...Show All
Visual Basic Understanding late binding
I started a project with Options Strict Off and decided to turn it on after reading about it. I got the error regarding late binding being disallowed. I have checked some books, online help and several postings on this site about binding. I basically understand the difference between early and late binding, but I don't know how to fix my code to comply with Options Strick On. Here's the code. It is in a private sub for a button click. The underlined code is what causes the error: dim ID as String ID = Me .CaseNumDataGridView.SelectedRows.Item(0).DataBoundItem( "CASENUM" ) CASENUM is a text f ...Show All
Software Development for Windows Vista Error 0x88982f50 when setting properties on Vista 5270
I'm trying to set some properties on a JPG file in order to experiment with the search & organize APIs. I'm using the December CTP - Vista build 5270. I get an error every time I try to do this. I get the same error whether I use the Windows Explorer or the APIs. I used Paint (the ancient drawing program bundled with Windows) to create a small, simple bitmap of a scribble in my Pictures directory. (G:\Users\ian.IDG\Pictures on this machine. Yes, that is G: and not C:) I then went to the Start menu and selected 'Pictures', which opens a Windows Explorer window showing the Pictures folder. If I select my newly-created file (whi ...Show All
Visual Studio Express Editions Random Numbers again!!!
Hi there, i think i have gotten into a bit of a fix... here is the problem: i have used the random obj to generate random numbers between 1 to 90. some times when the application runs, it picks a number twice. for example an output would be 2,8,34,2,67.... is it possible to make sure all numbers picked are only selected once that is if i request for 10 ranadom numbers, each 10 digits would be unique... this is driving me nutts!! thanks 4 ur help Slow. Hi Slow, One way would be to keep a list of previously generated numbers, whenever a number is generated check the list, if th ...Show All
Software Development for Windows Vista Does the "Fill to Actual Size" icon (in the lower-right corner of the designer surface) raise any events when clicked?
Does the "Fill to Actual Size" icon (that appears in the lower-right corner of the designer surface when the size of the parent app window is restored to something smaller) raise any events when clicked 1. If so, which event of which object(s) I'm guessing that WorkflowView is the object. 2. Are there any settings to disable the "Fill to Actual Size" icon and its behaviours Michael. The event raised is zoom change. It is not possible to disable this in current drop you have; I have entered this as a bug in beta2. We can hopefully fix this. Thanks ...Show All
SQL Server Modifying generated XSD file
Hello, I am working with an .xml file that I want to break up into various tables. A couple of fields in my xml file include html tags (<p> tags specifically). The generated xsd file thinks these are nested xml tags and creates a "P" table for the information contained. Is there a way I can modify the generated xsd within the designer Or is the only way to fix this is to manually modify the xsd There is also an <id> tag within the xml. However, SSIS is not using that <id> as the primary key as it adds data to the various tables that I've specified. Instead it appears to be creating its own primary key - cal ...Show All
Windows Forms SnapToGrid
Hi, i develop a custom windows forms designer, using Visual Studio 2005 and C#. When I started I searched the Internet for sample code and found some here: http://support.microsoft.com/kb/813808/en-us or http://support.microsoft.com/ id=813808 . This custom forms designer - compiled with visual studio 2003 + .Net 1.1 - showed a grid over the designed form and was able to snap controls to the grid. Since using .Net 2.0 u obviously have to implement these features by your own, which is not that difficult for drawing the grid (just override the DrawGrid property of the rootdesigner, which i wrote my own class for using Documen ...Show All
Visual Studio Team System Documents not accessible from team explorer
Hi, I've installed Team Foundation Server on our server, and installed the team explorer on my machine. Every thing is working fine, I can create a team project on the server, and I can access it from my machine. I can access all the items, except for the Documents. I have to go to the project's sharepoint site and add the user manually to the site's users. Is there a way to make team system create the sharepoint users when its creating the site, instead of doing it manually Thanks in advance. Hey there, What do you mean when you say you cannot access the documents in Team Explorer Are the ...Show All
Visual Studio Team System TF26027 error after work item import
I created a custom work item type and uploaded it to 4 Team Projects. On 3 of these Team Projects all seems to be working fine. On the 4th Team Project, when I click 'My Work Items' query I get an error showing "TF26027: A field definition somefield in the work item type definition file does not exist. Add a definition for this field, or remove the reference and try again." Please note this was the exact same work item uploaded to all projects, but only one complains. I ran witfields, and verified that the field it complains about does not exist. I also verified that there are NO references to this field in the work i ...Show All
Windows Forms Send text to another form
Or, get text from a textbox or label from parent form under conditions. Ok, declared this on parent form... public bool isFoward = false ; And, in the button click event.... isFoward = true ; compose newMsg = new compose(); newMsg.Show(); So, when I read isFoward from the parent form in the load event from compose form..... if (frmMail.isFoward) this .txtMessage.Text = "test"; But, isFoward is always false I even tried to create a hidden label to read but is always an empty string. I can read textbox contents though from parent form. Suggestions Thanks, Zat ...Show All
Visual Studio 2008 (Pre-release) DockPanel Width Limited by Bitmap effect?
Hi all, Ive been struggling to make a dockpanel component wider than around 900 pixels - im using one as a header on my application - it therefore needs to expand to fill the full width of the application. It seems to be limited by the application of a BitmapEffect drop shadow. For example with the followign code the dockpanel downt paint anywhere near 1700 pixels wide, but when i comment out the bitmap effect element the panel fills the width of the screen as it should. I really need the drop shadow though! I think this may be a bug in WPF. By the way - the Border is inside a Canvas.... <Border Width="1700" Margin="39, ...Show All
Windows Forms New Window
i am making a browser in vb 2005 beta but sometimes when i click a link it opens in a new window in Internet Explorer now how can i have it so it opens in a new version of my own browser or a browser on a second form any help would be greatly apreciated. So what if you use the entire code on that site, does it then still not work on your particular computer ...Show All
