Thiru_'s Q&A profile
Visual C# How to nest any custom files, other than .designer.cs /.designer.vb or .aspx.cs, in VS.NET 2005
Hi, I want to specify somehow to VS.NET 2005 which extensions to nest in the solution explorer. For example it automatically knows to nest some files such as .Designer.cs or .aspx and .aspx.cs. I have my classes, and I want to extend that feature to other keywords, such as .Generics.cs or .Properties.cs etc. My first thought was that there should be some registry keys where you add what keywords are "nesting" the files. After a lof of research with no luck, I have decided to make my add-in or macro to nest my custom files together. But, no luck yet, since there is no DOC for these clasess/properties. E.g. The only doc about FileProperties2.IsDependentFile is on MSDN: This member provides internal-only ...Show All
Windows Forms Minimizing and then Maximizing my application prevents windows from appearing!
Hi All - I have a problem that I cannot for the life of me solve. I hope someone can help me out. .NET 2.0 / C# I have an application that is a touch screen application, and as such, I have a main window that is borderless and its initial WindowState is set to Maximized. On top of this main window, I have 3 additional windows that are placed in specific positions calculated using the Screen.PrimaryScreen.Bounds. All of these windows have their Owner property set to be the main window. (Not sure if this info is relevant) Because I do not have a form border, I offer a "Minimize" button that when clicked sets the WindowState of my main window to FormWindowState.Minimized. When the user maximizes the application ...Show All
Visual Basic WScript is missing/broken
Hi I have an app I built a while ago under Win2000, but have since "upgraded" to XP.... It appears to compile just fine, but when I run it on another machine, I find this in my log: Public member 'exec' on type 'IWshShell2' not found. Meanwhile, back in my IDE (either VS 2003 or 2005, same thing), the only thing that shows up in the autocompletion for oShell, after creating it like this... is "GetType" oShell = CreateObject("WScript.Shell") obj = oShell.exec(strExec) Note that the .exec remains lower case. It's like I'm missing a reference to whatever the WScript.Shell is in. Any ideas At this point I'm seriously considering chucking this entirely and starting over with java. Thanks ...Show All
Windows Forms DataGridView Red "X"
Hey all, I was wondering if anyone has seen an annoying Red Cross on their DataGridView controls yet in .NET 2.0; and if you have any pointers on what causes it or how to resolve them So far it only occurs on the Q&A team’s systems that they are testing the system on; yet I can’t replicate this on my machine (or any of us developers for that matter). The only resolution I’ve been able to try and isolate and ratify it, is to set the data source to nothing and then rebind it on refresh… It is still odd that this happens though and I can’t seem to find much help on the net or google (before anyone says JFGI J ) I know it is because the object is not set to anything - but: The form is still visib ...Show All
Visual Studio Tools for Office Multi-threading in VSTO
I have read throught many texts and i am not able to get to a conclusion. I have an excel application. The application queries various tables. After data is obtained through each table it is processes. Doing everything serially takes a lot of time. Is there any way i can put each task on a separate thread. None of the threads will be calling the Excel COM server. The tasks will perform data access/processing operations and once all the threads are done, the MAIN thread will do the writing on the workbook. In other words "Is is possible to do multi threading in VSTO solutions, assuming that threads won't interact with the office object" Thanks1!! Geoff, That was very helpful and i have been ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating a render target texture with alpha?
I have this: texture = new Texture2D ( this.device, width, height, 1, ResourceUsage.RenderTarget, SurfaceFormat.Color, ResourcePool.Default ); It works fine except that there's apparently no alpha and trying to create the texture with anything other than SurfaceFormat.Color (such as Rgba32) generates an error. How do you create such a texture with alpha What are you trying to do Have you tried creating the texture and then calling graphics.GraphicsDevice.Clear(Color .TransparentWhite) to set the transparacy ...Show All
Game Technologies: DirectX, XNA, XACT, etc. world coordinates 2d tile map
hello all.. i have a little problem.. i usw a 40*40 tile map. visible is a area of 12*15. everything is working very well.. also the scrolling... how can i calculate the world coordinate of the map... i do it this way.... else if (_Spieler.Aktiv.ScreenPos.X < 150) { // Der Panzer wurde weiter nach unten rechts (Drehwinkel im 1. oder 2. Quadranten if ((_Drehwinkel >= ( MathHelper .Pi)) && (_Drehwinkel < ( MathHelper .Pi * 2))) { // Map scrollen _Map.MapScrollen(_Spieler, _Map); } else { _Spieler.UpdateVorwarts(_Spieler, _SpeedVor); } } this makes the player moving or the map scrolling... if the map is scrolling i substract the ne ...Show All
Visual Studio Express Editions Fixed width font in Rich Text Control?
Is this possible, and if so how When I use the forms editor to select the font for the RTB, the only fonts that are shown to me appear to be proportional font types. I'm trying to create a script editor using the RTB control. I know it's been done a thousand times (and probably better), but I'm just doing it to sharpen up on VB. ...Show All
SQL Server RDA with Identity column.
Hi Everyone: I am new to Mobile programming. I am now working on a mobile project. I encounter an issue when I sync the data: cause I can't modify the schema, so I have to use RDA instead of Merge replication on sql server 2005. However, There is an identiy column on each table I will pull them down to local mobile database. And I will use those identity columns to connect tables. Even worse, the photo's new name will combine the photoID which is an identity column. There would an issue, if i sync data, the photoID would be same on different local mobile databases. And there would be generate same identity value when users sync data. How can I avoid those issues If you have any good ideas, please help me out so that I can meet ...Show All
Software Development for Windows Vista Showstopping Bug in WF Persistence?
We have been struggling through an error for some time and as yet have found no resolution. We would like to persist a workflow that contains activities that have subactivities (like subtasks). The problem is that we get a SerializationException when the app tries to load the persisted workflow (on SqlWorkflowPersistenceService.LoadWorkflowsWithExpiredTimers). The specific message is "The object with ID XXX implements the IObjectReference interface for which all dependencies cannot be resolved. The likely cause is two instances of IObjectReference that have a mutual dependency on each other." If we take out the "subtask" concept, or take out persistence, our code works perfectly. Here is the code with the issue. //The Custom Acti ...Show All
SQL Server Blocking in Analysis Services
We have a report in Reporting Services that connects to a Cube. The report has 4 input parameters that are also derived from the same cube. If the report is running and another user tries to select the drop downs for the report or runs just the query portion in report designer, the query will not return until the report has finished. It looks like the report is creating some type of wait. Has anyone ran across something like this ...Show All
Visual Basic How to sort an array of structure based on th first value (date) ?
Hello I have a problem in sorting an structure of array my structure is defined as Structure Thirtymintextfile Dim Mdate As Date Dim MTime As Integer Dim Mopen As Single Dim MHigh As Single Dim MLow As Single Dim MClose As Single Dim Mvol As Integer Dim MAvgP As Single End Structure I have nearly 450 records in the array Now i need to sort it on date basis How to do that .Please help me .Its urgent Thanks in advance shail This is to help out other beginners who struggle with arrays and structures. Using Dick's code, I added a class to my test project: Public Class Cpr Implements IComparer ...Show All
Internet Explorer Development Web Browser with Vb.Net
Hi friends, I am new to VB.Net. I am using VS 2005. I have to call a website, which has 3 frame, after calling the first main mapge, example : index.html (contains 3 frames), i need to open search.html in the "main" frame. How do i do this. Please guide me ... Thanks in advance ! Anuradika The Code will not create any problems , if u have used Web Browser Control (I hope So) It will automatically take care of everything. Rgds Sidheshwar ...Show All
Visual Studio Team System Unit Test Adapter threw exception:System.Configuration.ConfigurationErrorsException: The entry 'XXX' has already been added
Please can some explain what this error message means Unit Test Adapter threw exception: System.Configuration.ConfigurationErrorsException: The entry 'IMSWhiteLabel_Providers' has already been added. In my App.Config file, I have an entry for IMSWhiteLabel_Providers'. I initially thought that it is complaining because it has a duplicate of this entry, but this is not the case. Regards, Hiten Hi, I'm not really sure; I've never come across that before. A bit of searching lead me to this post . Does this work-around prevent the error from occurring Cheers, David ...Show All
Visual Basic Please help me about using Flash as background of a form!
Hi everybody, I have a MDIForm named MainForm. How can I embed a Flash as background of this form instead of using a static image I try to embed Flash by dragging & dropping Shockwave Flash Object into the form. I set the property of this object like Dock = Fill. The problem is when I call any childform of my MainForm, I can't see this childform because it is hidden by the Flash. Please help me. It's very urgent. Thanks. Try this: - make a .html webpage with the swf embedded into it (you can make its size = 100% to make it stretch to fill the page) - load that webpage into a webbrowser control that you put into your form - put other controls on top of the webbrowser control. ...Show All
