Topics
-
-
- Administrators
- 9 replies
- 3k views
There is a LocalSystem Service (Job.exe) which performs a certain absolutly required task (for example: file system watching), this service is run for all users (at least when they logon). There is another LocalSystem Service (Serv.exe) which uses CreateProcessAsUser(...) to launch a process as a different (admin) user. There are 2 accounts, USER (which is the one logged-on) and ADMIN. So this is the scenario ... User logs in to USER account (non-admin) and both LocalSystem Services (Job.exe & Serv.exe) start and work without any problems... Then at a certain point Serv.exe calls CreateProcessAsUser() using the ADMIN account in order to launch an administrative …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 1.9k views
I'm using the following code to position a textbox over the selected listview subitem dim selSubitem as ListViewItem.ListViewSumItem Private Sub ListView1_MouseDoubleClick(......)..... Dim info As ListViewHitTestInfo = ListView1.HitTest(e.X, e.Y) 'MessageBox.Show(info.Location.ToString) selSubItem = info.SubItem txtEdit.Width = info.SubItem.Bounds.Width + 2 txtEdit.Height = info.SubItem.Bounds.Height txtEdit.Location = info.SubItem.Bounds.Location + ListView1.Location txtEdit.Text = info.SubItem.Text txtEdit.Visible = True txtEdit.Focus() txtEdit.SelectAll() End Sub But this only works c…
Last reply by Illusionistx, -
-
- 0 replies
- 674 views
Hi all, We see many features available in .net that helps us code better than vb. I gave the following reasons to my seniors and they are convinced to switch from a technical perspective. But our business team may ask us to quantify the same before approval. How do i do that . could you please help.........(please remember business department is completely different from technical team we do not personally know these people.) Following were my points to convince technical team(i am excluding the briefs that followed the points) 1. Performance 2. Reliability 3. Object Oriented and Reusability 4. Simplicity 5. Error Handling 6. Powerful IDE 7. Future Sup…
Last reply by IM1980, -
- 2 replies
- 6.3k views
A Slider Bar: Is this available in Visual Studio? There could be a toolbar I have not loaded, it could be called something different, or maybe I need to make it using a list of existing components. Thanks, Joe
Last reply by bugmenot, -
-
- Administrators
- 3 replies
- 1.8k views
I have this application where i drop a audiofile in a textbox and it then uses besweet to encode the file. It almost works great, besweet does it work, but looks like the application doesn´t recognize it has ended. I use the follow code (that i found at microsofts homepage): ProcessStartInfo pInfo = new ProcessStartInfo(); pInfo.FileName = this.besweet; pInfo.Arguments = "-core( -input \""+this.audiofile+"\" -output \""+this.finalaudio+ "\" -logfilea \""+this.logfile+"\" ) -azid( -c normal -L -3db ) -ota( -hybridgain ) -lame( -p --alt-preset "+this.bitrate+" )"; Process p = Process.Start(pInfo); p.WaitForInputIdl…
Last reply by gardet, -
-
-
- Administrators
- 4 replies
- 1.1k views
Hello, I want to get a web based application developed by some programmers but am not sure which tool to use: VB.NET or ASP or PHP or ??? Can someone please recommend and help me understand the difference between (VB.NET or ASP or PHP or others) and which are the benefits. The back-end database will probably be SQL server or oracle. Will be very thankful for your help and reply.
Last reply by morland, -
-
- 0 replies
- 1.5k views
Hi, I have an application keep fetching email from Outlook through MAPI for every 15 seconds. I let the program run for like 3 days or more, and I noticed the memory usage of Outlook keep growing--from between 50MB and 60MB to between 70MB to 100MB. My application however remains about the same memory usage for several days run. What cause Outlook 2007 keep allocate more memory? Could I do something in my code to avoid this happens? Thanks in advance.
Last reply by Worrow, -
-
- Leaders
- 3 replies
- 1.1k views
Hi all, I was wondering if it is possible to retrieve the complete HTML source (like the View Source option in the internet explorer) of a website using the WebBrowser control in VS2005? Thanks, Thei
Last reply by Thei, -
-
- 1 reply
- 2.2k views
Hey. Have searched on google for like two hours without getting anywhere near what im trying to do so i thought you could help out. The question is just like the title says, How do i get the number of frames in a video file? (Using C#). -- Henrik
Last reply by gardet, -
- 0 replies
- 1.5k views
Hi everybody i need some help regarding my project actually i am using a data grid view control in my project and this data gridview is set to data reader now what i want is to just limitise the no of columns the grid view showing. Actually i have 4 columns in my data base and i want just 2 of them to be display on the data grid... Here is the code. private void Form1_Load(object sender, EventArgs e) { DBHandler ObjDBHandler = new DBHandler(); dataGridView3.DataSource = ObjDBHandler.GetAllPrograms(); } can any body tell me how to customise the data grid view control in the following context
Last reply by dotnetnovice, -
- 1 reply
- 2.6k views
hi all, i am developing an online application using asp.net 2.0 with C# in this i have to show user how much time left to fill the form i am able give using below java script but when ever page refreshes it is starting from the first can you suggest me how to maintain time left even if page got refreshes also please check the below code or any alternative <script type="text/javascript"> setInterval ( "doSomething()", 1000 ); function doSomething ( ) { var att=document.getElementById("Txtpno").value; att--; if(att==0) { window.confirm("[laxman]"); } else { document.getElementById("Txtrnk").value="Time left:"+att; document.getElementById("Txtpno")…
Last reply by laxman, -
- 7 replies
- 10.6k views
I have some relative URL's like the followings: <a href="/some/folder/index.html">Sports</a> <a href="some2/folder2/default.htm">Weather</a> What I want to do: <a href="http://www.domain.com/some/folder/index.html">Sports</a> <a href="http://www.domain.com/some2/folder2/default.htm">Weather</a> Basically, I want to insert the domain name at some index. I can match the regular expression without any problem and I did not want to use the groupping in regular expression, because then I have to use a while loop. So I wanted to use the regular expression replace function to enter the domain name in C#. This is …
Last reply by emnoiinay9, -
-
- Administrators
- Leaders
- 9 replies
- 2.9k views
In many parts of my program I save things to a file (usually .dat) in the following format: Setting1 1 Setting2 0 Setting3 0 The spacing in between is actually a vbTab so when I read it in I use the split function to get the data I need. Anyway my problem is that now I'm having a file saved in the following format: Name Rat Level 2 Drops Coins: 10-20 Bones Raw meat Once again the spacing is a vbTab and i write a blank line in between each. The problem is that for the Drops title there are 3 lines that need to be loaded but when I load the data into my program it only loads the Coins: 10-20 and leaves off …
Last reply by snarfblam, -
-
-
- Administrators
- 8 replies
- 1.5k views
hi, i have uploaded my site to mysite.com....after a while i decided i wanted to move my site to mysite.com/ms/. the problem i noticed is that cookies are not working anymore...thing is i get logged off in around 5min...even though im active on the site. this has not happened when it was in a root. the hosting company has wrote me this: well i have tried that and reuploaded the whole site...still doing the same. why is that, that on my local machine things are working as they should? this is what i have in config file: <forms loginUrl="Login.aspx" defaultUrl="Login.aspx" protection="All" cookieless="UseCookies" path="/rc" timeout=…
Last reply by UrKo, -
-
-
- Administrators
- Leaders
- 6 replies
- 2.9k views
I recently got a new CD. It plays in the car's CD player fine; plays in the home theater fine. I brought it to work to play on my PC. It autoloads an interface to view a video (that required Quicktime) and a button to play the music. I clicked to play the music, my Windows Media player loaded up, but nothing happened. I navigated to the CD and found that it contains a large executable (about 300 MB), but no soundtracks. OK, obviously, someone has found a way to prevent others from copying their music. My questions are: How is this done? To my knowledge, my old CD players do not have the ability to run executables. Next, I'm a software developer, so ..…
Last reply by joe_pool_is, -
-
-
- Leaders
- 2 replies
- 2.6k views
I'm writing a Roster class for our company's training program, and I'd like the class to implement the ICollection interface using our Employee class as a template: public class Roster : ICollection<Employee> When I punched this into VS2008, Intellisense gave me the options under ICollection to Implement Interface 'ICollection<Employee>' and Explicitly Implement Interface 'ICollection<Employee>'. Poo-doo! The ICollection interface is something I've never gotten a chance to work with, so I don't really know what the difference is. I just picked the simpler looking one, Implement Interface 'ICollection<Employee>'. VS constructed several…
Last reply by joe_pool_is, -
-
-
- Administrators
- 4 replies
- 5.5k views
Dear all, I have created a code in VB.NET to read data from text files. Data is read from a list of files, where each file is changed using a for loop. Data is written to a new text files. Each file is read one by one and written in the same way. Now, my speed of execution is very slow. I am using a Quadcore processor with only 20-30% of CPU utilization when my code runs. Is there anyway I can increase the speed of reading and writing? To read only 125 files it takes 10 minutes or more, which is very slow indeed, because in the end I need to read thousands of files and write them. Each file is approxiamately 30-50kb. Here is my code. Public Sub ReadRMRDataFi…
Last reply by awyeah, -
-
-
- Leaders
- 2 replies
- 788 views
How can i initialize a CBoolProperty? Declaration: CBoolProperty m_bHeight; Method: void CHuman::SetHeight(bool bHeight) { m_bHeight.Value(bHeight); } but when i debug. m_bHeight.Value is always true until i set bHeight with false. I want to initialize it to false.
Last reply by DPrometheus, -
-
-
- Administrators
- 1 reply
- 2k views
I have a class (NamedPipeManager) which has a thread (PipeThread) that waits for a NamedPipe connection using (ConnectNamedPipe) and then reads (ReadFile) - these are blocking calls (not-overlapped) - however there comes a point when I want to unblock them - for example when the calling class tries to stop the NamedPipeManager... How can I interupt it? Using Thread.abort? Thread.interrupt? Is there a proper way to handle this? Refer to the code below which illustrates my current situation main() { NamedPipeManager np = new NamedPipeManager(); ... do stuff ... ... do stuff ... np.Stop(); // at this point I want to…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.2k views
Hi, Want to create a COM library and access it using Office VBA. Created a COM typelibrary, compiled it to register with Interop, and it 'works'. However, all I can see in the object browser is the Class name. I can't see the name of any of the functions in that class. The functions can be called etc, and they work, but I can't see them and can't use intellisense. Any thoughts? Created in C# express edition. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace TestDLL { [ComVisible(true)] public class TestFunctions { [ComVisible(true)] public double…
Last reply by Legend,
-
Who's Online 0 Members, 0 Anonymous, 3 Guests (See full list)
- There are no registered users currently online