MaryOS's Q&A profile
Visual Basic Sorted List Serializable?
The error message is "Sorted List is not 'MARKED' for serialization" ... which leads me to think the error may be in my code: <code> Option Explicit On Imports System Imports System.Collections Imports Microsoft.VisualBasic Imports System.IO <Serializable()> Public Class LabelMap Private PlaySlipSL As SortedList Sub Serialize() Dim formatter As Runtime.Serialization.Formatters.Binary.BinaryFormatter = _ New Runtime.Serialization.Formatters.Binary.BinaryFormatter() Dim Stream As Stream Try Stream = New FileStream(FLAT_FILES_ROOT + SL_NAME, FileMode.Create, FileAccess.Write, FileShare.None) Catch ex As Exception MessageBox.Show ...Show All
Visual Basic How can I search a database on multiple criteria selected from listboxes?
I am new to VB and I am finding it difficult to understand. I am using Visual Studio 2005. I want to search a database for several items, I am using the My Movie Collection template to practice with and I want to be able to search for actors, directors and release dates and see the movies that match. I want to use listboxes for the items to search on and populate them with the possible options from the database. Ideally I would like the results to be updated as I click on the options in the listboxes (no 'search' button). I want to be able to click on more than one item in a listbox (e.g. several dates) and I want to be able to deselect items that I previously clicked on. I have found examples of searching for one thing in a datab ...Show All
Visual Studio Team System TF30063: You are not authorized to access <servername>
Every few days one of our team members receives this error when attempting to check files out of version control. I have seen other postings related to this error, but it seems that it occurs when using proxies or other configurations. These solutions do not apply to use because we are using the single deployment model for TFS. At present time our workaround is to have the developer reboot their workstation. Is anyone aware of the root cause of this problem and how to solve it Thanks Mario. I have been unable to reproduce this to help identify the problem, but I will be sure to post again if it happens. ...Show All
Community Chat network security
Hello, Can anybody tell me of a good website that provides information about network security Someone recommended www.infolocktech.com . Any recommendations on this werstyle teen Windows XP already comes or has available network security. What with windows live update, defender,firewall, and security center everything is covered. I was told that security center has virus protection, so I removed my copy of McAfee. Security Center then said I had no virus protection. It offered a link to fix this, but it was so busy, I couldn't get through the site. I wound up downloading and purchasing a security center from download.com. I know that security center has virus control because it automatically downloaded a virus update from microsof ...Show All
SQL Server How to design a report like the sample report( Sales Order Detail.rdl)?
Hi,all I have many questions about sql2005 reporting service. Really hope you can help me. Many many thanks. After installing the SQLServerSamples.msi The sample reports are in Reporting Services\Report Samples\AdventureWorks Sample Reports "Sales Order Detail.rdl" <DataSources> <DataSource Name="AdventureWorks"> <rd:DataSourceID>9d4e7b1f-0315-4083-8ff3-aa70c1fb2920</rd:DataSourceID> <DataSourceReference>AdventureWorks</DataSourceReference> </DataSource> </DataSources> <DataSet Name="SalesOrderDetail"> <Fields> <Field Name="SalesOrderDetailID"> <DataField>SalesOrderDetailID</ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Texture2D init problem
Hi People, i'm trying to create a blank Texture2D but it crash on an InvalidCallException and i really dont know why, here's the piece of code : try { buffer = new Texture2D(graphics.GraphicsDevice, graphics.BackBufferWidth, graphics.BackBufferHeight, 0, ResourceUsage.None, graphics.BackBufferFormat, ResourcePool.Managed); } catch (InvalidCallException exception) { } i have tried multiple things but none have work, any help would be greatly apreciated Thanks Have you tried a 1 for numberLevels instead of 0 With a 0 my small little program crashes, too. Hajo ...Show All
.NET Development Excel Interop..excel.exe process still alive
Hi, I need to realize a multisheet formatted excel file from an asp.net (c#) web page. I thought to use Excel Interop but I've some problems when I try to kill excel process after file generation.. I've read several threads about this argument on this forum and it seems to me that I'm driving in the right way.. but excel.exe process never die.. this is the class I wrote is this: using System; using System.Data; using System.Configuration; using System.Reflection; using System.Runtime.InteropServices; using System.Web; using System.IO; using Microsoft.Office.Interop.Excel; namespace FileHandler { public class ExcelManager2 { private string strPath = HttpContext.Current.Server.MapPath("./"); public ExcelManager2() ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What is the best software for game dev with XNA?
As the title states, what software will be good to have. I am going to download Visual C# Studio Express, but what else is good for stuff like graphics or sound. I have a limited budget so I am looking for something in the free to $100 price range, if possible. Thanks for any help you can give me. For creating graphics there's plenty of apps - Paint Shop Pro is cheap for 2D stuff, Blender and Milkshape for 3D. You can try Googling "free sound tools" for that area. ...Show All
Visual Studio Team System Request for suggestions on how to set up dependent work items in MS Project's integration into Team System
Hello All, We are looking for suggestions on how to best set up a work item that are dependent on first the completion of another work item in MS project and have that propogate into Team System. Thanks in advance for your help :) Bob Hanson Bob, related workitems are to show a workitem is related to another, kind of like "See also" workitem relationship. We do not have dependent workitem relationships in V1 and we are thinking on such features for future version. ...Show All
SQL Server Cann't execute integration service package with SQL server agent
hi, can anyone explain, how to execute package with sql server agent: the problem is:: i made a integration service package (in visual studio 2005). When I 'm in visual studio and do "execute" the package it works well. Then I build a dtsx file. When i double click on it, it opens and if i do execute, it works well. I want to execute the package every week automatically. I write a job in SQL server agent, in Steps I choosed Type=SQL server Integration service packege, then General->packacge source -> file system, and then wrote where the dtsx file is (which was built). "Run as" I choose my user name. then i'm trying to start a job, but it fails, and writes "The package execution failed." W ...Show All
SharePoint Products and Technologies Create Task Activity has correlation token conflict when in While Loop
Hi everyone, First time posting here. I'm having a problem with developing a MOSS Workflow. The scenario is this: Within my workflow, I have a while loop construct. Within this while loop, there is a series of CreateTask->Wait for Task to be Changed -> CloseTask. It works fine until it loops back around to try to create another task with the same correlation token. In fact, that's the error I get. How do I get around this issue by disassociating the token or something like that. Thanks in advance for any help. rnellis2002 What you can do is use a replicator that contains a sequence activity, within that sequence you can then use CreateTask, onTaskChanged, and CompleteTask. Your ...Show All
Visual Studio The best practice to enumerate classes in the VS 2005 solution?
Hello. Is there any 'best of the best' practice to enumerate classes in the opened solution I've wrote addin that uses DTE2.Solution property than iterates through all projects (Solution.Projects) and for each namespace in the project all CodeElements with vsCMElementClass kind are added to the addins list. Sample class enumeration code that I use could be downloaded from here . It is simple VS2005 addin that shows all classes in the solutions, filter class list while user types first letters of class name and jumps to class declaration. Unfourtunately code in the sample works very slow. It takes approx 10 minutes to complete for C# solution with 1200 code files (do you understand why I start ...Show All
Windows Forms DataGrids
I was wondering.. If anyone can show me a really really simple example of datagrids with maybe just one row of a random information... I have a load of tuts.. but I cant find the right one to start with. Ok I wil ltry these out.. but. .what is the difference in post ahmedilyas and and r3ns also im using .net 2005, but im coding this raw for knowledge purposes. ...Show All
Smart Device Development SerialPort Component IOException issue
I have a Ipaq Pocket PC. It connects to a bluetooth GPS Receiver (COM6). Whenever I try to open this COM Port using the SerialPort component I get an IOException. I have even tried listing all COM ports on the PPC, and opening each one inturn. Some work and some throw an IOException. Does anyone have a suggestion Hello, the same issue exists on my ipaq 1940. But after the exception is catched, the serial communications can be used - although i was not succesfull in using DataReceived event - it is never fired, so i had to use timer. ...Show All
Visual Studio Remove search window tooltips ?
Hi, How to remove search window tooltips which apear on each search result item thanks Vilius Unfortunately there is no way to disable these tooltips. However, if you go to Tools Options General you can check the "Show topic abstracts" box the search results won't show tooltips when you hover over the abstracts (they'll show a URL tooltip if you hover over the title) Nishan Jebanasam ...Show All
