|
|
You can access what was typed in txtbox1 by simply referencing the Text of it...like this: txtbox1.Text
So what you need to do is walk through each character in the string...which you can do with a For Each statement[^]. You will want to reference txtbox1.Text.ToCharArray as the In portion of the For Each statement. Then write the corresponding character to textbox2.
Hope this helps.
|
|
|
|
|
thankx bud ....but to be honest since i have no clue on how to start this proyect i think i will need a head start...no clue on how to do this...if is not to mutch to ask can o get a litle code to base my self on even if is
txtbox1
1 2 3 A B C
to
txtbox2
Ï Î Í ¾ ½ ¼
if is not posible...thanks anyway...sorry bud but i iam a complete noob on this one...
|
|
|
|
|
I use EnumChildWindows function to get child windows of my main dialog.If there is a child dialog in my main dialog, can i get child windows of this child dialog by using this function?(grandchild windows) Thanks
|
|
|
|
|
You're using WinForms, right, not MFC or vanilla C++ ? Why not iterate over the collection of open forms, or the child forms of the main form ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Do you know if it is possible to display a Windows Form as a rounded rectangle like this - http://tinyurl.com/6j2abw[^]?
If so then how would I do this?
|
|
|
|
|
|
"Monitors set to a color depth of greater than 24-bit can have display problems with certain parts of the form not being transparent, despite setting of the TransparencyKey property. To avoid this problem, ensure that the monitor's color depth is set to less than 24-bit in the Display control panel. When developing applications that feature this transparency, keep in mind that you will have to make your users aware of this issue."
It appears that nonrectangular winforms have a few quirks and may have some issues on different users computers based on the configuration of their computers (which is not an issue with rectangular Winforms).
Also, it appears that it may take a bit of time to develop a fully functional rounded rectangle Winform to create the design and to implement the behavior that is already built into the standard rectangular Winforms.
I want to implement a modern looking UI but I don't want to spend 100+ hours of work revising and testing with the possibility that the Winform may not display correctly in some user configurations.
|
|
|
|
|
Hello
I have a little problem(quite anoying actually) with databound datagridview.
I have continued working on somebody else’s project and it is quite hard.
The grid has 5 columns, and all of them are DataGridViewTextBoxColumns(all are databound), and
everything works fine. The grid loads entries from the database and so on.
I have to change somethings now to satisfy my boss.
I sholud add some empty rows(I can do that) and in the added rows the first cell sholud be a
DataGridViewComboBoxCell instead of DataGridViewTextBoxCell.
Is this possible with databound gridview?
I have tried but cannot get it to work right. can you help me please, I’m quite desperate now. Is
it possible to exchange private messages with you. I’m grateful in advance for any help you can
offer. Best regards, Linn
|
|
|
|
|
i have some experience..not necessarily good.. with the winforms datagrid in .NET 1.1, and as far as i could tell you couldnt change the type of column on a per row basis...i.e. if col1 is a textbox in row 1 it will be a textbox in any other row...same for the other controls...to change what a column is you have to define the template here's an example from .net 1.1 and c#
bool columns are checkboxes if you were wondering..i assume there's a control for a combobox or ddl, but i didnt use it. sorry about the formatting..
private void AddCustomDataTableStyle()<br />
{<br />
DataGridTableStyle ts1 = null;<br />
DataGridBoolColumn boolCol = null;<br />
DataGridTextBoxColumn textCol = null;<br />
<br />
ts1 = new DataGridTableStyle();<br />
ts1.MappingName = "name";<br />
<br />
ts1.AlternatingBackColor = Color.LightGray;<br />
ts1.GridLineColor = Color.Black;<br />
<br />
ts1.SelectionBackColor = Color.Blue;<br />
ts1.SelectionForeColor = Color.White;<br />
<br />
ts1.RowHeaderWidth=15;<br />
this.dgSettings.RowHeaderWidth=15;<br />
<br />
boolCol = new DataGridBoolColumn();<br />
boolCol.MappingName = "Auto";<br />
boolCol.HeaderText = "Auto";<br />
boolCol.Width = 50;<br />
boolCol.AllowNull = false;<br />
boolCol.TrueValue = true;<br />
boolCol.FalseValue = false;<br />
<br />
ts1.GridColumnStyles.Add(boolCol);<br />
<br />
textCol = new DataGridTextBoxColumn();<br />
textCol.MappingName = "lastModified";<br />
textCol.HeaderText = "Modified";<br />
textCol.Width = 110;<br />
textCol.ReadOnly=true;<br />
ts1.GridColumnStyles.Add(textCol);<br />
<br />
dgSettings.TableStyles.Add(ts1);<br />
<br />
TablesAlreadyAdded = true;<br />
}
hope this helps some
|
|
|
|
|
Hi all ,
is there any way to increase the message box size ,like 1/4 of the desktop .
thanks ,
CSN
|
|
|
|
|
Changing the default message box is not possible. You can write your own message box.
|
|
|
|
|
|
is it possible to program windows using C# , and calling the winAPI functions or the msgina functions from the code ,
help is needed
thanks in advance
There is always something to learn
|
|
|
|
|
What do you mean by "program windows using C#"? It's possible to develop applications that run on windows and to call winapi functions using P/Invoke[^] As for msgina, function from this dll are used when windows is loading and a user logs in so why would you want to call its functions?
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Do you want to make your programs with C# and also use of API functions?
|
|
|
|
|
It seems like the source code for most assemblies can be obtained through Lutz Roeder's Reflector or similar tool.
Therefore, if a company develops a new product in .NET, is there any way for the company to prevent another company from simply viewing the product assemblies through Reflector and obtaining the source code for themselves?
|
|
|
|
|
|
Member 3919049 wrote: Therefore, if a company develops a new product in .NET
... it is highly unlikely that they are in need of protecting said code.
led mike
|
|
|
|
|
|
Member 3919049 wrote: It seems like the source code for most assemblies can be obtained through Lutz Roeder's Reflector or similar tool.
You seem to misunderstand what reflector is doing (or what source code is).
Reflector does not give you the source code back. It shows you what the IL generated is and it can convert that IL into C# or VB.NET so it is easier to read. It does not, and cannot, give you back the original source code. The compiler will have made various optimisations and so reflector shows you those, because it does not know what the original was. It can only ever see what the final result is.
|
|
|
|
|
Colin Angus Mackay wrote: does not, and cannot, give you back the original source code
I have seen a plug-in for reflector which extracts the code into a file.
Colin Angus Mackay wrote: The compiler will have made various optimisations and so reflector shows you those, because it does not know what the original was. It can only ever see what the final result is.
I am not sure, but I think compiler won't make any changes to the source code. It generates equivalent IL and reflector is capable to show it in languages like C# , VB etc, Right ?
|
|
|
|
|
What Colin has said stands. It cannot return your original code. Sometimes the compiler optimizes your code in the compilation process, and a utility like Reflector returns you code based on the optimized version.
|
|
|
|
|
Although it isn't the exact original code,
the code generated by the Reflector can still reveal the business logic you have used.
So obfuscating could make it a little harder to understand what is going on.
codito ergo sum
|
|
|
|
|
It's new information for me. Can you tell me an example for the optimizations done ? I have checked our applications with reflector and can't find any changes in the code.
|
|
|
|