Prashant_Rai's Q&A profile
Visual Studio Express Editions Random
i need to make a random function that is only from 1 to 7 and that will not repeat eg 1,2,3,4,5,6,7 random number 3 so 1,2,4,5,6,7 random number 5 so 1,2,4,6,7, random number 6 so 1,2,4,7 and so on. i have tried to make it work but i couldn't I was actually looking for code I wrote, which was smaller than this. But this gets my vote because it creates an object that can be passed to the array, for my money, this is good OO coding and that's why I like it, it reminds me of how the STL works. ...Show All
Visual Studio Team System TF20033: You do not have permission to modify work items in the area
Hi all... The error message is quite obvious..... what are the minimum permissions for a user to edit their own work items Right now I have a TFS Group named "WebProject Developers", in which I have a domain user named "Joe Blow". In the project named "Web Projects", under Project Security, I have added this group, and have tried everything including selecting all available checkboxes. The only thing which will allow the members of this group to modify their work items is to add the TFS group to the Project Administrators group, which is not what I want to do as that give them full permissions for everything. Does anyone have any ideas Thanks, Forch You' ...Show All
Visual Studio Tools for Office VSTO Word App Advice
Currently I have a web application that has a grid of data that is manipulated with an online interface. Once updated by the user the system creates a word doc using XML so that it closely resembles the grid of data with some template information including company letter head and so forth. I have been learning more and more about VSTO and would like to eliminate the online interface and allow the users to manipulate the data directly from the word document and update the database on the server accordingly. Is there any architectural advice anyone can offer on doing this, and maybe point me at a good walkthrough that does something similar to this Thanks for any help you can offer, Jeff ...Show All
SQL Server Report Builder Query
Can we view the query that is fired on the Report builder to debug as i am finding some error in data... http://blogs.msdn.com/bobmeyers/archive/2006/07/05/657125.aspx tells how to do it. R ...Show All
.NET Development How does the .NET FCL work?
Does the .NET framework function off of Win32 API methods or something Sure, C# and .NET languages use .NET, but how does .NET do what it does Yea, but how does it actually function C++ the language itself doesn't have a webclient class or things like that, how does the webclient class and other .NET classes actually work ...Show All
Visual Studio Team System Import Database Schema status is completed but my Database Project is still empty (tables, stored procedures, ...)
Dear All, I am using "Microsoft Visual Studio Team Edition for Database Professionals Version 2.0.50727.72". CTP. All my attempts of Importing a Database Schema return a status "complete" but unfortunately my Database Project is still empty . When i compare the schema of my Database Project to the one of my source database i get a confirmation that the Database Project is really empty. The comparison tool generates a script that i can use to create all the objects but unfortunately the "Write Updates" button is disabled . Thank you in advance for your kind support. I have the same problem. If I create sql2005 database project then a can't import schema from sql2005, but in this proje ...Show All
Visual C++ Linker error with jpeg.lib
When I try to b ild my project with this library, I always get this error: LINK : fatal error LNK1104: cannot open file 'jpeg.lib' Here is my build log Creating temporary file "c:\Documents and Settings\Berk\Belgelerim\Visual Studio Projects\GL Framework\Debug\RSP000001.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP ".\Image\Tga.cpp" ".\App\MainApp.cpp" ".\Image\Jpeg.cpp" ".\App\GL.cpp" ".\Camera\CCamera.cpp" ".\Image\Bitmap.cpp" ] Creating command line "cl.exe @"c:\Documents and Settings\Berk\Belgeleri ...Show All
Smart Device Development How to detect in C# when SIP is shown?
I want my app to behave property whenever the SIP is shown. How do I detect that Form resize is inconsistent depending on which IM is used, when it's hidden, etc. Is there an unmanaged API I should be using Thanks in advance! You drop an Microsoft.WindowsCE.Forms.InputPanel component on your form/control, and handle the EnableChanged event. It's so obvious now, but I couldn't find it easily googling for it. So hopefully this trivial answer will be indexed shortly for other mobile novices coming after me ;) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Transparent Backgrounds on Sprites?
How do I display a sprite with transparency for the background GIF files do not work. I can't seem to create a PNG image with a transparent background in Photoshop 5. Well, first in your code you need to make sure that in the Draw() procedure when the sprite batch begins to draw that you are passing in the AlphaBlend parameter. so this... mSpriteBatch.Begin(); needs to be changed to this mSpriteBatch.Begin(SpriteBlendMode.AlphaBlend); Now as for how to create transparencies in Photoshop5, I have no idea. I personally use Gimp (with it being free and all) and it creates transparencies for PNG files just fine. I think though, your real issue is that you weren't setting the AlphaBlend. Hope ...Show All
Smart Device Development How to play an audio file (.wav) in WM 5.0 SP?
Hello. In project Visual Studio 2005, Visual Basic, Windows Mobile 5.0 Smartphone, Device Application, I have added an audio file, for example, drumpad-crash.wav. On this forum, from Mr. Ilya Tumanov (posts 3313) there is the program, which in the given project I have written down in such kind: Public Enum PlaySoundFlags ... End Enum Public Declare Function PlaySound Lib "CoreDll.dll"( _ ByVal szSound As String, ByVal hMod As IntPtr, _ ByVal flags As PlaySoundFlags) As Integer In method Form1_Load, I have written down the next line: PlaySound("..\..\drumpad-crash.wav, IntPtr.Zero, _ PlaySoundFlags.SND_LOOP) At Start of the project, constantly (LOOP) sounds the signal, wich has been no ...Show All
Visual Basic Form object resizing
Hi there everyone, Something is baffling me here. I'm trying to code a resize event to ensure correct placement of my controls whenever the form is resized. I have a picturebox control that I wish to fill the screen but leaving a gap, of around 3, either side. At the bottom of the form I have a textbox control (txtCallsign) that I intend to keep fixed to the bottom of the form. I've tried the following code: Private Sub frmMain_Resize( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Resize ' Resize the picture box control as the form ' resizes. PictureBox1.Left = 3 PictureBox1.Top = MenuStrip.Height + 1 PictureBox1.Width = Me .Width - 6 PictureBox1.Height ...Show All
SharePoint Products and Technologies Paging in Query Content Web Part
Hi All, I'm working with the query content web part, may I know is it possible to customize the web part to adding in a custom paging Thanks. Hi George Perantatos, I've try the way you suggested, but now I'm facing a problem, from XSLT I can't get back the page number value that sent to javascript like below: <script type="text/javascript"> urlstring = location.href; if(urlstring.indexOf("=") >= 0){ qrystring=urlstring.substring(urlstring.indexOf("=") + 1, urlstring.length); } </script> <a href=" pagenumber=2">Next > ></a> I tried the "msxsl:script" to exchange data between javascript and XS ...Show All
Windows Live Developer Forums Windows Live Messenger Problems Forcing Closure after using MicrosoftR LifeCam VX-3000
Has anyone else had this or a similar problem following Video Conversations using a MicrosoftR LifeCam VX-3000 !! This is a new problem that did not occur using a Logitec Web Cam!! Not sure if I've missed something but this problem occurs on both my computers using separate, but identical cams hello, I found the answer to your problem the driver for vista is no good but install it anyway then get a program called webcamMax install this program "get the version 3510 at leaast it's made for vista after you install it make it your webcam via default" now you can use you cam go to windows live messenger options then you can config your mirosoft cam but you are useing wbcammax works great now my cam followes me when I turn ...Show All
Windows Forms how can i change the source code of a webpage with webbrowser control??
i want to add some source code to a webpage to add some functions for my own uses.... for example a webpage has a javascript function a(str){ ..... } i want to add an other function b to filter out some text.. so function a(str) {b(str); .... }.. Thanks Charlie, much appreciated. The cool thing about the webbrowser control is that you can access the html elements and the entire page source code as its streamed to the client, like when you go to view > source in Internet Explorer for example. You can change the content on the document_completed event of the webbrowser control if you like. Now, in terms of actually getting (and setting) the code, take a look at the Document property. This pro ...Show All
SQL Server Remote query timeout apparantly
Can you advise me on this one .Initially I thought it was due to remote query ... as described here so i changed the remote query time out settings as shown here http://support.microsoft.com/default.aspx scid=314530 ... but thats not the actual problem as it hasnt helped . Can you suggest what else could cause this. There is ample memory available on the server so that could not be the cause of time out .. please advice. Amazing thing is that some times this error occurs and some times it dosent. If i run a remote query through SQL server query analyser it dosent give me this exception. Please advice as its getting urgent with time Event Type: Warning Event Source: BizTalk Server 2004 Event Category: BizTalk Serv ...Show All
