a very annoying problem when working with datagridview is accidently pressing the column tab which changes the order of the data in the grid. i would very much like to to disable that feature or at least override it with my own sort method. i have tried the following with no effect:
foreach...
in a c# windows form project i have created and showed a new form within the main form load
the problem is nothing is working to bring it to the front and since its a setting dialog for new users and required for the program to run i need the 2nd form to show on top of the main form
all of these...
im just about finished with a project that I have been working on for a while. and I have a few questions.
1. how to create and install file or package the exe for distribution
2. how to include data files into the project as of now i just place then in the open source folder
theres direct upload of the video it contains all the code need to answer my question.
"its like having to ask a lawyer questions just obey the law"
-me
its obvious that microsoft has implemented windows such that this problem exists for the reason being .why would one ever need to copy a file...
oh i see all of the sudden there it is..
System.IO.DirectoryInfo directoryInfo = new DirectoryInfo(textBox2.Text);
DirectorySecurity ds= directoryInfo.GetAccessControl();
directoryInfo.Attributes = FileAttributes.Normal;
"is it all some type of breeding machine where...
the folder changes to read only after i uncheck the box. i built a simple app to choose a random file and copy it into another folder. the exception is thrown when trying to delete the file in the copy folder. because for some odd reason the folder is read only. i guess my question is how to...
im having some problems when accessing a folder that spontaneously switches to read only after each time i change the properties of the folder by hand. this is throwing an exception each time i try to change the contents of the folder in my code. i have tried to search google and all the code i...
i have written a app to run along side a game. and as of now i need to use the windows button to remove focus from the game to add focus to the app to press a button. i would like to wire a key that i can press without having to removed focus from the game. see this demo:
please dont direct me...
I use one event handler for all my button clicks. I use statics because its convenient not only for events but for creating controls. But whatever your saying. Its a simple problem. How to access a sperate control from within an event handler.
calling a click event from within the button event does not do anything either. One should be able to understand what I am trying to do fromt his photo. When a talent is selected its photo and label need to be added to the build. This problem is preventing me from finishing this project.
its a windows forms c# app. calling get control to get a button other than the one that was clicked. returns a control that when modified has no effect.
here is my get control method
public static void GetAllControl(Control c, List<Control> list)
{
foreach (Control control in c.Controls)...
yeah that works for the button that called the event handler but what im actually trying to do is access a different button using a get control method.
I have created a dynamic button and a general event handler in a sperate class that catches the click event
public static void buttonClick(object sender, EventArgs e)
However in this handler I am unable to do things like change the button text and image although the debugger hits the lines...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.