David E Montgomery's Q&A profile
Visual C# Stop sharing a directory (CReating SHare)
Hi, I am using a ManagementClass to execute the Create method in the Win32_Share class, this works fine for sharing a directory. However I don't quite understand the Delete method. You'll notice from the documentation that it takes no arguments, does anyone know how it works Or does anyone know another way of removing a share from a directory Thanks Hello, I'm posting the answer to this question since I was having the same problem and found the answer somewhere on the web. All you have to do is something like this: ManagementObject share = new ManagementObject ( "Win32_Share.Name=\"something\"" ); share.Delete(); where \"something\" is your shared folder Thanks, David Gorena Elizondo [MSF ...Show All
Visual Basic How to display correct subcategories after selecting a category from a combo
I am developing an application that must have a category combo list and a subcategory combo list. My category combo list will consist of the following: Computers Printers Software If I select Computers as my category then I want my subcategory to display the following: Desktop PC Notebook Server How do I develop this using Visual Basic 2005 Professional together with SQL to achieve this Regards Dipendra Thanks for the details. Since I am fairly new to VB 2005, are you able to expand in more detail what you have described such as the table design alongwith which fields are primary or foreign keys. How do I iterate through the dataset to get the correct subcategories ...Show All
Audio and Video Development Getting a VC-1 file ready for advanced content authoring
Hi all, I just started to author advanced hddvd content but i vailed in getting a valid video content to test my first project. is it possible to multiplex a VC-1 file with the Sonic authoring system for standard HD content in a way that i can use it for my first advanced content project I tried to import the vc-1 file into sonic, generated a simple autostart HDDVD, multiplexed it and used the HVDVD_TS folder for my advanced content project but it didn't work. The Nero Showtime softwareplayer diplayed the menu correctly but didn't play the video. I also tried to burn a dvd rom and inserted it into my Thosiba HD_DVD player but it just displayed the disc error 0x4095C501. Can anybody help me thx mikeret ...Show All
Visual Studio Express Editions Breakpoints do nothing
I can't get breakpoints to work. I can set them, but they don't actually do anything (the program does not stop when it hits a breakpoint). As far as I can tell I am building and running in debug mode. I've tried re-installed VC++ 2005 Express several times. I've never gotten breakpoints to work. I'm a noob. Keep that in mind if you try to help me. OK, there are two things you can try. The first is to set a break point right at the start of the main function. The second is to use the f10 key to step through the program to see if you actually hit the breakpoints you set. ...Show All
Visual C# GIS/Mapping/Geocoding OCX for .NET?
I'm looking for a GIS/mapping/[reverse]geocoding toolkit for the .net environment. I've considered using mappoint desktop 2006 (although there are license restrictions that are forbid me to use such), and undertow software's mapocx pro. I do not wish to pay a huge developer cost and although not a major deal, royalty free would be a bonus. Any suggestions check these.. hope they help you.. http://www.svggis.com/geckonet.asp http://www.devdirect.com/ALL/MappingandGIS_PCAT_1933.aspx ...Show All
Visual Basic Unable to modify VS2005 Binding Navigator in the inherited Form
Hi! I put a BindingNavigator on a Form1 and set Modifier=Public. Then I created an inherited Form2. I put a BindingSource on Form2. But I cannot to set any value of inherited BindingNavigator because they are disabled. I need to set "BindingSource" property to the created BindingSource. Is it possible in other way than at run-time Stone I understand your frustration around this issue, but we disabled this scenario intentionally (for ToolStrips and ToolStrip derived controls such as BindingNavigator). We chose to not make the engineering effort it would have required to enable this scenario for VS 2005. This decision was not make lightly and we understand customers would like this functionality, but the existing visual inheritance arc ...Show All
SQL Server access denied to data source reporting services 2000
I have data on server A and the report server on server B. I have created reports that I can run through report manager (on server B). I have depolyed the reports but when I try to run the reports on client computers I get the following error: An error has occurred during report processing. (rsProcessingAborted) Get Online Help Cannot create a connection to data source 'ABCD'. (rsErrorOpeningConnection) Get Online Help SQL Server does not exist or access denied. I have tried setting different credentials ... windows security, specified username and password to credentials not required ... All give above error. TIA You will have to provide more informatio ...Show All
Community Chat .NET
What is the difference between .NET and java. If both are platform independent, can you suggest which is the most preferable based on platform independency. .NET application needs to have .NET framework running on the machine where you want to run it. In case of Java, you need to have JVM/JRE running to run Java application. As per my knowledge, JVM/JREs are available for different plateforms but DOT NET needs to have MS operating system. Note: there is possibility to run DOT net application on non-Microsoft plateform using some 3rd party application like MONO. Hope this helps you understand the difference. Well, I will love to work on DOT NET.... ...Show All
Windows Forms datagridview
hi, i have a datagridview(vid=sual basic 2005 and sql server 2000 thru dsn im working). i want to 1)display data from a table to datagridview 2) add new rows 3)delete 4)update. i added a datagridview and added 15 columns to that ans set name and columnheader for each. i also want some of the columns to be calender etc...(i added genericdatagrid user control.dll) i have the following code in the form load but no data is coming. can u please help con.ConnectionString = "dsn=alphasql" con.Open() da = New OdbcDataAdapter( "Select * from Company" , con) 'da.SelectCommand = New OdbcCommand("Select * from Company", con) da.Fill(ds, "Company" ) DataGridVi ...Show All
.NET Development Synchronised Time
Hi, We have client applications that need to synchronise their data with one another. For this reason the time on each of the PC's needs to be the same (within 2 minute margin is fine). The synchronisation procedure runs every hour but certain clients can only synchronise after months (laptop-user)! How can we ensure their clocks are synchronised at all times If there is a webservice somewhere on the internet that provides the time, how do we read it Also, does anyone know of two-way synchronisation code/documentation worth looking at Thanks D. Windows has built-in time synchronization. Normally, a computer logged into a domain will synchronize its time with the domain controller. Alternatively, any Windows computer ...Show All
Visual Basic Object Test Bench
in VS2005 Standard, when I right click a class in class view, select create instance, and say OK, I get "create instance failed", with details = 0x80004005. I've tried this with several different classes...which have warnings but no compile errors, and which I don't think are "generic" (because I don't know what that is and didn't try to make them that.) Any suggestions Thanks! The Object Test Bench is available in Standard (I have standard, and I have Object Test Bench). The only thing mentioned as being only available to Professional and Enterprise is the Class Designer. I had been getting the same exact error as you mentioned; however, by viewing the details printed to the C ...Show All
Visual C++ stdio.h errors in Visual Studio 2005
I just finished installing VS 2005 (is it that hard for microsoft to just let people download like, a zip file of it, rather than an img file, which i had no idea what to do with at first ) and tried the following code: #include <stdio.h> // include the standard input/output header file void main(void) // our program starts here { printf("Hello World!"); // print "Hello World!" into the console return; // return void to windows } It was part of an origionally blank win32 console app called test. When i tried building the solution or compiling the file separately, I got all those errors: ------ Build started: Project: Test, Configuration: De ...Show All
Windows Forms Can I use UserControl as a TreeNode?
Hi, I am trying to create a property window. The attribute in the property can be devided as several groups. So I decided to make use of TreeView. However I cannot find a way to use a userControl as a TreeNode. Can anyone help me But TreeNode doesn't have Paint event... so I don't know how to override that event... I am really sorry,, I am new to Visual Studio and .Net Thank you, Idos ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Making 3d Models?
Can you make 3d models like characters and stuff in XNA or not...Im new to this whole thing but want to pick up on it so bad. Wings3d is my favorite, although I don't think it exports into file formats that can directly be used (last time I checked this, I was using MDX2, not XNA). There's also Milkshape. I say pick out a few and keep the one for which the interface feels the most natural. ...Show All
Windows Forms Problem in DataGridView
I have created my own custom datagridviewcell which supports richtextbox and maskedtextbox properties. But these properties will come only at the edit time. For example if the color of the text is set as red in richtextbox, it will be shown as red at the edit time. Once i go to other cell it will be shown in black colour. Also in masked text box if the mask is set as shortdate then only at the edit time it will show like "__/__/____". Remaining time it will not show text like this. Can anybody tell me solution for this. (i.e., I want to show coloured text and "__/__/____" format in datagridviewcell at normal runtime, not only at edit time) Hello Wang Chi, My DataGridViewCell Class and it's editing control Cl ...Show All
