jwaters's Q&A profile
Visual Basic Array list
Hi all, i have stored several class object in an arraylist. Example: arrList1.Add(aClass) May i know how to check/see or print the item in the arraylist this is because I need to know what data is in the arraylist. hi, Actually I am having problem in adding data into the arraylist. I encountered a problem, in which all the data I stored in the arraylist is the same. May i know what is the possible error or what can i do to solve this problem. below is my code for assigning the dat into the arraylist: Public Shared Function GetAll() As ArrayList Dim dsReq As New DataSet Dim sqlQuery1 As String = "SELECT * FROM Requisition where ReqStatus = 'Open'" ' Clear the array list intw ...Show All
Visual Studio Team System Generate script for 2000 and 2005
Hi, The database I'm building needs to run on 2000 and 2005. I have the project set to SQL 2000. Now I have a script that grants execute permissions. It checks the server version and based on that executes a script for 2000 or for 2005. Like this: DECLARE @version CHAR(1) ; set @version = SUBSTRING(CONVERT(CHAR(20), SERVERPROPERTY('productversion')),1,1) IF @version = '8' -- SQL Server 2000 BEGIN DECLARE @sql NVARCHAR(4000) DECLARE @db SYSNAME ; SET @db = DB_NAME() declare @u SYSNAME ; SET @u = QUOTENAME('NT AUTHORITY\NETWORK SERVICE') set @sql ='SELECT ''GRANT EXEC ON '' + QUOTENAME(ROUTINE_SCHEMA) + ''.'' + QUOTENAME(ROUTINE_NAME) + '' TO ' + @u + ''' FROM INFORMATION_SCHEMA.ROUTINES ' + 'WHERE OBJECT ...Show All
Visual Basic Select Case statement being evil
The select case statement is out to get me! Has anyone else run into the trouble of having a Select Case statement and one of the case statements has hit if you look at the data, but refuses to hit anyway That probably doesn't make sense... Put it this way... I have, say, a ListBox control that has three IP addresses in it. For argument's sake we'll say the three items are: 192.168.0.1 192.168.0.2 192.168.0.3 These items have the indices 0, 1 and 2 respectively. Now, inside a function that receives a string of data (T) from a network user I have code that's something like this: Dim X As Integer For X = 0 To (ListBox1.Items.Count - 1) Select Case ListBox1.Items(X) Case T 'Code segment 1 Case Else 'Code ...Show All
Visual Studio 2008 (Pre-release) Windows Forms Power
I was wondering if we are going to see equivalents of the Windows Forms Controls and Windows Forms capabilities in WPF. Although WPF seems impressive, it lags the Windows Forms power and also feels counteractive Did you mean to post twice The discussion here ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=518667&SiteID=1 ) goes pretty far... ...Show All
Visual Basic Casting Error returning IEnumerable from KeyValue Pair
Hi Everyone, I'm getting a casting error in a class (called Panel) that stores a list of child controls on the panel (including other panels). The issue however is a casting error in the line " Return Pair.Value" in PreOrderVisit below. The error is: Unable to cast object of type 'Label' to type 'System.Collections.Generic.IEnumerable`1[BaseControl]'. Private Shared mControls = New SortedList( Of String , BaseControl) Public ReadOnly Property PreOrder() As IEnumerable( Of BaseControl) Implements IContainer.PreOrder Get Return PreOrderVisit( Me ) End Get End Property Private Function PreOrderVisit( ByVal Container As IContainer) As IEnumerable( Of Bas ...Show All
SQL Server Delay in package starting when running from SQL Agent
Hi, I wonder if anybody can shed any light on this problem. I have a SQL Agent job which has three steps, each step runs an SSIS package. The job is scheduled to start at 11.00 pm, which is does successfully. However, it has been taking between 2 and 3 hours to run, which is way longer than it should. When I've looked at the logging, I've found that the although the job starts at 11.00 pm, the first package (in job step 1) does not start executing until about 11.30. It finishes in about 5 minutes, there is then about an hour delay before the second package (in job step 2) starts. This finishes in about 10 minutes, then there is another hour delay before the third package (in job step 3) starts. I've tried configuring the steps ...Show All
Visual Studio Tools for Office Word.ControlCollection in an ActionPane
Hi, I'm trying to develop an Action Pane with a button, this button should create an object like a Textbox in the Application.ActiveDocument. I found in msdn some information about the class Word.ControllCollection that should be right for me (I Hope ). But when I use the method AddTextBox it crash. I supposed that it happens because I'm running it in the ActionPane class. Is it right Is there any workaround Thanks a lot. Without seeing the code, its hard to determine what the problem is. I have an example of doing this in my book (VSTO for Mere Mortals), but since the book hasn't been published yet, I'll share a bit of the code here for you. Things to keep in mind are: Rather than using Activ ...Show All
Visual Studio Express Editions dates and null values
My column in sql is of a date data type. I have a textbox that a user can enter a date when certain parameters in the program are met. On occasion a date does not have to be entered in the textbox. This is where I have a problem. The column can accept null values but I am not sure how to program this part. I have a date variable = cdate(txtbox1.text). If nothing is entered in the textbox I get an error message of "can't convert "" to a date) Any help would be appreciated. well I thought you were directly inserting into the database Since you seem to have a Sql/Oledb command in place and executing it - you are directly inserting into the database. Still as suggested, you need to make y ...Show All
Smart Device Development Notify Icon , System Tray , Task bar
Hi everybody, I'd like to minimize my application to the system tray, that bar at the bottom of the today screen with the "New" list on the left. can anynody help me. thanks ...Show All
SQL Server Subscription/Data Sync Error
Dear All Iam receiving an error message when trying to complete the subscription. Please find the below given error report that I get from SQL server. Synchronizing Data (100%) (Error) Messages · A call to SQL Server Reconciler failed. Try to resynchronize. HRESULT 0x80004005 (29006) The schema script '\\MAIN\snapshot\unc\MAIN_SQLMOBILE_TEST\20060926133385\MembershipData_2.sch' could not be propagated to the subscriber. HRESULT 0x800704CF (0) The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history logging and specify an output ...Show All
Internet Explorer Development Canceling a event in javascript
Hi. I need to cancel an event in JavaScript (the drag events on my document.body), is there someone who know how to do this, I've been searching the inter net for the past few days, but couldn't find anything. Help would be appreciated. Kind regards. Yes, I have tried to cancel the Bubble effect of the event, but here's a more accurate description of my problem, I hope it's more clearly now. The problem is that the event is first and lastly called on the document.body. So I would like to know if there’s a way to remove the event from the body. I have found a way to work around the problem for now, if empty the document.selection then, I don't have the problem, but I'll need this functionality in a later stage of the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fbx File Format ?
is the fbx file format closed format or do microsoft provide doc on the file format in the xna framework link to article that i have read http://www.3d-test.com/interviews/collada_1.htm why i am asking that is that we can adopt our own mesh format to xna framework example: our mesh format onlye ned one matrix for doing mesh animations the is bone and joint in our mesh cunstructor but when you save the final format out to xml there is one set of vertex data and one set of faces data and the magic one matrix for bone and joint and animations of keyframe per frame so if you have a mesh animation that runs 700 frame total you have to store one set of vertex and faces and 700 deffecnt matrix in a array the ...Show All
Architecture Security architecture
Hi, I am venturing into Security architecture.It will be covering the security features provided by .net as well as general concepts like EKE,Single Sign On, Race condition etc. I wasn't been able to find any good forum where i can discuss these topics. Could somebody please let me know a few forums and blogs in which we can have discussions on this. regards I'd also keep an eye on the following NFRs.... 9. Compliance - are there laws / regulation guideance governing what protection you need to enforce on certain data - remember your company directors/vps can go to prison for this stuff. In the UK you'll need to consider Freedom of Information Act (regarding audit data), Data Protection ...Show All
SQL Server SQL Server Everywhere Rocks
Hi there, I have been using SQL Everywhere 2005 for a while and it's very good, Last week I used it for the final graded project at the college and everyone was impressed with the quality and the small footprint. It would be nice if they can implement triggers on it. nice product. Thank You for using SQL Server Everywhere Edition! It's great to hear from the users of our product. We really appreciate that you took out time to provide us your feedback. Having triggers in SQL Server Everywhere Edition is one of the biggest customer's requests, related to this is supporting Notification as well. We will be considering these features in our next release (though not yet finalized). Please ...Show All
Visual C++ Heap corruption caused by a lib function
hi all i am using a .lib in my application and there is function that i call which reads a file and fills some structure variables. variables can go in thousands. when i run it is throws an exception saying "Windows has triggered a breakpoint in ConsolTest.exe. This may be due to a corruption of the heap, and indicates a bug in ConsolTest.exe or any of the DLLs it has loaded. The output window may have more diagnostic information" what could be going wrong Aamer Ah, I understand. Then maybe the compiler options are different. Check the following option in Project Properties: Configuration Properties\C/C++\Code Generation Runtime Library The runtime library should b ...Show All
