|
1. There are many great articles around on CodeProject and elsewhere. A search here and on google should yeild many results. I also have an article here[^] aimed at beginners to events.
2. .NET applications without some work cannot access network shares etc with good reason. You can do it using impersonation (and spplying valid credentials of a user that has permissions to access the share) or physically altering the .NET runtime security policy on each machine that requires it.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
1. In order to create an event in your call you should do declare two things:
a. Declare public delegate
b. Declare public event which is an instance of this delegate
public delegate void ClickHandler(int Param1, int Param2);
public event ClickHandler Click;
Then when you want to fire this event you just call it:
private void foo(){
...
...
Click(argument1, argument2);
...
}
2. File.Copy should work if you map the drive
|
|
|
|
|
|
It's not so useful in VB.NET, but it's used when accessing the bitmap contents in memory using pointers. It's good for C# and managed C++, but VB.NET has no use for it since there is no pointer support in VB.NET.
If you want an example, there is a good series of Image Processing articles by Christian Graus that shows how to use it. Just search the articles for "Image Processing for Dummies".
|
|
|
|
|
Great, thank you very much
|
|
|
|
|
I hate to be a contrarian, but that's not correct. Bob Powell has some really great documentation on GDI+. Just google Bob Powell GDI+. When there, search for LockBits.
Bitmaps are usually displayed on screen. If you're editing a portion of a bitmap that is displayed, it will be really slow because it has to perform safe edits on each pixel. Instead, you can grab the piece (even if that piece is the whole image) you want to work with and copy that piece into an array of memory and pin it there. That's what LockBits does for you. Calling SetPixel on the copied, pinned array will be much, much faster, but you have to remember to call UnlockBits so that it can be unpinned.
Without darkness, there are no dreams.
-Karla Kuban
|
|
|
|
|
Hi,
I am looking for a way to programatically read a Word document and based on the formatting, extract text. Specifically, I am searching each line in a document for a particular heading; then, extracting text if the following lines are bulleted. I would appreciate it if anyone would point me in the right direction.
Thanks in advance,
Ed
|
|
|
|
|
Windows has many services running. How can I call a method from a particular service from my application.
Suppose Service name "ftpsvc" is running. From my aplication I want to call a method of ftpsvc service
to see the return value.
I have some idea about Remoting, WCF. Any example code or pointing to the right direction will be helpful.
thank you.
|
|
|
|
|
I think you may be confusing a Windows service with a web service.
- A Windows service is an app that can be configured to start when the Windows starts and runs in the background as long as Windows is running. IOW, a user isn't required to be logged on in order to run the app.
- A web service is an API that can be accessed over the network. A WCF web service is hosted in a service host, which is usually IIS, a Windows service, or a Windows or console app.
/ravi
|
|
|
|
|
Hi
Thank you for your reply.
My question is not about the type of services.
I have a windows service running and suppose it has a Method (contract) called GetTime(). From another service or application,how can I call GetMethod() of the other running windows service.
Thank you
|
|
|
|
|
s196675m wrote: I have a windows service running and suppose it has a Method (contract) called GetTime().
Just to confirm I understand you, your Windows service has a ServiceHost that hosts the WCF service that has the GetTime() operation contract, right?
If so, just add a reference to the WCF service (make sure it's running) in your client app. You can do this through the IDE or generate the reference (i.e. the client proxy) manually using svcutil.exe . Then, just call the proxy's GetTime() method.
/ravi
|
|
|
|
|
I want to use usb to parallel port in my C# applications
I Have one but I don't know its address.
abdallah
|
|
|
|
|
Does anyone know how to get the primary key value when inserting a record into a FoxPro table? Thanks.
|
|
|
|
|
I think you should search here[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
hi there!
I want to create a setup for my recently build C# application. I am selecting add new project to the solution, then selecting setup project wizard, selecting create a setup for a windows application, selecting content and primary output only, going through the other next two steps and then I am getting error: Specified cast is not valid. I don't have any idea why this is happening. Can someone please help me? Thanks in advance, Laziale
|
|
|
|
|
try this :
Add Setup Project (not wizard) > Right click on Application Folder > Add > Product Output and select your options > OK
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
when I am attempting to add a setup project, it gives me message from visual studio saying: The operation could not be completed. No such interface supported.
Any idea why I am getting that message? Thanks a lot for helping me, Laziale
|
|
|
|
|
what is your .Net Framework version ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
Are you using an Express Edition of Visual Studio??
|
|
|
|
|
I am using VS 2008 Professional Edition
|
|
|
|
|
Hi, I've got a video capture app running and i want to automate the
process of getting the devices. You see, i have a form with three picture boxes
To receive three feeds from a webcam. Now What I want to do
is automate the app to initialize the feeds automatically without having to select
the video device when the app is loading. Now with just one webcam I can do this just fine, but with more than one the select device dialog of the OS always pop up.
Is there any avicap32.dll callback function to do this?
I'm using avicap32.dll as the video library, can anybody help me?
|
|
|
|
|
Hi all,
I am trying to retrieve the Disk partitions using the following code lines
foreach (ManagementObject mgmObj in gmtObjo.GetRelated("Win32_DiskPartition"))
{
}
This code snippet works well for user having administrative privileges on the machine.However,user having less privileges it does not retrieve any record.
I have searched through net and got the solution where we have to give the permission to the WMI itself using WMITool.However,this solution seems like not feasible as I can not give the permission to client machine.
I am looking for solution using which I would able to fetch the records irrespective of what user privileges are.Either through script or setting the privileges through code(setting through code might again require admin rights...).
Anybody here had faced this problem before or have solution to this??
Help will be appreciated!!!
Thanks in advance
|
|
|
|
|
I'm a student working on a project and I have no idea how to begin.. I want to make a program that works like remote desktop, but instead of being able to access the other user's desktop, you can view their web browser and their activity in it. I want it to work like a messenger program that allows users to like "share" a browser.. I have no idea what to research or where to start... I know I want to write it using c#. Someone told me to try to get it to work through a LAN connection first and then switch it over to work online.. Any advice at all would be really really appreciated..
|
|
|
|
|
Member 4653198 wrote: I'm a student working on a project and I have no idea how to begin..
Research! Look for C# examples that provide some of the same functionality that you want, assess them (do you understand the source, is it reusable etc), and build a bookmark-list.
Next thing you want is to document your research. That will lead to a Definition Study, which in turn leads to Functional Specifications, which in turn lead to Technical Specifications, which may lead to an actual implementation.
Sounds like a lot of documentation, whereas you are looking for code. The documentation is there to prove to yourself whether this is a viable idea, and is a good measurement to decide if you have done 'enough' research. If all looks well and easy on paper, it might just be easy. If it sounds impossible, do some more research or move on to a more viable project-idea.
Hope this helps
I are troll
|
|
|
|