gifuran's Q&A profile
Windows Forms StartPosition in Windows Forms
Hi All, I have one problem in Windows Forms. I have one form Win1. in that i have set startposition = centerscreen. Now I am calling it in another application. let's that application name is app1. app1 is called by app2 at runtime. and app2 is in another application app3.app3 is main application which is running. now when some event calls app2 and app2 in turns calls app1. app1's Win1 form is not coming in center. win1 is coming at rightcorner....................why One more thing............actually there are two processes........ app2 and app3............. at runtime i m attaching app2 to app3. it's like this......app3 has one label with text 'fixformhere' app2 is searching run time this label text an ...Show All
Visual Studio Team System This should actually be easy - remove the Project param
Hello All, Is there a product out there to show how all projects are progressings Something like the sharepoint portal for an individual project but would be for a CIO level to see the progress on all projects. Thanks, John Hi John, We do not deliver such a thing out of the box but you could create a dashboard with various reports using the reporting web part and setting it up to point to the reports you want to display. It would basically ressemble the project portal page but instead of having one report, you could resize the control and include more reports in the page. Thanks, Othmane ...Show All
Visual Basic Copy renders System.InvalidCastException?
Hello. I’m having some problems copying files after creating a new directory. Basically I check wheter a directory exists or not, and if it doesn’t, I create it before copying the files. The code looks like this: If Directory.Exists(fileto & rapport & "\" & Now.Year.ToString & "\" & dest & "\" & currentChef) = True Then File.Copy(member, fileto & rapport & "\" & Now.Year.ToString & "\" & dest & "\" & currentChef & "\" & currentRapp & ".rtf" ) Else Directory.CreateDirectory(fileto & rapport & "\" & Now.Year.ToString & "\" & dest & "\" & currentChef) File.Copy(member, fileto & rapport / "\" & Now.Year.ToString & "\ ...Show All
Smart Device Development Freezing when a control data is set
When I set data in a control (setting the text in a label or image in a pictureBox) the form freezes. I stepped throught the code, and the exact line where a controls data is being set, it enters but never returns. I am using CF 1.0. Has anyone seen anything like this I actually ended up using delegates as function pointers. When I set the pointer when the form was instantiated and then called it from the method that was being called by the external thread it seemed to work :P ...Show All
Windows Forms Simple Form customisations
Hi, I'm at the moment learning C# through Visual C# Express edition and have a few questions. My first is that in my custom web browser I am designing how do I alter it, so that after I type my URL in my text box, it makes my browser go to that site as well as being able to press a GO button form. Also how I make it so that when I press Maximize the parts of my form scale to my Maximized window. To me these will seem like silly questions to most of the experienced and knowledgeable programmers on here, but I am only 15 so please be kind! Thanks for the Help. Hi, Here step by step instruction. With the empty form in design mode, drag a new WebBrowser control, a text box and a button. Place the web browser to cover the bott ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Assign to Vector2?
This is probably an easy question, how do I assign to a Vector2 This was my first bad guess: Game1.Players .Position = (0f,0f); but it didn't work, I know I can assign to the .X and .Y of the Vector2 but I want to do it in one simple step. Also can you do it without creating a new Vector 2 Cheers Alfons Shawn, I think that my language skills might be to my disadvantage(and my lack of experience in programming). What I meant with "2 floats" was two values of the type float, or in other words, is there a way/method to change both the X and Y component in one line /Alfons from Sweden ...Show All
Visual Studio Differences between MSDN Library for Visual Studio and quarterly MSDN Library?
Hello, are there differences between the MSDN Libraries for a specific Visual Studio version and the quarterly released MSDN Libraries Or are the MSDN Libs for VS only out-of-schedule releases of the normal MSDN Libraries, due to a new VS release Regards Maddes The libraries that ship with Visual Studio are releases specific only for those releases. The Quarterly libraries ship more frequently and can contain updated documentation and can be integrated into Visual Studio so that you have the latest docs. ...Show All
Visual Studio Team System Two questions about profiling ASP.NET Applications
I have successfully been able to profile a remote ASP.NET application using instrumentation thanks to David Gray's blog entry ( http://blogs.msdn.com/graycode/articles/AspNetOffRoadProfilingArticle.aspx ). I now have two questions: 1) In order to view object allocation and lifetime you need to "Enable .Net Object Allocation and Lifetime profiling". How do you do this using the command line tools 2) Is there anyway to profile a "warm" ASP.NET site Right now, the perf tools will only attach to the w3wp process if no calls are made to the site in between iisreset /start and the call to vsperfmon /TRACE... Unfortunately that means the profiler will include all the overhead involved in spinning up our asp.net applicat ...Show All
Visual Studio what does this expands into (_MSBuildProjectReferenceExistent.SetConfiguration
i am updating my project so that it can auto build its refrences. Method i am using is that i add dynamically to ProjectRefrences but then i found ResolveProjectReferences target doesn build references if its building from within vs.net or building a sln file. i can see that we be more efficient but it requirs one to put all related projects into one sln and with size of my project i cannot do. Thats one of the reason to enable more commandline builds etc i overriden ResolveProjectReferences but i am not able to understand what following is doing, where it gets .SetConfigration came and what it does. < MSBuild Projects = " @(_MSBuildProjectReferenceExistent) " Targets = " GetTargetPath &q ...Show All
SQL Server How can i treate Huge DB size in sql server 2000
Hi all, I have DB in operation its MDF size reached 8.38 GB and the system that work on the queries of insert timeout and the operation failed and many problems happens ... actually the reason of the huge size of the DB is just one table that contain image field which we store word files in it in each row in the table ......... so how can i solve this problem without affecting the structure of the DB ..... coz we don't wanna to make code changes in the application that use this DB thanks if it 8.38 GB.. this can not be considered as a "Huge" DB from SQL Server point of view ... SQL Server handles much much larger databases... this is basically... architecture flaw... when u store word file in database it is ...Show All
SQL Server Parameterized filters on publication???
Does anyone know if you can use any other parameters in the row filters for merge replication besides the functions SUSER_NAME() and HOST_NAME() I would like to create a publication for a couple thousand mobile databases to replicate with one SQL Database but filter what data they get based on some parameters. Do I have to hard code WHERE statements into static filters and create a publication for every user (seems a little ridiculous) Is there a proper way to do this using the SUSER_NAME and give each user a different connection name that will filter data properly Thanks, Patrick Kafka You can achieve what you wish using the SUSER_SNAME filter. Lets say you have a table: customers ...Show All
Visual Studio 2008 (Pre-release) Detecting MouseMove events over empty space in Viewport3d
I read in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=99785&SiteID=1 that mouse clicks over a Viewport3D are only detected when clicking over content in the Viewport3D. The suggested remedy was to put the mouse click handler on the page, which would get fired event if the user clicked on empty space in the Viewport3D. I assume the problem (and the remedy) should apply to MouseMove events. However, I couldn't get this to work. Here's the XAML structure of my application: <Page> <Grid> <DockPanel/> <Viewport3D> <Camera>, etc. </Viewport3D> </Grid> </Page> I tried putting handlers for MouseMove or PreviewMouseMove on the Page and on the Grid, but it di ...Show All
SQL Server Database Restore, Error 3154 and
Hi all, I am trying to restore and SQL 2000 database into a new SQL 2005 database. I performed by SQL 2000 backup and created a blank database FERS_Production in SQL 2005. FERS_Production was the original name of the database in the SQL 2000 instance. I have tried giving the new database the same name as the original and a different name to the original database (Below is the scripted T-SQL that I get from the DB Admin tool RESTORE DATABASE [Fers_Production] FILE = N 'FERS_Production_dat' , FILE = N 'FERS_Production_log' FROM DISK = N 'D:\Microsoft SQL Server (2000)\MSSQL\Backup\Fers_Production\Fers_Production_db_200607270206.BAK' WITH FILE = 1 , NOUNLOAD , REPLACE , STATS = 10 GO When I ru ...Show All
Visual Basic DataGrid Question
I have a datagrid called dgrid in a form, and have made this code so far: Public Sub SetupDG( ByVal columns As Integer , ByVal rows As Integer ) For x As Integer = 1 To columns dgridSimulator.Columns.Add(x, x.ToString) dgridSimulator.Columns(x - 1).Width = 10 Next x End Sub But i don't know how to change the columns so they are image columns (DataGridViewImageCoumn on the Column designer if i was able to do this via the Design View in VS.NET 2005), how do you do this And then set the images in these columns I thought i better post in here since i've figured it out. The new code does like this if anyone needs it in future: Public Sub ...Show All
.NET Development prorgamFilesPath
I'm a bit new to C# So here my problem. I am developing on XP-64bit, there is a 'Program Files' folder and 'Program Files (x86)'. The problem: I had developed this program with a Button on a 32-bit version so it automatically points to 'Program Files' but now that I'm on 64-bit version the program that the Button executes is in 'Program Files (x86)'. Is there any way for the button to search both 'Program Files' folders RizwanSharp wrote: Have you tried this string programFilesPath = Environment .GetFolderPath( Environment . SpecialFolder .ProgramFiles); Best Regards, Rizwan Oh oops, sorry forgot to mention that I am using that already. When I click the button to execute the progra ...Show All
