Tobey79's Q&A profile
Visual Basic numericupdown problem
How to make a numericupdown control to have the range between 10-2000 in step of 10...and 2000-9900 in step of 100 the code bellow worck's, but with one bug....for eg, if i have 2000 value....and i go down...he go on 1900 value...and i want 1990(if i go up again worck's fine) is posible to make that i search an event ho tell'me in witch way i'm click(up or down)...but i don't find...so, please help'me. tank's (p.s.:the value 1900 is correct...but the value 2010 is not correct....) Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged If NumericUpDown1.Value >= 2000 Then NumericUpDown1.Increment = 100 End If If NumericUpDown1.Value < 20 ...Show All
Visual C++ resizing problem in VC++
hi, I want to resize my image to 800X600 by default.. that is, whenever any image is loaded it should be of 800X600 size irrespective of its original size. I am using picture box and i havn't taken any Bitmap object for accessing the image.. Code that loads the image in memory is this... GetDlgItem(IDC_IMAGE_CONTAINER)->GetWindowRect(rect); ScreenToClient(rect); if(dcm.IsValid()) dcm.Draw2(GetDC()->m_hDC,rect); where IDC_IMAGE_CONTAINER is ID of picture box rect is the object of CRect class dcm is the object my own created class A variable is also used in which image name is stored. Can anybody suggest me the code to resize my image with this code It will be better if i ge ...Show All
.NET Development Can't use Word APIs
I wrote a C# app that uses the Word PIAs to parse some data out of an existing Word doc. It works fine. Now I invoke my app via a web service and I get the error: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005. I went into Component Services | Computers | My Computer | DCOM Config | Microsoft Word Document and set the appropriate security settings but it still fails. Can anybody help VS 2005, Win XP I also received the following entries in the event log: 1. Rejected Safe Mode action : Microsoft Office Word. 2. Faulting application winword.exe, version 11.0.6502.0, stamp 424d964d, faulti ...Show All
.NET Development .NET Remoting not working on different version of VS 2005 and .NET framework
Hi , I have installed the following Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41566 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0000007-41566 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 77626-009-0000007-41566 Microsoft Visual C++ 2005 Microsoft Visual J# 2005 77626-009-0000007-41566 Microsoft Visual J# 2005 Microsoft Visual Web Developer 2005 77626-009-0000007-41566 Microsoft Visual Web Developer 2005 Crystal Reports AAC60-G0CSA4B-V7000AY Crystal Reports for Visual Studio 2005 ...Show All
Visual Studio Visual Studio 2003 help very slow
I have Visual Studio 2003 with the MSDN library installed locally. When I search in the help the topics are found instantly, but when I click on the topic the help goes off to the web and downloads the help topic. This would be all well and good but it sometimes takes up to 5 minutes to do this during which time Visual Studio and all other running programs are unusable. I have ensured that ALL the help is installed locally, but I cannot find any options to specify 'Load help locally', not from the web! Has anybody else experienced the same problem More importantly does anybody know a solution! Thanks in advance. I gained access rights to our virus scanner (Sophos) and excluded the following folder from 'o ...Show All
SQL Server @@TRANCOUNT - always 0 or 1 ?..
I am trying to debug our production problem, and I'm stuck... A C# .NET 1.1 method creates a SqlTransaction object on a SqlConnection. [This method is called from an ASP.NET 1.1 web application.] The command invokes a stored procedure on SQL Server 2000 SP4 database. The stored procedure itself is inside a transaction (that is, all batch code is between BEGIN TRANSACTION and COMMIT/ROLLBACK...). DECLARE @a_tran_count INT SET @a_tran_count = @@TRANCOUNT DECLARE @a_tran_name CHAR(13) SET @a_tran_name = CONVERT(CHAR(13), @a_tran_count) BEGIN TRANSACTION DECLARE @a_error INT <Statements> SET @a_error = @@ERROR IF 0 = @a_error <Statements> ...Show All
Visual Basic Using VB.NET to create a table in Excel
I'm trying to use VB.NET to create a table within an Excel file in a SSIS script task... I keep getting an error that says that there is a syntax error in my field definition (the error doesn't say which field". I'm new with using VB to connect with Excel, so I hope this is a really simple newbie issue :) Thanks in advance for any assistance! Here is the sub for connecting to the file and creating the table: Private Sub CreateFile() Dim strConn As String Dim conn As New OleDbConnection() strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\filename.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"";" Dim cmd1 As New OleDbCommand() conn.Connect ...Show All
SQL Server Scrubbing data in a data flow task
I can only assume that I either did something very stupid, the examples are completely wrong, or I don't have the slightest clue what it is that I'm doing. I'm trying to do one of those incredibly complicated things in SSIS that was a brain-dead, point click operation in DTS. I want to strip characters out of an input stream from a flat file source before loading them into a table. I've defined my data flow task. I have my flat file source properly defined. I have my SQL Server destination properly defined. For the life of me, I can't figure out how to scrub the data that I want. My input is a csv file that has 22 columns of data. Column 22 contains data and if data was not present, there is a - in ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BoundingBox.intersect() position of intersect?
Is it possible to get which side of a bounding box has been intersected after two boundingboxs have intersected I can't seems to find anything in the documentation. if (bb.Intersects(alien.bb)){ // the boxes have collided but where } I asked a similar question. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=683944&SiteID=1&PageID=1 doesn't seem that there is anything built in, the interect just allows you be notified if they are touching ,it's up to you to see where and how. ...Show All
Visual Studio Express Editions Launch Excel Analysis ToolPak from VB
I am trying to launch the Analysis ToolPak in Excel from my VB application. I found the following code for VB 6.0 and it doesn't appear to work: Source = http://support.microsoft.com/kb/q270844 Public Sub OpenExcelFile(ByVal value As Integer, ByVal filename As String) Dim objExcel As Excel.Application Dim oAddIn As Excel.AddIn Dim analysisfile As String objExcel = New Excel.Application With objExcel &n ...Show All
Visual Studio subreport overlaps
I have two subreport in my crystal report thy overlaps each other of they contain many rows, how can I prevent that ...Show All
Windows Search Technologies WDS Takes too much harddisk space?
WDS Takes up more than 4 GB of harddisk already and it has only indexed 4022 items and missing 3271 on a 80 GB harddisk. Sounds crazy to me. I saw that 500 Gb of free space was recommended. Google DS did not take up so much space. What do you say Version 02.06.5000.5378 Hello Six, Sorry it has taken so long to get you a reply. The size of the WDS index is difficult to predict. There are a number of factors that come into play with index size. Here is some basic information that may help us determine if this is a bug or expected behavior. WDS indexes textual content of files. It does not index media (though it does index media metadata). It should also be noted that WDS indexes the first 2MB of the ...Show All
.NET Development Web Method returns array of custom type : casting error
Hi group, I am having a web service which returns an array of type custom object. The custom class is defined in a Class Library that is included in the web-service project. The same class lib is included in the ASP.NET Web Application that calls the web-method. it gives type cast error when i try to call the web method of my webservice. Cannot implicitly convert type 'wsMyProjectName.Employee[] to 'MyProjectName.Domain.Employee[]' i think the problem is What the web method is returning is a proxy-type, and not the type that web service originally returned. i am using vs.net 2005 and this happens while i am doing this through adding web reference. I tried creating proxy class using wsdl.exe manually and used that also but it gives diffe ...Show All
Visual Studio How can I get data fields to repeat on each page, since they cannot be placed in the Header?
For example, we need the document number at the top of each page. Also, when using a table, is there a way to make the table Header print on each page when the table goes to multiple pages Thank you. Hi, Carlolyn, You can insert a row above the table/list header, drop the field to this row, and set the RepeatOnNewPage property to true for this row. insert--drop--set Good Luck. Long ...Show All
Visual Studio Team System Cannot execute a Build - TF42045
I am getting "TF42045: A build for the team project: xxx is in progress on build machine: yyy. On each build machine, only one build can be active for each team project. Use a different build machine or try again later." and I can no longer execute any builds for the Team project. I have restarted the TFSBuildService and the build server, enabled tracing on the application server, which again logs the above message and there are no alerts in the event viewer. Can anyone suggest where I can look for this phantom build that is running I have also called the DeleteBuild web method in the BuildController to clean up previous build it that makes any difference. thanks in advance. Bec ...Show All
