|
Christian Graus wrote: You can set the scale transform on your page, and it will zoom accordingly.
I mean like a rich text box and how would I get it to a page size and get it to be like Microsoft Word?
|
|
|
|
|
OK, a RTB is another question. Then you'd need to set the font size to scale it, I reckon. I doubt that is how Word does it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi there,
I've started using Regular Expressions recently and it's quite fine, I got the hold of most of the stuff. But what I still don't know is how to make sure a string doesn't contain a certain set of characters. What I'm after is a regex which would find any html tags within some user-input. IsMatch should return false in this case. Any hints?
Thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
I believe if you preface a character group with ^, that means NOT these characters.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'll confirm your belief
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
[^afjz]+
This will find a string with at least one character (+) which does not contain the chars a,f,j and z.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Hi
Is it possible to force DataGridViewCell to repaint? Just refreshing it.
Thanks
Ela
|
|
|
|
|
How about DataGrid.InvalidateCell ?
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
I crated my own class inherited from DataGridViewImageCell. How can I call a method from parent object which is DataGridView? I passed a DataGridView parameter to constructor but when I call grid.InvalidateCell() I have a message "Object refrence not set to an instance of an object"
|
|
|
|
|
I think I am near the solution however how to call a method of grid being on DataGridViewImageCell level?
|
|
|
|
|
Which methods of the grid. Please elaborate.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
I created my own classes
public class ImageCell : DataGridViewImageCell
{
public ImageCell(DataGridView grid)
{
this.grid = grid;
}
........
private void animate(object o, EventArgs e)
{
DataGridView dgv = (DataGridView)grid;
dgv.InvalidateCell(this); /// there is an error
}
}
and
public class ImageColumn : DataGridViewColumn
{
public ImageColumn(DataGridView dgv)
{
this.CellTemplate = new ImageCell(dgv);
this.HeaderText = "";
this.Width = 25;
this.Resizable = DataGridViewTriState.False;
}
}
In my application when I have DataGridView I just add ImageColumn object as new column passing DataGridView object to the constructor:
ImageColumn imgCol = new ImageColumn(m_DataGridView);
m_DataGridView.Columns.Add(imgCol);
I do not like to pass such a parameter to the constructor. However how to call InvalidateCell in ImageCell class?
thanks
Ela
|
|
|
|
|
You should be able to get a reference to the DataGridView from the conveniently named property DataGridView in your class since you inherit from DataGridViewColumn / Cell and both these eventually inherit from DataGridViewElement which has a property which provides a reference to the DataGridView .
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
What a fool I am. How couldn't I see such a beatifull protperty - just DataGridView.
Many thanks for help.
It is blinking now but there is something with gif. It is displayed as x - as it was no gif. However I think it is another problem.
Many thanks one more time
Ela
|
|
|
|
|
Don't worry I had a similar problem where I spent a whole day ripping code apart trying to find the answer and in the end it was looking me in the face
The X is probably because it can't find the gif or there was an error in the drawing code (similar to when a control crashes on the designer).
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Such a life of developer
|
|
|
|
|
If it has an Invalidate method, call it, that forces a repaint of a control.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
But DataGridViewImageCell does not have a Invalidate method.
|
|
|
|
|
Then you probably need to Invalidate the entire grid.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
There is a method grid.InvalidateCell however I cannot call it because I have to do it from DataGridViewImageCell level (form my own class). I described the problem above.
Thanks for advice.
|
|
|
|
|
I migrated one of my solutions to .net 2005 from 2003.
Issues:
When I am going to rebuile it some of the reerances are deleted from the dubug folder of some projects and compilation error comes saying that referance not found.
But if I am building (Not Rebuild) each projects differantly then this problem is not coming
Whatshould I do?
Please help me.
Rabindra Patra
|
|
|
|
|
Delete all the references and add them again.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
In C#, how should I use a VB ocx that is dependent on a win32 dll ?
When ActiveX is dependent on another dll should we do something different?
|
|
|
|
|
TinyTin wrote: ocx
Hit the nail on the head here, an OCX is an OCX, doesn't matter whether it's VB, C++, Python, PHP, C#, VB.NET
TinyTin wrote: When ActiveX is dependent on another dll should we do something different?
No, just make sure the dependency is there when you try an access it.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|