Syed O. Raihan's Q&A profile
Visual C# start process as system user.. c#
Hi i was wondering how other make possible to start a process as a system user.. you know that in task manager when it shows what user started that process it also showes by what user.. i see many apps doing that... anybody knowes how to do that You can use the CreateProcessWithLoginW method to start an process with an other account. A great article and w ...Show All
Windows Forms Mask validation on Windows form text boxes
Can anyone tell me how to put a simple mask validation on a Windows Form text box i.e. ZipCode = "59330" so mask should be ##### I can't figure out how to do this. Thanks so much! Tracy Today someone has posted a masked ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Stretched Texture
My texture displays stretched vertically and I have no idea why. I loaded it using TextureLoader and used Sprite.Draw2D(texure, rectange, size, position, Color.White). I always set the rectangle and the size to the same. Can anyone help I'm new at this stuff. Thanks! Here's a method I developed that is quite effective at turning a Bitmap into a texture (and gets around the square problem): protected D3D.Textu ...Show All
SQL Server Configuration file reused by different packages
I have two packages share same configuration file. There are 4 connections in the first package and 2 connections in the second. Configuration file contains properties for 4 connections. First package opens in VS designer with no error. The problem with second package. I get error that connection exist in the configuration but not in the package and "Could not copy file " Master_Configuration.dtsConfig" to the deployment utility outpu ...Show All
Windows Forms UserDeletingRow fires four/five times
I have a datagridview and I implement the event UserDeletingRow When I select 1 row and I press the delete-key, the UserDeletingRow event is firing 5 times. So when you look to the code, you can see I have to answer five times "are you sure..." private void dgv_UserDeletingRow( object sender, DataGridViewRowCancelEventArgs e) { if (!e.Row.IsNewRow){ string str = "" ; try { str = ( string )e.Row.C ...Show All
Visual C++ Getting Errorcode 128 when CreateProcessA API is called
Getting Errorcode 128 when CreateProcessA API is called In my project, one component (EXE) is calling another component, using CreateProcessA Windows API. When I installed the exe, for first 2-3 days, it was running fine. After that, it started giving an error return value 128 (Error "ERROR_WAIT_NO_CHILDREN") when the exe is executed and the process terminates abruptly. This shows that User32.DLL is not getting initialized. In microsoft knowled ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
Visual C# question about retrieve single selected date in MonthCalendar
hi, i am new to c#, in my project, when a date on the monthcalendar is selected, i want to catch the date for future use (e.g. retrieve all the bookings on that date from db). i have read some articles about this, now i can call "SelectionRange.start.ToString(); " to get the starting date and call "SelectionRange.end.ToString(); " to get the ending date. what about a single date selected i tried "SelectionRange.start.ToString(); " and "Sel ...Show All
Visual Studio Why isn't there a "no filter" option in dexplore?
Dexplore Express beta 2. For Visual C#/C++/WebDev (and probably SQL/J#/VB) Express. I can't seem to find the "no filter" option for Document Explorer. This means I must browse the indexes and contents using a filter. In VS 2003, you had the option of not having a filter so you could see all the topics in the help collection. However, for VS2005, there is no way to see all the topics. To workaround this, I have to use FAR to add my own filte ...Show All
.NET Development Email Priority
In the new System.Net.Mail.MailMessage object, I do not see a way to set a message's priority. If I recall correctly, this was in the older model found under System.Web.Mail.MailMessage. Any ideas as to how to a a MailMessage's priority Thanks. John Try this: 'assuming message is your MailMessage obj message.Headers.Add("X-Priority", "1 (Highest)") Possible values : 1 (Highest) 2 (High) 3 (Norma ...Show All
Visual Basic How to halt a program???
Let say i have two program called program A and program B, i run program A, but inside program A, i use [call shell(C:\....\programB.exe)] at the 2nd line of my codes in program A, how do i stop program A at 2nd line, until i finished running program B then only continue execute the rest of the code from 2nd line in program A Please help, if you dun understand wat im saying above, u can ask ...thanks a lot!!! You can use Process.S ...Show All
Windows Forms convert object[] to ArrayList? (C#)
Is there way to convert object[] coll to ArrayList Maybe somebody knows <i>> as far as I know the array doesn't implment System.Collections.ICollection ... </i> Yes, it does. So you can just use: object[] o = ... ArrayList a = new&nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed Directx Deployment Problem
I am making a game using visual studio .net 2003 with directx 9 2005 update. I create a deployment project with visual studio that includes all directx.dll files and other detected dependancies. I deploy the game to the computer on which it was developed and it works fine. Now I want to test the networking so I deploy it to a laptop. The laptop is running windows xp with SP 2 (so .net framework is there obviously) I ...Show All
SQL Server Is there a way to loghshipping data from sql 2000 to sql 2005? thanks
Is there a way to loghshipping data from sql 2000 to sql 2005 thanks Does this mean when the database is opened it is upgraded to 2005 Once it is 2005, will it still be able to receive logs from the 2000 primary Thanks ...Show All
Visual C# devenv.exe in 2005 ignores project's Output Path
Hi, I'm using a simple batch file to call devenv.exe to build my solution. This worked fine in VS.NET 2003. Now with devenv.exe from 2005, the build works fine but the resulting assemblies are placed in the solution directory (or possibly the project directory - my .sln and .csproj are in the same directory). They SHOULD be written to <proj directory>\bin\debug (or release). It seems that devenv /build is ignoring the "Output Path&quo ...Show All
