|
V.Mahajan wrote: Plz Help me on this...
This is very vague subject...
V.Mahajan wrote: Write a function to copy files from one folder to another (XCopy). The function will have multiple versions. Each version should build on the previous version.
HINT: Look at classes DirectoryInfo, Directory, FileInfo, Path
Most(All except some people like you) of the programmers call them as overloaded functions.
Now, where is the question/problem?
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Ok - what do you want? I see no question here.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I can't write code for you but here is a hint:
Look at classes DirectoryInfo, Directory, FileInfo, Path
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hi, I am new to C#
I want to know how to resize smoothly the AxShockwaveFlashObjects control with form using mouse where the flash control dock style is fill and form border sytle is none.
Thanks in advance
|
|
|
|
|
I don't think there's a way. There's no property available in the control that makes the control resize itself to the client area.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Is there any workaround I mean some other way to do that. Is that possible that I can put a transparent layer over AxShockwaveFlashObjects control and resize the transparent layer along with AxShockwaveFlashObjects control
|
|
|
|
|
Nope, not like that. I suppose you could try to use the mouse is moving event and see if the form is being re-sized. I don't know the specifics, or even if it will work, but that should give you enough to get started.
The way we addressed it in our app was to simply re-size the control when we detected a form re-size, but only after the mouse button had been released. If I'm not mistaken, you want to re-size the control as the form is being re-sized.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks for replying. Yes, you are right that I want to resize the control as the form being resized but in my case the form is tranparent and borderless (border style is none) and flash control dock style is fill. Therefore i cannot resize the form.
I have tried to capture the mouse event of control using WndProc method. but it didnt help in resizing control with form smoothly.
Can you guide some direction where I can look to solve this issue?
Sorry I forget to tell that I am working in C#
Thanks again
|
|
|
|
|
Hi All, i am new with C#,
i need to use win32 DEVMODE Structure for printer settings in c# application.
can anybody suggest me, how to use it in C#....
Thanks
Bankey
|
|
|
|
|
Have a look here[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
when i tried to do run the below program i got the error as
Retrieving the COM class factory for component with CLSID {DA6AF009-59A1-4B29-BDF8-0E09AE17C122} failed due to the following error: 80040154.
// this the program.............
using System;
using System.Collections.Generic;
using System.Text;
using WINIDEAAUTOLib;
namespace consoleIDEA
{
class Program
{
static void Main(string[] args)
{
WinIdeaAutoSvrClass we;
string strValue = "";
we = new WinIdeaAutoSvrClass();
try
{
we.Connect();
we.DebugRunControl(WINIDEAAUTOLib.RunControlFlags.rStepHigh, 0, 0);
we.DebugEvaluateString(0, "iCounter", ref strValue);
Console.WriteLine("iCounter: " + strValue);
we.Disconnect();
}
catch (Exception)
{
Console.WriteLine("Error.");
}
finally
{
Console.WriteLine("Done.");
}
}
}
}
|
|
|
|
|
So, tell me, did you bother to lookup what error code 80040154 means? I did, and the answer is pretty self-explanatory...
|
|
|
|
|
// Search Operations
// I am trying to search a textbox entry in a linkedlist queue implementation such that if the entry is there in the recorded queue then I get a message that it is actually there.
Thanks
---------------------------------------------------------------------
public int indexOf(Object o) {
int index = 0;
if (o==null) {
for (Entry e = header.next; e != header; e = e.next) {
if (e.element==null)
return index;
index++;
}
} else {
for (Entry e = header.next; e != header; e = e.next) {
if (o.equals(e.element))
return index;
index++;
}
}
return -1;
}
|
|
|
|
|
Why don't you implement the in built Binary search method, if you use ArrayList class.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
modified on Wednesday, September 10, 2008 4:48 AM
|
|
|
|
|
|
//Create a object
System.Collections.ArrayList oArrayList = new System.Collections.ArrayList();
// Add all your entries in ArrayList Object in form load event or the event which suited your problem
oArrayList.add(/* Your entry*/);
//then search for a value whether it exists or not
bool isexist=oArrayList.contains("Your search value");//method returns true if your search value exist.
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
Mogaambo wrote: System.Collections.ArrayList
Use a strongly typed generic List<T> instead of arraylist.
|
|
|
|
|
Have got the linkedlist running with data stored in a queue already but not sure of how to search through the queue whether the textbox entry exists in the queue or not.
|
|
|
|
|
Angelinna wrote: data stored in a queue
Your question is not clear. Are you using a generic Queue<T> ? if yes, it has a Contains()[^] method which can be used.
|
|
|
|
|
How do I use the contains()
|
|
|
|
|
Mogaambo wrote: Binary search
On a linked list?
|
|
|
|
|
Hi..
I need to check the serial port has connected to any device, how to do it and can i able to find which device is connected..?
regards
skvs
|
|
|
|
|
skvs wrote: I need to check the serial port has connected to any device, how to do it
Open a serial port and see if the device responds. I told you that yesterday. Did you even try?
skvs wrote: can i able to find which device is connected..?
That will be different for every device, there is no standard identifying technique for serial ports.
|
|
|
|
|
I tried, I can able to open the serial port but im not able to find which device is connected..
im sorry i couldn't get much details regarding this, please help me to find whether the device is connected or not.
without connecting any device, i can able to open the port.
|
|
|
|
|
what is the difference between WinIdeaAuto.dll and Interop.WINIDEAAUTOLib.dll of winIDEA 2009?
how to use the following functions in c#.net 2005
1.DebugReadVlaue()
2.DebugWriteVlaue()
3.Download()
4.Disconnect()
5.Connect()
i got the above functions by adding the Interop.WINIDEAAUTOLib.dll into the C#.net application
could any one provide some sample codes for using the above functions?
.... tony
|
|
|
|