mimarko's Q&A profile
Visual C# Can I trigger timer interval of 24 hours?
Hi all, I would like to perform a job daily. May I know how to trigger a timer of interval 24 hours to perform the job Can anyone please help Thanks Why not just create an application and add it to scheduled task Start -> Control Panel -> Scheduled Task -> Add Scheduled Task It's easier this way, and you are certain that your scheduled task will executed on your specified time of day ...Show All
Visual Basic ACtive Directory Path Return
Hi All ! I'm a developer for a College we have an active directory. I need to query Active Directory with the Pc name and return it's path in the Active Directory tree. Not really sure how to do this any help would be great. Thanks DAve Here's a quick and dirty little function to return the full AD path given a computer name. You will have to reference the System.DirectoryServices asse ...Show All
Software Development for Windows Vista basic questions
great and timely framework for what we're doing. I was looking at http://web.openwfe.org/display/openwfe/Home but no need for this now questions: can I persist the instance of the workflow in database of my choice and why would anyone run the flow w/o persisting the states. Where is originally data (w/o db) serialized to I have an id associated with the object that moves through the workflow, how can I set an id so it stays wi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# - DirectX 9.0c - Creating a Basic Hexagon
I was wondering if someone could walk me through drawing a basic hexagon using DirectX 9.0c in C#. I've been using the Vector3 structure, and I am having problems understanding how to initialize the view transformation matrix for a hexagon, as well as what input vectors will represent the hexagon (understandably 6). Thank you in advance, Owen If I were you I would not purchase the book by Wendy ...Show All
Windows Forms Prevent 'RemoveCurrent' after BindingNavigator DeleteItem Click
After the user clicks the DeleteButton in the binding Navigator, I want to make sure he really wants to delete. ('Are you sure ....'). If he declines, I want to prevent the automatically following RemoveCurrent on the active DataRow. How can I do that BunnyStrider wrote: No database changes would be made until you did MyTableAdapter.Update(myDataTable) ...you're just ...Show All
Visual C++ Problem with OnPaint and ThreadFunc
Hi, I will explain a little bit of what I am trying to do: I am grabbing some images useing a camera and a framegrabber. These images I am displaying in a window that I created using a function of the framegrabber. My application has to a area to draw a graphic (this graphic is to the gray values of a line of pixels, that I get from the images that I am grabbing). So, I need to grab some images and draw a graphic using data from this image. I tr ...Show All
Visual C++ CreateMutex problem
Hi everyone, I'm getting a security threat related to giving DACL rights to "Everyone", for example while creating mutex- when I run my code through Application Verifier, even though I have removed the "Everyone" access completely from the code. Is it possible that some functions are interally calling functions like createmutex, etc, with the "Everyone" right Can we control it Also, Is there any way of traversing through a list of all mutex c ...Show All
Visual C# a bug in: ArrayList.Add()
It seems there is a bug in ArrayList.Add(); i have created a loop that adds differents array's (string[]) in ArrayList property. ok, let say i call my ArrayList "something" then this is what happens in my code: if i use: something.Add(Array1); then it adds it normally. if i use it two times: something.Add(Array1); Array1[1] = "another value" something.Add(Array1); then it adds it AND overwrites the old value, so both 'something[0]' and 'som ...Show All
Visual C# Accessing Sharepoint Site Collection & getusagedata (cannot access sharepoint config db error)
I'm creating a windows forms application to access the usage data using the getusagedata method. Note that all this works on a developement server. On the production server, when I attempt to either create a new site SPSite("typed the url here") or create a spglobaladmin(returns yes for isglobaladmin), create a virtual server for the globaladmin, then try to perfom anything at the site level(count etc..) I get the following error: Microsoft. ...Show All
Visual J# Warning - don't use ReSharper
Hi; If you have done much development in C# you probably have ReSharper and it is a tremendous help. But when it get's in J# it slows the system down a LOT and it gets all confused with intellisense. I ended up removing it. Hi Barry, Resharper is a third party addon utility for Visual Studio. It is not a Microsoft product and not shipped with Visual Studio. If you have not installed it after installing Visual Studio then it wo ...Show All
SQL Server How to search all columns in a table at once?
This is a true newbie question. I want to search an entire table for a string. Is there a way to do the equivalent of: SELECT * from <db.table> WHERE(*) LIKE '%<some string>%' The WHERE(*) is my attempt to say search all columns. That's apparently not legal in SQL so my question is whether there is a legal way to do it without have to spell out the names of all the columns. This is sort of equivalent to doing a Find on a string in a ...Show All
Windows Forms Error while accessing value of the control
Hi, I have two combobox filled with data in a window form. I also have one more window from in which I have declared two variables. Now my requirement is that how can we access selected value from the combobox in first form to the valiable declared into second form. How can we access selected value of the combobox from any place in the working application. If possibe please provide some example. Thank you ...Show All
Visual Basic Shell Method
How can I load a folder up in the windows explorer Your first line, should be... Dim sFile As String = Me .TextBox.Text.ToString() Don't forget to add the .Text before the .ToString(). If that doesn't help, debug the code, and check the value of sFile at the If statement. ...Show All
SQL Server Cannot get rid of SQL server 2005 Developer Edition Installation
I cannot uninstall the SQL Server 2005 Developer Edition. I have run the uninstall from the control panel for ALL of the SQL Server 2005 components. They are no longer listed in the installed programs list. I have done the uninstall with both the Control panel and the command line. When I try to install SQL server Express (Downloaded from the web last night) It will not install. The error message is: TITLE: Microsof ...Show All
Visual Studio Express Editions playing music in vb express?
How do you play a wma or mp3 file do you have to have an activexcontrol, if so i have tried the windows media player activex control and I don't understand it. does anyone know how to do either i need something like wmp.play = C://Mydocuments/Mymusic/example or something like that Yes, the Windows Media Player control is the way to go. http://www.codeproject.com/useritems/Play_sound_in_VBnet ...Show All
