Kaleb's Q&A profile
Visual Studio Tools for Office How to group the shapes within Excel Worksheet from VB.net ?
Suddenly stucked with simply question: How to group the shapes within Excel Worksheet from VB.net (2005) It's easy from within the EXCEL (VBA) - Set myDocument = Worksheets(1) With mydocument.Shapes .AddShape(msoShapeCan, 50, 10, 100, 200).Name = "shpOne" .AddShape(msoShapeCube, 150, 250, 100, 200).Name = "shpTwo" With .Range(Array("shpOne", "shpTwo")).Group .Fill.PresetTextured msoTextureBlueTissuePaper .Rotation = 45 .ZOrder msoSendToBack End With End With However it's appear to be impossible to use the same construction from VB.NET - array in this way is not supported. The idea is to create ShapeRange with several Shape(s),- but method like "Add" ...Show All
.NET Development communicate between Server and Client ( using Socket)...
hi forum how to communicate between Server and Client ( using Socket), if OfficeScanNT Personal Firewall (Trend Micro OfficeScan) is running in both computer and we cant stop there service. any help would be heighly appreciated. Add your application in Allowed list or Add the port to allowed list which you are using in Your code. But most of the time its not necessary to manually add them but when your server tried to open a port your firewall notifies and tell you that this software is trying to open a port do you want to allow it or block it If you allow it, its automatically configures itself! Best Regards, Rizwan ...Show All
SQL Server scripting Stored Procedures
Hi all, I am trying to script Stored Procedures from a sql server, here's my console project: using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Text; using Microsoft.SqlServer.Management.Common; using Microsoft.SqlServer.Management.Smo; namespace Scripting { class Program { static void Main(string[] args) { Server server = new Server("My_Server"); Database db = server.Databases["My_DB"]; UrnCollection urnc = new UrnCollection(); foreach (StoredProcedure sp in db.StoredProcedures) urnc.Add(sp.Urn); Scripter scripter = new Scripter(server); try { StringCollection sc = ...Show All
.NET Development If server stops
Hi, I'm trying to catch an exception in my application when SQL server 2005 express stops responding. Everything works fine, but when I stop server service in the middle of my application running (there can be many reasons why service may stop) I receive a bunch of errors! Since I'm using Try.. Catch ex as SQLException, the message numbers that are returned wary: -1, 0, 2, 40, 232, 233 etc. The message depends on wehter I'm using local server or network connection, wether I'm trying to connect to non-responding server for the first time or any other time, even depends on location in code - where I'm openinig SQL connection. Is there any simple way to cath the error and provide user with a MsgBox saying 'Your server stops respondin ...Show All
Software Development for Windows Vista Can't download .NET Framework 3.0 June CTP SDK
When I try to download it, it reports : The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. This has been a particularly difficult release to publish live, and it has caused us a lot of late nights and internal conversations. Bottom line is that it took a long time for all bits to be fully live, and now they are. We on the SDK team apologize for your frustration on this, and we're using this as a lesson to help drive how we manage future releases. If you continue to have problems, please email me with a copy of your log. ...Show All
SQL Server Prompt password when calling certain reports only?
Hi, When I call certain reports from an ASP application, some prompt for password and some are not. I wonder why is this happen Under the Directory Security of Reports under IIS 6, I already enable Anonymous Access for IUSR_XXXX with the correct password. I also assign IUSR_XXXX as Browser in Report Manager of Reporting Services. The enviroment is Windows Server 2003 standard edition, IIS 6, SQL Server 2005. Thanks in advance. Best regards, Pop I had try 1)"Use Windows Authentication" 2)"Use a specific user name and password" 3)"No credentials" in Data source setting and non of it works. When I try with option 1 and 2, only one of the re ...Show All
Visual Basic Not able to publish project VS.net 2005 Professional
When ever I try and publish my project in VS 2005 I get an error default certificate could not be created publish aborting. Any idea what is going on It is a VB project and it runs fine no errors. I am choosing to deploy to a local directory C:\deploy\firstproject. I have tried online help and nothing comes up on this error. Any help would be appreciated. -Troy Well it is back again. Now I get an error when I try and sign the applciation. This is ***... A work around is to create a setup solution but that does not allow you to update. I want to deploy but I could only get this to work once now everytime I try and publish I get these errors for a certificate. There is virtually no information on the web about t ...Show All
Visual Studio Express Editions Registry PW
I was wondering is there is a simpla way to save a PW to the registry and keep it there.So the next time the program is used it will only start with that PW from the registry, Also to set the default PW when its first run on the PC. PW = password you can use the Win32.Registry namespace to access the registry classes. Of course you must have the appropriate user account permissions to read/write to the registry. take a look at this and see if it helps: http://msdn2.microsoft.com/en-us/library/39sck7ta.aspx ...Show All
Visual Studio 2008 (Pre-release) Binding a System.Drawing.Image to a WPF Brush
So I've got this System.Drawing.Image object in a class of mine that I would like to display as the background image of my WPF form. Without writing this image out to a file, how do I set the .Background property of my Window so that it will display my image I am trying to set this property in behind-code (C#) not in the xaml itself, (however a solution, eitherway would be helpful.) Thanks! Please see this reply: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1010523&SiteID=1 . This explains how to create a BitmapSource from GDI+ objects. ...Show All
Visual Studio Toolwindow losing focus - event?
I've got a tool window in 2003 and I'd like to know when it loses focus, i.e. to know when its title goes from blue to white. OnLostFocus doesnt appear to work... I've dug around in the MitWin sample, and the OnSetFocus and OnKillFocus are correctly called as expected. However, when I put a OnGotFocus override in the MyToolWindow of the Managed Tool Window example, it never fires, while the OnLostFocus fires when it gets the focus (it appears). Jamie WindowEvents does not have an event for lost focus. I suppose I can have the package track the focus and tell my tool window when its lost the focus. Unfortunately it wont tell me when the whole application loses focus. Any ideas for that Jamie ...Show All
Visual Studio 2008 (Pre-release) beginner needs advice
i am planning a .Net smart client app. i need to decide between .net2.0 and .net3.0. one of the factors here is web services. can anyone tell me or point me to a resource where i can find the key improvements between WCF and .NET2.0 web services so that i can better reach a decision. (security, performance, etc.) thanks Here you go: http://msdn.microsoft.com/webservices/default.aspx pull=/library/en-us/dnwebsrv/html/wsmsplatform.asp In general, WCF is the super-set of previous technologies, so it is recommened you use WCF. ...Show All
Visual Studio VSS2005 History issues - 2 Issues
1) We are experiencing the issue described in the following post. SourceSafe will crash if the history report is run with differences. Has this issue been resolved Is there a hotfix available http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=570187&SiteID=1 MSDN Forums Visual Studio Visual Studio Source Control and SourceSafe VSS 2005 Crashes When Creating History Report 2) We are also experiencing SourceSafe crashes when running multiple diffs from a history dialog. Each successive diff gets slower and slower until the application crashes. Is there a known issue with this, and is there a resolution NOTE: We are able to perform both operations in VSS6.0d without crashing on ...Show All
SQL Server sql 2005 Transaction log size
We have a database that is backed up every night (full backup). The database size is around 5GB and the transaciton log is about 3GB. And it's 3GB after the backup too. I thought the log size should shrink after each full backup. I can't imagine what data the log needs to maintain after a full backup is complete. What can be done about this large transaction log TIA, barkindog Hi, Ensure Autoshrink is not disable. also refer Causes of SQL Transaction Log Filling Up http://support.microsoft.com/ id=110139 http://www.support.microsoft.com/ id=317375 How to stop the transaction log of a SQL Server database from growing unexpectedly http://support.microsoft.com/ kbid=873235 an ...Show All
Visual Studio Express Editions files in a project
Hi All I am new to C#, I have downloaded VC#2005 EE, it's a great product! I have 3 questions: 1) If I create a simple windows forms new application I can find inside the solution explorer basically something like this: ... Properties... References... Form1.cs Form1.Designer.cs ... If I click on the Form1.Designer.cs node I open the Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> It's ok But if for example I open the following project ("Crafting a C# Forms Editor from scratch") (http://www.codeproject.com/csharp/SharpFormEditorDemo.asp) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VertexBuffer.SetData cost
Which is faster -Add vertices a few at a time to an array, then call VertexBuffer.SetData for all of them at once -Call VertexBuffer.SetData on a few vertices several times The array can be statically allocated, but the data is only relevant for one frame, so there's no benefit to keeping it around. Thanks, Max Fascinating, I didn't know about DrawUserPrimitives. I'm focusing on Windows at the moment, but now I'm curious...is there a performance difference on the Xbox for VertexBuffers that are rarely changed I'm working on porting my 2D graphics library from MDX (flecko.net/trans2d if anyone is interested), and by default everything is drawn using VertexBuffers that usually don't change, but there's als ...Show All
