-
- How make Controls scalable when resizing Window?
by mshvw
- 7 Replies
- Last post
by decyclone
- Hello, How do I make my Controls scalable in relation to the size of the Form I mean, when the Anchors of a Panel on a Form are set to all 4 borders then the Panel Width/Height properties change when changing the Form size but the Left/Top position of the Panel is fixed and not changing. What properties do I have to set to what value to also make the Panel's Left/Top position move when the undely
-
- parsing
by hex2
- 4 Replies
- Last post
by hex2
- I have a code that parses a GPS sentences and output to a file.
The GPS sentences consist of GGA, RMC and VTG. All in a 'CASE' statement code.
switch (tokenize[0])
{
case"$GPGGA":
// parse alt, lon, lat
break;
case"$GPRMC":
// parse time, date
break;
case"$GPVTG":
// parse heading
break;
}
The output from
-
- How to start app at startup ?
by Kunal Sharma
- 1 Replies
- Last post
by CalvinR
- Hi friends, I'm faced with a requirement that is kind of unknown to me. In my situation, if my application was running and the machine reboots, then I need to start my application automatically once the machine comes up. If the application was closed by the user then it should not come up at system reboot next time. One way to do this could be to write a small program which reads a "status&qu
-
- very strange problem -please help
by shimshon
- 2 Replies
- Last post
by Ernst Kuschke
- hi all.
in my MDi, i have a dataset and 1 datatable.
i have 2 child forms.
form1 has grid on it, it recieves the datatable in it's constructor, and creates a new dataview based on that datatable,then set the grids.datasource=dataview.
when the user clicks on a row, form1 raises event to mdi, tell him to open form2,with the current ID(clicked on).
mdi opens form2,sending to its const
-
- Extending default classes
by Azurewrath
- 14 Replies
- Last post
by Azurewrath
- Hi, Anyone knows if I can extend existing .NET framework classes Like so: Array.ExistingMethod Array.MyMethod Also can I overload a default existing method Like so: Array.ExistingMethod (int n) Array.ExistingMethod (string s) // my version You can answer for C# 3.0 if you want. Thanks, Aw
-
- Forcing using while(true)
by SaphuA
- 4 Replies
- Last post
by Thomas Danecker
- Currently I'm working on an L-System (just think of it as fractals). The user can import a ruleset and the system draws in image depending on the rules.
The problem is that I can't predict how many iterations are required for a ruleset. To give you an idea: my favorite one had made 6.777.417 iterations and drew 3.867.793 lines. You can imagine how long such a loop take to complete.
I
-
- Cast <IList>
by thukralz
- 11 Replies
- Last post
by Harsimrat
- I have something like this...
public static IList < AbstractKeyValueEntity <T>> Values<T>( ListBox listBox)
{
IList < AbstractKeyValueEntity <T>> results = new List < AbstractKeyValueEntity <T>>();
foreach ( ListItem item in listBox.Items)
{
if (item.Selected)
{
results.Add( AbstractKeyValueEntity <T>.GetLooku
-
- Creating TCP SYN Flood C#
by SZKHAN
- 1 Replies
- Last post
by c0dem0nkey1519
- i m trying on TCP SYN Flood using C#. i have my own selfmade TCP n IP headers, now i am trying to send them over the network using the RAW Sockets. but i gets this exception: " a Blocking Operation Was Interrupted by a call to WSACancelBlickingCall". the exception disappears when i remove the setSocketOption() method, but this method is must for sending ones self made ip Pakets.
-
- can't find any help about these three keywords: __arglist, __refvalue, __reftype
by dyna
- 5 Replies
- Last post
by dyna
- Hi everyone
I searched the whole MSDN, but only find a code sample about variable arg, using these three keywords, but there's no more information.
Is there any more specific help about these three keywords
-
- plz help me ,how to disable print screen?
by Maxmoud
- 2 Replies
- Last post
by VS_Programmer
- how to disable print screen key in C# (windows application) so that user cannot use it .. Please provide codes.
-
- Help me in C# Windows Service ??
by Space Cracker
- 13 Replies
- Last post
by Space Cracker
- Dear All , I want to make a windows service to read data from Windows Registery ( using C# 2005) i try to read data from registery but always return Empty value althogh the same code i use in Windwos Application and work perfect So please me in Reading values from Windows registery
-
- Interface Question
by Azurewrath
- 4 Replies
- Last post
by Azurewrath
- Hi all, If I implement a method like CompareTo but don't write the : IComparable after the class name, what would be the consequences Would that method still be effective, but only the class wouldn't get the benefits of IComparable implementers (like extension methods, etc) Thanks, Aw
-
- Variable Number of Parameters
by Azurewrath
- 13 Replies
- Last post
by Azurewrath
- Hi all, I know that C# supports variable number of parameters in methods. But I read somewhere that the CLR actually boxes all the parameters to an object and then unboxes it for their right type. If that's the case, isn't using it would cause a major performance hit Say I have a method and I am sending it 100 int values. How much it would be slower (2x ) Thanks, Aw
-
- Pulling info from arrays
by JMOdom
- 4 Replies
- Last post
by Ernst Kuschke
- I just learning C# and am having some difficulty with a problem.
I need to pull the information out of an array (1 Dimensional), and list one copy of that number and the amount of times it was used.
Ex.:
int[] anArray = new int [12] {1, 6, 3, 2, 5, 6, 3,3, 4, 7, 1, 2}
I need to pull out of this array the 3's. I need to list the number 3 and the amount of times it was used
-
- map xml to crystal report using c#
by IMBack
- 6 Replies
- Last post
by IMBack
- Hi,
I am new to C# Crystal reports, and I am having problems finding away to "map xml data to Crystal Report" using C#"
I spend lot of time, and can't find a useful artical...
Please post anyway that can help me...
Thank you.
-
- How to convert PDF to TIFF through C#?
by Ravi Bhatt
- 14 Replies
- Last post
by Jason Zhao
- Hi,
I am sending PDF as fax from my application.It works fine bt the only issue is, Adobe Acrobat's new instance gets opened automatically.The solutions I got is to fax TIFF files rather than PDF.
Can anyone do let meknow how to convert PDF to TIFF through C#
Thanks,
Ravi Bhatt
-
- Disk Partition Volume Names
by UniqueDisplayName-Adam
- 3 Replies
- Last post
by ahmedilyas
- My C# application has to pull information on the last partition on the first physical disk drive. If this partition is associated with a windows drive, I have no problem. However, if the partition is not a windows partition (ex: Dell's restore partition), I cannot get information on it. The main piece of information I need is the label. If I look at the non-windows partition in Disk Management, I
-
- Allocating Memory for huge array
by Moon3000
- 5 Replies
- Last post
by Moon3000
- I have an array of struct which I can create up to a certain size. The max is 250M, but I have 4G of ram on my WIndows XP Pro machine. How can I allocate more
I read straight into memory from file using 'unsafe' code. I need to load in about 1G.
Can you help me
Moon
-
- Shared values between different projects
by rutlean
- 2 Replies
- Last post
by OmegaMan
- I have three different projects that need read and write access to values that need to be available to all three projects. The first project runs a calibration on hardware. The stored values are retrieved to be used as the com port for the hardware and address of the HPIB meter. The second project configures the communication settings for the first project. The user selects which com port is used
-
- Same Form Different Projects?
by DennisV
- 3 Replies
- Last post
by Rudedog2
- I have a form that is useful in two different projects. I simply duplicated the code for both projects but now when I make improvements I have to update to two sets of code.
Is there a way to use the same code/form in different projects
Dennis
-
- Cancel downloading data from a Sql Db
by Handschuh
- 4 Replies
- Last post
by cjard
- Hi
How can I cancel/stop this command: adapter.Fill(table) I am executing GetData() in a BackgroundWorker - if it takes too long I want to allow users to quit downloading data.
public DataTable GetData( string sqlCommand)
{
SqlCommand command = new SqlCommand (sqlCommand, connection);
SqlDataAdapter adapter = new SqlDataAdapter ();
adapter.SelectCommand = command;
DataT
-
- Code to have a button "Paste" text into a Rich Text Box...
by Landon Parks
- 2 Replies
- Last post
by nahguam
- I have a question... I am writing a HTML Editor and I was wondering if someone could tell me the code that I would enter in a button's event handler to be able to make that button "Paste" a certain code into "richTextbox1" I pretty much am looking for the button named "Form Open" to actually add the "<FORM>" tag in the Rich Text Box.
I also got anot
-
- Choice of Collection
by Azurewrath
- 11 Replies
- Last post
by Azurewrath
- Hi all,
I need a collection to hold hundreds of directory paths, which should be sorted. Say I know the number of the directories from the start. Is it better to use SortedList or an Array
If I didn¡¯t know the number of the directories, then I would be using SortedList, right
But SortedList sorts the list everytime you add an element, right So wouldn¡¯t it be better to add
-
- const values accessible in namespace?
by The Admiral
- 3 Replies
- Last post
by Mark Dawson
- I have two classes, in one namespace:
namespace MySpace
{
public interface IMyClass1
{
void doSomething();
}
public class MyClass : IMyClass
{
void DoSomething();
}
public AnotherClass
{
void DoSomethingElse();
}
}//end namespace MySpace
What I want to be able to do is have a const value accessible to both classe
-
- Related Questions ? ( how can I do it )
by Pinkish
- 2 Replies
- Last post
by Sason
- In this forums there is a nice feature that I liked which is the Box with the related questions at the right. I want to do the same with something that I created in Visual Studio , C#. I mean when the user starts typing a topic to ask about something. The database is searched to check if there are similar topics Does anyone have an idea of how to do it