|
I tried the following code to check "Allow Interact with desktop" of the Log on Property of my service using the following code but it is not working, but that option is checked. If I Uncheck and check it manually it is interacting with the desktop. Why????????
I tried this code in ServiceInstaller_AfterInstall,ServiceInstaller_BeforeInstall,OnStart()of the service and Service Class Constructor
--CODE--
Microsoft.Win32.RegistryKey ckey =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Services\Sample_Service", true);
if (ckey != null)
{
if (ckey.GetValue("Type") != null)
{
ckey.SetValue("Type", ((int)ckey.GetValue("Type") | 256));
}
}
--CODE--
Please Help Me
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
How can i send sms from my application to any mobile device.
How to achieve this???
reply soon
Regards,
|
|
|
|
|
Hi,
try the article search for "sms", there are lots of articles on cp about this topic.
|
|
|
|
|
Hi,
You need to use a Mobile Phone manufacrture's library. Using that you can send sms to from your application. These libraries have very simple interface.
There are two way to send the sms using these libraries.
1) Using a mobile handset
2) Using a getway.
One such library I do remeber is from Nokia.
Manoj
Never Gives up
|
|
|
|
|
Hi,
Can anyone have idea about how can i get a sub(small) dataTable from a huge dataTable?
datatable.select() returns only datarows that is time consuming in case of huge database. I want a fast method.......
Thanks
Syed Shahid Hussain
|
|
|
|
|
I don't know if this is the best way but I usually go back to the database to return any 'sub' data. For me this has always been the fastest method and would do this unless I need to limit network traffic for some reason.
|
|
|
|
|
Query in 30,000 for 10 times in 1 min is simply killing the aplication....
I want any System mechanism to solve my problem.
Syed Shahid Hussain
|
|
|
|
|
make a view of your table
use dataview class
to do that
|
|
|
|
|
Thanks Nauman Brother,
I'll check it in morning and then inform you about my progress.
Syed Shahid Hussain
|
|
|
|
|
Asalam-o-Alikum Dear Brother,
Really thanks for your hint. It has solved my big problem. Thanks
Allah Bless You with success.
Syed Shahid Hussain
|
|
|
|
|
plzzz - i need some help on how to record windows explorer events like file create, copy, delete, rename in VISTA using .NET. Application needs to track the user operations in windows explorer. PLZ HELP
Raj
|
|
|
|
|
Hi,
maybe the FileSystemWatcher element from the Toolbox can help you to solve your problem.
|
|
|
|
|
Thanx a lot for the feedback. i will look into it
|
|
|
|
|
I might be missing something here but i did something along these lines with the FileSystemWatcher class in the System.IO namespace. I made it watch the C:\ drive and then I just hooked up it's events so that is would write out the name(path) of the file in question and the event that was taking place along with the time to a text file. However this was on XP and i'm not sure what the difference is with VISTA.
enjoy
|
|
|
|
|
I managed to get more info on the same. thx a lot friend. but i am still looking on how to use it for an entire system (all the drives) . . . any ideas ??
|
|
|
|
|
i have a drop down in the grid view after a new row
i want to change the selection of drop down but i get the following error in my browser Failed to load viewstate i am using data table for binding what is the solution
|
|
|
|
|
Dear All
Regards!
Its me David,
I download drawtools from
http://www.codeproject.com/csharp/drawtools.asp
the above tool reading only dtl file.
but i need the above type or any other along with the same functions but read DXF file and then draw it, and after drawing i have the functions to edit it.
hope for + response,.
David
-- modified at 1:10 Tuesday 29th May, 2007
david
|
|
|
|
|
Oh, it's you, David! Almost didn't spot you under 4 million members...
Anyway, there are several articles here presenting Undo/Redo frameworks, for example this here[^].
If you still have problems with applying the undo pattern on the objects the drawing tools program uses you could ask your questions in the article's discussion - the original author will be notified that there's a new question regarding his article.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Please don't change your question completely while someone is answering it - now the answer doesn't match the question anymore
Again, the article's discussion is the appropriate place to ask this question, too.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi,
can anybody tell how to sort the grid view using the data table so that new row added comes on the top
|
|
|
|
|
There are lot of articles related to sort the gridview Here[^].
Hope this will help you.
Regards,
Satips.
|
|
|
|
|
"COM+ activation failed because the activation could not be completed in the specified amount of time. (Exception from HRESULT: 0x8004E024)". it's a error when I init a instance of COM+
Thanks!!!!
AJ.
|
|
|
|
|
hi, i have exactly the same problem...
i, got this private fix from microsoft, but it didn't work. i found another thread about a very similar problem. they said, that it probably has to do with pooling of com+ services... but it didn't...
This issue was turned over to Microsoft as a technical support incident, and the result was a "private fix" for Windows XP. You should be able to discuss this with Microsoft by referencing case number SRX051111604907.
Regards,
Satips.
|
|
|
|
|
Hi all
I have a server on a Windows machine that should accept client connections to send them data. This server is distributed with a software and all I have to do is to write the client application using socket programming.
If I write the client under Windows, it will work correct. But if I write the client under Linux, the client cannot connect to the server returning the error 'Connection timed out'. I use C++ and C# under Windows and C under Linux.
To make sure that my Linux client is correct, I wrote a server application under Linux and they worked correct. So I think that the problem is in Windows-Linux communication.
Any help...
Regards
islheg
|
|
|
|
|
I am working on an application that implements a drag and drop interface, but when I drag the control with the mouse the control's position does not actually change until the cursor touches the form. That is, if I have a control that is 200 pixels tall by 150 pixels wide and I click the cursor and hold it at pixel 100 and 50, the control does not move until the cursor touches the form, but then the cursor is again positioned at the drag point again. This causes the control to move in jumps. I would like the cursor to remain at the drag position where the cursor was clicked and to drag from that point smoothly without the cursor needing to touch the form.
Do I need to somehow resample the control's position so that it moves using the drag point without needing to touch the form?
Here is the code
private static void _ctrlParent_DragOver(object sender, DragEventArgs e)
{
try
{
if (DragDropHandler.CanDropHere((Control)sender, e.Data))
{
Control cthis = (Control)sender;
Control cthisParent = ((Control)sender);
e.Effect = DragDropEffects.Move;
Control ctrl = DragDropHandler.GetControl(e.Data, true, true);
if (!(ctrl is IDragDropEnabled))
{
return;
}
if (cthis.Name != ctrl.Name)
{
ctrl.Parent.Controls.Remove(ctrl);
ctrl.Parent = cthis;
cthis.Controls.Add(ctrl);
ctrl.BringToFront();
}
else
{
return;
}
Point NewLocation = cthis.PointToClient(new Point(e.X, e.Y));
ctrl.Left = NewLocation.X - dragPoint.X;
ctrl.Top = NewLocation.Y - dragPoint.Y;
}
else
{
e.Effect = DragDropEffects.None;
}
}
catch (System.Exception ex)
{
MessageBox.Show("Error is " + ex.GetBaseException());
}
}
-- modified at 14:26 Monday 28th May, 2007
|
|
|
|