CrowWu's Q&A profile
Windows Forms Can I hide the listView.Items.SubItem ?
Hi, there ************************************************ listView1.Items.Add(ID) listView1.Items[i].SubItems.Add(Name); listView1.Items[i].SubItems.Add(TEL); listView1.Items[i].SubItems.Add(AGE); ************************************************ Can I hide the listView1.Items[i].SubItems[3] Thanks... Here's a Q&D workaround in VB.NET code: Dim item As ListViewItem = ListView1.Items(i).SubItems.Add() item.Tag = AGE '--- Hide it: item.Text = "" '--- Show it: item.Text = CStr(item.Tag) ...Show All
.NET Development ras, vb.net
I am writing an app that will dial into a win 2003 server, download some files, disconnect, then dial into another win 2003 server, etc. I not sure which is the best way to go. Any help would be appreciated. Thanks in advance, mshytech The best place to start is the API Reference page. http://msdn.microsoft.com/library/default.asp url=/library/en-us/rras/rras/remote_access_service_administration_reference.asp ...Show All
Visual Studio Express Editions Memory / speed issues with loading text file into SQL express database
I put together a sub to stream a text file into a database using vb.net express and sql server express editions. The text file is about 1.5GB and consists of about 2 million rows which will be parsed into 122 columns. I setup the database with 123 columns, the last column being an autonumbered index. Each of the columns has a maxlength set to the width of the data in the text file, and I use that maxlength along with the mid function to parse the data. It all works fine, but I wanted to get some opinions as to the structure of the code to see if there's anything I could do to optimize it. It took about half an hour to load up 37,000 lines, which means I'd need to run it for a full day to get the file loaded. I also have 3 additional fil ...Show All
Visual Basic Bookmarks Menu and Organize Bookmarks Menu
Background: Im making my application. It is a sort of a browser which displays HTML pages save in the local hard disk of the user's computer when he installs this application. In the main form is the WebBrowser control which does this function. First, let: FolderX = a folder (intended for saving the links to the user's favorite pages) in the program directory of my application when installed. This means that this folder is not the same with MS IE's Favorites folder. PageX = the page currently displayed by the WebBrowser control in the main form. Here is the problem: I've included a MenuToolStrip in my main form. In this, there is a menu called Bookmarks . I want that when the user clicks on Bookmarks the menu will expand to: a.) ...Show All
Visual C++ problem with ACCESS_MASK
Hi, I need to add an user with full control access right to a directory. I got this function from msdn that allows me to do that. But the ACCESS_MASK which I provide doesn't seem to work. It only grants the List Folder Contents right to the user. please help, thanks code: LPTSTR pszObjName = L"Z:\\146371"; // the target directory path SE_OBJECT_TYPE ObjectType = SE_FILE_OBJECT; LPTSTR pszTrustee = L"asiapac\\146371"; //the account name TRUSTEE_FORM TrusteeForm = TRUSTEE_IS_NAME; DWORD dwAccessRights = 0xF0000000; // i want to grant all // access (read, write, // execute, etc..) to this user ACCESS_MODE AccessMode = GRANT_ACCESS; // not sure whether it is // grant or set_access DWORD dwInheritance = CONT ...Show All
Visual C# Capacity
what is the capacity of Arraylist and the hash table in visual c#... Syntactically, ArrayList.Count and ArrayList.Capacity are of type int, so they could only handle Int32.MaxValue values, limiting ArrayList to 2,147,483,647 values. In reality, depending on object size and memory, the limit of ArrayList is arbitrarily smaller than this. HashTable.Count is also of type int and the interfaces returned to navigate the collections contained in a HashTable also use an index of type int, so it would suffer the same limitiations. ...Show All
Windows Forms Threading and the FileSystemWatcher
I need some help with the filewatcher class. I am trying to use it to monitor a directory and get the list of files that are created and deleted from the directory. What I want is a thread to do the processing of the file and send back status messages to the windows form or system tray application that is created. I have started some of the code, and I used to have something that did this back in .NET version 1, but i have since lost the code that I wrote. Here is what I have so far FileSystemWatcher _fw = new FileSystemWatcher (); delegate void SetStatus ( Label tmpLbl, string text); Thread _wrkThread = null ; public fMain() { _fw.Changed += new FileSystemEventHandler (_fw_Changed); _fw.Deleted += ...Show All
SQL Server Subscription Failing in Wizzard Foe SQLMobile ?
Hi, Need a little help on this one.... Using SQL Server 2005 and attempting to create the SQL Mobile CE example Publication and Subcripion. I was able to successfully create the publication on the main server engine but when trying to complete the wizzard for the SQL CE Database subscription I receive an error. The Subscription fails using the wizzard with the following credentials: Publisher: LAPTOP PublisherDatabase: SQLMobile Publication: SQLMobile Subscriber: SQLMobile HostName: InternetUrl: http://localhost/SQLMobile Web Server Authentication: Anonymous PublisherSecurityMode: Windows Authentication I have also created the Snapshot folder that is shared. Here is the error I get when cli ...Show All
.NET Development XML DOM and Javascript
I would like to query an XML file (see part of the file below), using an input box on a html form, I woud like to type the name of the country eg Albania, and have all the attributes relvant to that country appear on the same form. I have tried using the getElementsByTagName method, but dont know the syntax that will allow me to associate the name of the country with the input box on the form..can someone please help..... <country id="cid-cia-Albania" continent="Europe" name="Albania" datacode="AL" total_area="28750" population="3249136" population_growth="1.34" infant_mortality="49.2" gdp_agri="55" inflation="16" gdp_total="4100&quo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ... TRIDEX VB.NET dimistified Can it be done YES YES YES YES .............
ok guys and girls a lot of people think you cannot use vb.net with XA, well either I am crazy or I am a wizard, it can be done the same way you do with c#, I have code for all the vb.net users who wold like to try it on my website, http://www.tridexconsultants.co.uk/pages/DirectxClasses.htm I am just waiting for the conetent pipe line stuff to get some animation into the models!!!! Every thing can be done including creating game components e.t.c, No secret to refrence an Assembly!!!! ... Tridex... quote: "there are known that we know are knowns, but the knowns that are known are still unknown so....." ok, but will this be possible in the ...Show All
Software Development for Windows Vista Can I dehydrate the Workflow object as well as the instance?
Hiya All Can I dehydrate the workflow object (i.e. not an instanciation of it) into SQLServer I want to save all versions created of a workflow so that I can chose to instanciate the workflow from any of the previous versions if I need to. This is due to a compliancy issue - being able to reconstruct the data created by a previous version of a workflow to prove accuracy. Thanks Michelle x Hi Matt, Could you explain those steps a bit more (with an example or something) I think I need the same technique to allow updates of my workflow. Thank you in advance! ...Show All
SQL Server Generating and directing new rows in PostExecute.
I want to construct a dataset based on all rows passed in from a source and, upon running through all of them, push each dataset record to an output. Unfortunately, upon calling the AddRow method, I get an "object reference not set to an instance of an object" error. Am I not allowed to create new rows in PostExecute Hmm, strange. if you want, drop me an email via here: http://blogs.conchango.com/jamiethomson/contact.aspx and I'll reply so you can send me the package. I can take a look and see if anything jumps out. If you can build the package so that I am able to run it as well (i.e. not reliant on external data sources, just use a script source component instead) then that'd help. -Jam ...Show All
Windows Forms How to format cells in DatagridView
Hi Guys!! This is my first message ' I would like help me in this problem... I have an DatagridView and need validate the cells in such a way user can only enter numeric data Do you know if it's possible I'm working in C#.. upss sorry I forgot Thanks, (Moderator: Thread moved to this forum for better responses) Here is some code to your first question. Private Sub DataGridView1_EditingControlShowing( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing If TypeOf e.Control Is TextBox Then   ...Show All
.NET Development NotSupportedException System.Drawing.Bitmap
I have a VB.Net program which is running on CF MobilePC 2003. In the form creation logic (generated by VS), the creation of a bitmap on the form (in a PictureBox) gets the following exception: Me .pbStop.Image = CType (resources.GetObject( "pbStop.Image" ), System.Drawing.Image) System.NotSupportedException was unhandled Message="System.Drawing.Bitmap" StackTrace: at System.Resources.ResourceReader.LoadObjectV2() at System.Resources.ResourceReader.LoadObject() at System.Resources.RuntimeResourceSet.GetObject() at System.Resources.ResourceManager.GetObject() at System.Resources.ResourceManager.GetObject() at FoxFetchRT.frmPick.InitializeComponent() ...Show All
Visual Studio Express Editions Editing check boxes and such while not in that form
Is there anyway I can change the status of items on another user control, like I am on page 3, but i want to change the status of a check box to checked on page 2, is there anyway i could do that without actually being on page2 Reference the control you want to change. Say the checkbox in on form1 then use code like this: Form1.CheckBox1.Checked = Not Form1.CheckBox1.Checked ...Show All
