imdz's Q&A profile
Visual C# How Can I create Windows User Account by calling WMI method to do that ??
Hi How Can I create Windows User Account by calling WMI method to do that I know that I can create windows user account by using [System.DirectoryEntry] Class as this artical in microsoft support website http://support.microsoft.com/default.aspx scid=kb;en-us;306273 but my question is to create the Windows user Account using WMI methods , How Can I do that and thanks with my best regarding Fraas yes that's right Unfortunately The only method in Win32_UserAccount class is Rename as the information in MDSN and WMI Code Creator so please if you get eny thing elase...please post it here and I will be thanks for your ...Show All
Visual C# Raising an event in C# that impliments a VB interface?
Hi. I have an public interface class in VB that I'm trying to use in C# (I'm converting my ways to C# - like it!!). I'm getting the following error when trying to code for the event handler: C:\<path>\newDevice.cs(7,18): error CS0536: 'deviceInCsImplimentsEquipIL.newDevice' does not implement interface member 'EquipmentIL.EquipIC.Methods.ConnectionEstablished'. 'deviceInCsImplimentsEquipIL.newDevice.ConnectionEstablished' is either static, not public, or has the wrong return type. Here are two events from the VB portion of the interface: Event ConnectionEstablished( ByVal id As Long , ByVal address As String , ByVal port As Integer ) Event NewData( ByVal id As Long , ByVal message As String , B ...Show All
.NET Development need help in updating records SQLException (.net1.1)
can anyone plz solve this probelm I'm getting this sqlexception at the point where I've written this in comments. I just dont understand. I'm giving this value in the parameters as u can see, its getting the rt value as well. plz help me out with this... thanks /* system.data.sqlclient.sqlException: procedure BillUpdateCommand expects parametre "@Original_BookNo" which was not * supplied. * bla bla blah *line 995 t CREATE PROCEDURE dbo.BankUpdateCommand ( @BankName varchar(50), @Original_BankID numeric, @Original_BankName varchar(50), @BankID numeric ) AS SET NOCOUNT OFF; UPDATE Bank SET BankName = @BankName WHERE (BankID = @Original_BankID) AND (BankName = @Original_BankName); SELECT BankID, BankName FROM B ...Show All
Software Development for Windows Vista Using DirectShow for Accessing Video/Audio from IP Cameras
I am developing an application to access ip cameras over my network and display them on my Web Page with 3 PictureBoxes. The frames should be watched over these PictureBoxes in real-time. The project is a Surveillance Application which controls network cameras ( ip cameras ) through the server pc. I could found nothing on the internet except that an ip cam has a webserver running inside which sends its frames to an http page to be watched over internet but I'm not sure if that is 100% correct and common for all ip cameras. The problem is with the IP Cameras, because I’m not sure about their underlying working mechanism. In their softwares they mostly send frames to a web page which can be watched over internet or LAN. Do they all work t ...Show All
SQL Server How to: Set up & interpret a model to predict Even Dollar Transactions
Generally, what would be a good start to model and make predictions based on the following. Even Dollar Transactions – Including transactions that end in $0 or $50 with a Total Transaction Amount between $400 and $5000. I have a table called Transaction with a BillingAmount column. I've gone through the SQL Server 2005 Data Mining Tutorial (which uses a discrete prediction BikeBuyer yes or no) and read a lot of Data Mining with SQL Server 2005. Neither of these give good, complete, methodical examples of selecting inputs and targets and making predictions; especially for continuous columns. I think I'm generally struggling with the concepts of selecting (continuous ) predictable attributes and calculating predictions based o ...Show All
SQL Server snowflake dimension - Role-Playing table
I have a main dim table which references some other table tree times by foreign keys (defined in the DSV), but i do not find a possibility to create the Attributes three times with each foreign key. Is role playing only possible with complete dimensions and not with tables Is it by design not possible to use a single table multiple times in a snowflake dimension Is the only workaround a named query LG, HANNES ...Show All
Visual C# Events
I know how events/delegates works. its when implementing them that seems to be the problem with me. now... I have: a Form several classes the form knows nothing, it only knows about 1 class, which it instantiates. this class instantiates other classes. The form, nor do the other classes, need to know about each other. now, I have successfully created events which when raised from the main form, one of the classes acts upon it - thats all good. what I want now, is the complete opposite. I want to make an event where, in one of these classes (not the class the main form creates) I can raise so that the main form picks it up and acts upon it. Since I am mostly confused at times when events are involv ...Show All
Windows Forms reaching cell position
hi i am working with TableLayouPanel and i have a problem to reach one cell to change it color. can you tell me if its possible to do that and how thank you i want to know if i can color one cell without using any controls. becasue with this expression tableLayoutPanel1.Controls[0].BackColor = Color.Blue; i have to put some controls in the cells ,otherways iy will not work ...Show All
Visual Basic Setting PowerPoint Password Default Message
Hi - I'm working on an existing piece of software written in VB that generates powerpoint presentations based on selected slides from a set of existing presentations. The admin has the ability to lock the end presentation by password protecting it and forcing the end user to open the files as read only. What I need to know is how do I modify the default massage that appears when the Password popup appears Right now it simply says: 'filename.ppt' is reserved by [Author] Enter password to modify, or open read only. My boss wants it to say something more user friendly but I can't find anything on how to change it... Thanks for your help! ...Show All
Audio and Video Development Eventhandler "controller_key_down"
Hi, i have a problem with the eventhanlder "controller_key_down". I write following function, but when i press the Key "1" nothing happen. I also tryed other keys, but it doesnt work. Can someone help me with this problem function handleEvent(evt) { switch (evt.key) { case VK_1: Player.playlist.titles["robots"].chapters[1].jump("00:00:00:00",false); break; } } application.addEventListener("controller_key_down",handleEvent,true); I'm having a similar issue using your code from the BareBones menu. You mentioned something in the blog post about USB keyboards. Is that really an issue and is it possible this person is having t ...Show All
Visual Basic List values in enumeration
Hi, Does anyone know of a way in which I can list all of the values in an enumeration I want to use the enumeration values to populate a listbox. Here is my enumeration: Public Enum Processes ForceVolume PeakAdhesion Slope End Enum Regards, Bob The "integer" version of this example doesn't work for me. Does it work for you with the enum as defined in the original post ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Draw a Bounding Box
I have calculated the bounding boxes of all the objects of my scene and now I want to see them, I have all the vertexs of the cubes (bounding box) of all the objects in arrays like this: D3DXVertex3 ObjectBound and I want to draw this boxes to see when they collide. How can I draw this boxes Here my code: const unsigned short index[] = {0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 3, 7, 2, 6, 0, 4, 1, 5}; m_pd3dDevice->SetFVF(D3DFVF_XYZ); m_pd3dDevice->DrawIndexedPrimitiveUP(D3DPT_LINELIST, 0, 24, 12, (void *)index, D3DFMT_INDEX16, ObjectBound, sizeof(D3DXVECTOR3)); where ObjectBound is declared as follow: D3DXVECTOR3 ObjectBound[ 8 ]; Cheers, AGPX ...Show All
Windows Forms How to Wrap text in a text box column of datagrid in windows application.
I have a datagrid column in which I want to wrap the text in one column. private DataGridTextBoxColumn dgcComments dgcComments = new DataGridTextBoxColumn() dgcComments.TextBox.Multiline = true dgcComments.TextBox.AcceptsReturn = true dgcComments.TextBox.WordWrap = true I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. I am able to see the wraped text only when I manually increase the size of the row and click in the cell containing value. Anybody has any idea how to wrap text in a text box column of datagrid Regards Hemant Maybe this thread will help. ...Show All
Smart Device Development Possible to scroll to a specific row in a datagrid?
Is it possible to scroll to a certain row in a datagrid, and how would you do it C#: this .dataGrid1.CurrentRowIndex = certainRow; VB: Me .dataGrid1.CurrentRowIndex = certainRow ...Show All
Visual C# how to work with my monitor
Hi , I have next problem: How can I using C# turn off my monitor What classses, technologies or functions should I use Can I do such thing Thanks for help Windows can turn off the monitor in it's power saving settings, so it can be done, but I doubt any C# APIs can do it, I'd be searching google for C++ APIs and looking to p/invoke them. ...Show All
