-
- Relation between Early Binding and Stong Typed
by Philip Wagenaar -
- 2 Replies
- Last post
by TaylorMichaelL
- Hey,
Correct me if I am wrong, but I see early binding as defining the type of object when you declare it your code and late binding as declaring the type of object and run time.
Now I also used stong typed types. Like a datatable. Instead of myTable.Columns(0), you could use myTable.Publishers.
Is there a relation between strong typed types and early binding Or am I completel
-
- How to convert Binary To Decimal
by Jehan Badshah
- 4 Replies
- Last post
by HaiVu
- Hello All,
Any one can write code which convert Binary To Decimal values
for example
if i have 001,
then
int decimal = BinaryToDecimal("001");
Thanks
-
- Need help temporarily stopping validation
by Ric Bevan
- 2 Replies
- Last post
by abis123
- I have a page which uses validation, this validation occurs when I submit or save the page, this pleases me. However I also have a drop-down-list and a button, when this button is clicked the drop-down-list is repopulated based on the selected value in this drop-down itself. This then sets off my validation, this does not please me. Is there any way of stopping all validation temporarily, or stop
-
- When to use static classes?
by RRRouter
- 6 Replies
- Last post
by tj hock
- When am I supposed to use static classes I don't know. My thinking is that if I want to create multiple objects of a class then I do not want the class to be static. But if I only want to use one instance of the class, then it doesn't matter if the class is static or not Is this correct thinking If it isn't, then please explain to me how I should think about this. Big thanks!
-
- Code analyasis error
by swazendo
- 4 Replies
- Last post
by swazendo
- Has anyone seen this when running code analysis from within the IDE I've started the project from scratch (delete .sln, .suo, bin, and obg directories).
Error 1 FxCopCmd.exe exited with code -2147023895. MyPorject
Error 2 Unable to read output report: bin\Debug\MyProject.dll.CodeAnalysisLog.xml MyProject
Tried on two machines. First time I've seen this. All other projects work
-
- Accessing Variables from 1 class to another
by ugp
- 1 Replies
- Last post
by QIJ
- In Calss1.cs it has a variable called var1 like this; public static String val1 = "ValueOne"; I want to access this variable in Class2.cs how can i do this; i tried like this, but it doesn't work. in class2; Class1 c1 = new Class1(); String val2 = c1.val1; how to do this !
-
- how do I read video memory in C#
by Evan Hicks
- 2 Replies
- Last post
by Evan Hicks
- I need to search the video bios rom memory at 0xC0000 for certain data. I created an unsafe class and a pointer to the location but I get back all zero's. I read that I need to map physical memory into my user area. Any idea how I do that in C#
Thanks,
Evan Hicks
-
- questions about begininvoke
by Pr1nce
- 1 Replies
- Last post
by Brendan Grant
- I am updating different windows forms on other threads than the UI. I'm using BeginInvoke with a thread pool to do the updating. But my question is when i call the control is there a difference when i use this.Begininvoke instead of Label1.begininvoke. The other thing is that is it i'm not sure if using the Control.begininvoke is what i should b using and not the delegate.begininvoke. can someone
-
- best way to pass value to another open form
by Bear23
- 3 Replies
- Last post
by Udhaya Kumar D
- In vb.net it is so simple all you do is add a button on the form and when both form1 and form2 is open all you had to do is this.
form2.textbox1.text = "Cat"
where in c# it is not that simple.
I am curious to see how others do what I have mentioned above in c#.
So basically the scenerio is I have both form1 and form2 open. Form2 has a textbox and form1 has a button on it that I
-
- How to disable marshalling warnings from TLBIMPORT.
by Robin E Davies
- 1 Replies
- Last post
by Paulustrious
- I get the following warning from VS 2005 SP/1:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning : At least one of the arguments for 'IDeliveryInfo. get_SubscriptionInfo' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe
That is true. The method is not marshallable. No, I can'
-
- Help - folder's property dll
by Musafir
- 13 Replies
- Last post
by TaylorMichaelL
- Hi..
In windows , when we right click on any folder or file, we get properties . In the properties we can see General/Security etc..
Is it possible to get the properties dll in c#
please help
-
- Passing arguments to a function started by a thread
by DyngoMan
- 2 Replies
- Last post
by DyngoMan
- I need to setup a thread to start a function that takes an int argument.. Any solution on how I can pass that argument
-
- Make Line as object
by Sathyashankar
- 6 Replies
- Last post
by Sathyashankar
- The line I have drawn does not behave like a object. Can anyone suggest me the procedure to make lines to behave like a object
-
- start and stop the screensaver in dualmonitor using c#
by Ramesh goud
- 8 Replies
- Last post
by Ramesh goud
- Hi,
I am running my application in two minitors.In one monitor.............if it is idle for some time the screensaver wil come(I wrote the code for this using system dll functions) . Now my problem is that if i keep the mouse on monitor1 and i clicked on this monitor1..........this key press events should not work for second monitor.if i clicked on the first monitor ..............the screensav
-
- Searching for a string item in List<string>
by Kulvinder
- 6 Replies
- Last post
by Thomas Danecker
- Hi,
I have a List<string> and a string value. I want to do a case insensitive check whether the string value i have is present in the string collection i have. I used List<string>.Contains(string item) method but it does a case sensitive check.
Is there any way that i can check whether my string value is present in the list without worry for case I mean :
List<
-
- stop joystick in other application
by VooDoo Chicken
- 1 Replies
- Last post
by Peter Ritchie
- hi, i want to stop ('turn off') the joystick in other application, like this: first i run the application done in c#, which runs a timer, then i run the other application, which receives joystick input. after the timer reaches whatever is supposed to reach, it 'turns off' the joystick, so the other aplication does not receive joystick input anymore, tough with the possibility to turn it on again w
-
- Am i in the wrong forum with this Query, could somebody direct me to the correct one?C# convert Excel to PDF or any image format
by Pam2007
- 6 Replies
- Last post
by frederikm
- I have a C# application and i am trying to figure out the best way - or any way to retrive data from my excel file and convert it to a pdf file for printing. Thanks, Pam My main objective is to get the document to print wth all the current excel formatting on the client machines.. which is why i was looking for direct convert to a pdf format... but if i can even figure out how to convert to an ima
-
- How to record the player move
by shah123
- 5 Replies
- Last post
by Thomas Danecker
- How to record a move of player I am assuming in AddUser() if username entered is pc then PC image will be added and will start playing with human I have following piece of code: Please help
Code Snippet
int movenum; private int MoveNumber { get { return movenum; } set { movenum = value; } } public void AddUser(int user, string str
-
- Generic Method Reutn Type
by bombdrop
- 5 Replies
- Last post
by bombdrop
- Can any one help I have a method that will return a List to be bound as a datasource to a combobox see code for population below. I get the following error when i try to compile
Error 29 Cannot implicitly convert type 'System.Collections.Generic.List<Prsym.ComboPopulation.ComboInfo>' to 'System.Collections.Generic.List<T> '
/// <summary>
-
- Using member variables in member methods
by Tryst
- 2 Replies
- Last post
by Tryst
- Hi all, this may seem a stupid question to some of you, but... When using members variables of a class in its methods do you pass in the variables as parameters of the method or do you just directly access them within the method What are the best practices about this Thanks
-
- for data module in vs2005 and conponent reference question?(beginner)
by pst_grant
- 2 Replies
- Last post
by Figo Fei - MSFT
- hi, everyone
here is the deal:
i have two forms:Fmain,Flogin
in the form Flogin, i have three controls qlconnetion1,sqldatadapater1,and a sqlcommand1.
in Fmain, i want to use the controls in the Flogin form , how can i achieve this
i know how to create new for,
for example, if i click the okay button in Flogin, the Fmain shows.
code written here: form main = new Fmain();
-
- Implementing Custom Exceptions
by Azurewrath
- 6 Replies
- Last post
by Azurewrath
- Hi all, 1. Basically what I want to do is to implement an exception that will work like .net's, that will halt the compile process and popup a message. 2. I also want it to be isolated from my custom library, same assembly but different files like so: MyExceptions.OutOfMindException(); I know how to do #2, but not #1. Is this an optimal way of writing your own exceptions Thanks, Aw
-
- MSIL
by sroy
- 2 Replies
- Last post
by sroy
- Hi,
I am an infrastructure person and learning visual C# for the business needs. Can any one tell me the advantage of MSIL It does what Please mail me the answer at sroy@nhaustralia.com.au
Regards
Santanu
-
- 'System.Threading.SynchronizationLockException'
by NozFx
- 3 Replies
- Last post
by Peter Ritchie
- Hi all,
Why would I be getting this exception on this code:
Monitor.Enter(SharedStaticObject);
SharedStaticObject = true;
Monitor.Exit(SharedStaticObject);
The error occurs when the Monitor.Exit() line executes: It is stating the following: 'Object synchronization method was called from an unsynchronized block of code.' Which is saying to me that the thread doesn't own t
-
- Invalid Resx file. A strongly-named assembly is required.
by Jeremy Jarrell
- 9 Replies
- Last post
by Jeremy Jarrell
- I've been randomly getting this error on a few of my forms in one of my projects for about a week now. Its always the same forms each time and its always in the same place (its the closing tag of a <data> element with the same base-64 encoded resource each time). It seems arbitrary whether or not I get this and usually restarting visual studio will get rid of it, but sometimes i have to rest