Software Development Network Logo
  • Microsoft ISV
  • Visual C++
  • VS Team System
  • SharePoint Products
  • Windows Vista
  • SQL Server
  • Windows Forms
  • Visual FoxPro
  • Visual Studio
  • Audio and Video
  • Visual Basic
  • Visual C#
  • Game Technologies
  • Smart Devicet
  • IE Development

Software Development Network >> facemann's Q&A profile

facemann

Member List

rwerner
FlashFan
MurrayLang
bahaa_sa5
Tryin2Bgood
Evan Haklar
Ed Allan
GS80
Sajjad Akhter
Raphael Pina
Amitt
Banhnam
KatyG
SourabhGovil
chris441962
Drew Marsh
jh0483
cgraus
JTDDBA
Mohammad Mir mostafa
Only Title

facemann's Q&A profile

  • Visual C# Setting Font Size on Thumbnail Image

    Hi, Can anyone tell me why when I use the code below, the font size comes out a different size on each thumbnail image System.Drawing.Image theThumbnail= bmp.GetThumbnailImage(width, height, myCallBack, IntPtr.Zero); Graphics g= Graphics.FromImage(theThumbnail); g.DrawString("SOLD",new Font("Verdana",6, FontStyle.Bold), new SolidBrush(Color.FromArgb(100,255,255,255)),0,0); I got it set to the perfect size for my test image, then tried another image and it was too small. It's like it's relative to the original image size and not the thumbnail image size The font em-size is usually expressed in points, which is an absolute measurement unit (one point should be 1/72"). ...Show All

  • Visual Studio Express Editions Is this function ok

    Hello, Is this the most efficient way to write the function below Regards, Ken Friend Class form1 Dim A As Boolean Public Function Inpt_State( ByVal A1) If A = True Then A = False Return A Exit Function End If If A = False Then A = True Return A Exit Function End If Return A End Function Public Sub PictureBox1_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown Dim x As Integer = e.X Dim y As Integer = e.Y If x > 0 And x < 20 An ...Show All

  • SQL Server How to combine Multiple Dataset result in each row of the report

    Hi, I need to produce a report in MS SQL Server Reporting Service 2005 which has some date fields & need to pass these date fields to find out the no_of_User on that date from another database. For example Itemid Availabilty_Start_Dt Availabilty_End_Dt User_On_St_DT (this info is in another DB & need to pass Availabilty_Start_Dt ) User_On_ED_DT (this info is in another DB & need to pass Availabilty_Start_Dt ) I am facing two problem here. Since hereis two different dataset needed how can I combine the dataset result to produce each row of the report. REally appreciate if anyone can show me some light on it. Regards, write a strored procedure in the backend and tr ...Show All

  • .NET Development Convert image to pure Black and white

    I want to convert a tif or jpg file into pure black and white after searching in internet, I find a way to convert a picture to gray scale http://www.bobpowell.net/grayscale.htm but could I modified it to convert to black and white I have no idea about anyone could me THX If you mean only the colours black and white, you can use the same code as the guy does in the article, but instead of: Color.FromArgb(luma, luma, luma) Just have something like: luma > 0.5 Colors.White : Colors.Black i.e. if the luminance is greater than 0.5 make it white, else make it black. ...Show All

  • Visual Studio Team System Unmodified files are asked to be checked out when checking in changes.

    I found this post which seems to be a similar if not identical issue: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1115155&SiteID=1 The solution contains multiple projects. I started out from a clean state (get latest) and checked out one file, edited it, saved it. Then when I tried to check it in, a dialog pops up asking me to save changes to the solution and a host of other projects which I know are not dependent on the file I edited at all. This seems like an issue that is happening across multiple users of this product. I understand that it may not be a TFS specific issue but rather VS 2005 that is modifying these solution/project files - btw, diff tells me nothing has changed, so it might be that the ide is inappropriatel ...Show All

  • Visual Basic resize Mainfrom via mouse from lower right hand corner of form?

    The MainForm of a windows app has a triangular dot symbol in the lower right corner. A mouse left click should bring up a diagonal arrow and then dragging the mouse up and to the left ( or left and up) should shrink the mainform, moving the right and bottom borders up while the left and top remain unmoved. My form is not shrinking at all Is there a property I need to set, or uncheck I see a Me.Height and a Me.Width but I don't see any other relevant properties to change if I were to do this using MainForm_MouseDown MainForm_MouseUp MainForm_MouseMove any ideas Here are what I think might be relevant code form MainForm.Designer.vb Me .AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit Me .AutoSize = ...Show All

  • Visual Studio Express Editions Publishing a simple app install problems

    Hi, I have written a trivial app with a tiny form 20 lines of code and a few dll's included. When I compile (f5) and run it within VS Express C# on my machine it runs fine. When I publish it using the wizard and taking the 'install from a CD/DVD option" there are no errors, and I can then install it and it run it fine on my machine. However when I send the generated setup.exe file to my colleage to install he has .NET 2.0 installed but his install fails with a message C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Rar$EX00.348\IPset application 'The system can not find the file specified" and the log file generated says :- The following properties have been set: Property: [AdminUser] = true {boolean} Property: [ProcessorAr ...Show All

  • Software Development for Windows Vista Rehosting Workflow designer (end zoom mode)

    Hi! I'm rehosting the workflow designer in my own application. How do I end the ZoomIn or ZoomOut mode in the Workflow designer I have activated the ZoomIn mode with: IMenuCommandService.GlobalInvoke(WorkflowMenuCommands..ZoomIn) However, I do not find a WorkflowMenuCommands value for "ZoomEnd" or something like that. Thanks for any help. Jurgen You can have a button for the default mode and invoke the following commang onclick IMenuCommandService.GlobalInvoke( WorkflowMenuCommands .DefaultFilter); Hope this helps. VIhang ...Show All

  • Windows Forms .NET platform

    Hi everybody, what should i do to make the .exe a GUI that i have designed work on a pc where the .net platform is not installed thanks in advance for ur help That is just not posible, you need to have framework installed. You can create a setup for your app that will include prerequisity for .NET Framework that will help your users to download the framework from microsoft. ...Show All

  • SharePoint Products and Technologies WSS 3.0 Search Error

    I cannot seem to get WSS 3.0 Search working. I have the service started, but I keep getting this error in the even log: Event Type: Error Event Source: Windows SharePoint Services 3 Search Event Category: Gatherer Event ID: 2424 Date: 1/23/2007 Time: 10:46:25 AM User: N/A Computer: IIS-IN01 Description: The update cannot be started because the content sources cannot be accessed. Fix the errors and try the update again. Context: Application 'Search', Catalog 'index file on the search server Search' For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. I have looked at this KB article: http://support.microsoft.com/default.aspx/kb/927012. ; It still does not help. I am running WSS 3 ...Show All

  • Visual Basic Setting properties differently in child Class.

    How can i Set() properties differently in my base class. Cos i want to validate the values parsed in differently. I felt that overriding the Get() is not very good, its copy and paste. any better way to do this Hi I would recommend that you follow your instincts and override the property. You do not need to cut and paste the base class code if you do not want to change the getter .. simply type Get : Return MyBase.PropertyName : End Get. Sometime I do prefer to split the Get and Set operation into base class methods and allow those to be overridden. This allows you to easily override just the part you want to. Hope this is what you were looking for. Richard Eg Pubic Property Foo As Strin ...Show All

  • Visual Studio MSBuild doesn't release custom tasks assemblies after compile?

    Hi, I've been experimenting with custom tasks, after reading the great article: http://msdn.microsoft.com/msdnmag/issues/06/06/InsideMSBuild/default.aspx My question is: I've built 2 projects, 1 containing a custom task, and the other containing this code in the csproj file: < Target Name = " AfterBuild " > < CustomTask /> </ Target > Everythings works fine the first time I build. But when editting the task and rebuilding, it says: Error 1 Unable to copy file "d:\projects\tests\CustomBuild\CustomCompiler\bin\Debug\CustomCompiler.dll" to "bin\Debug\CustomCompiler.dll". The process cannot access the file 'bin\Debug\CustomCompiler.dll' because it is being used b ...Show All

  • Visual Studio Team System Download a Process Template Programatically

    Can anybody help me with the code sample for downloading the specified Process Template as it is done by the Process Template Manager in VS Team Explorer. Any ideas are also welcome. Hello Yogita, Thank you very much for such a quick response. I was looking into IProcessTemplates but could not figure out a way due to lack of documentation. Anyway, thank you very much for the help. ...Show All

  • Windows Forms Executing another setup through my application setup

    Dear all I have my application that has some depandencies that need to be installed before my application gets intalled on computer. So how can I install these thired party tools before my application gets installed on the computer. How can we do this through customs actions. Regards Can you please tell me how could I write a launcher program and secondly the microsoft visual studio mates two files one is Setup file of the project and the other one is the MSI file. Can you please tell which one should be used for distribution of our application. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Reading embedded files

    Hi, i've added a .xml file to my xna project for windows, i've set it to be an embedded resource, how i can i them read the file n e attempt i make seems to try to read a file from the hdd or from a url many thanks You need to use the System.Resources.ResourceManager class. For example, System.Resources. ResourceManager temp = System.Resources. ResourceManager ( "MyGame1.Properties.Resources" , typeof ( Resources ).Assembly); object obj = ResourceManager.GetObject( "foo" , resourceCulture); byte [] myFileCalledFoo = (( byte [])(obj)); Since you embedded an XML file, it was probably embedded as a string rather than an unknown file (which is byte[]). Your ...Show All

©2008 Software Development Network