|
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
|
|
|
|
|
I have attempted to get CPU and RAM usage with a System.Diagnostics.PerformanceCounter, but not only are they a pain in the ass to work with, they don't work the same on different systems. Is there another way to get this information without using a performance counter?
|
|
|
|
|
I use the Process class rather. Use Process.GetCurrentProcess() to get the current process.
|
|
|
|
|
Um, not what i want. I don't want to get the current process, i want to get the CPU and memory usage. I have no interest in the current process.
|
|
|
|
|
This is a chinese graph software to monitor ,application in industry and electric power.Its site is "http://www.visual-graph.com"
welcome to visit.
|
|
|
|
|
Hi,
my question is simply. can i create a gps software (c#) for this phone?
i think i can because there is a N70 version that cames with a gps software, my didn´t came with that (less expensive) but i think that it maybe has some hardware prepared for that.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Is it a Microsoft platform phone ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
OS windows platform? no no no
has nokia OS.
other version (of same phone) has gps software.
i think (not sure) that i can install it.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|