|
Ok, thanks.
I'll look into it.
/\ |_ E X E GG
|
|
|
|
|
|
how to write any string into bottom of ActiveDocument in Add-in Project??
somebody can help me?? please!!!
Thanks
Nho'c Ti`
|
|
|
|
|
Hi Guys & Girls,
Just want to know if any of you have had issues with using the axWebBrowser control in VS2003. When I place this control on a tabpage that does not have focus when the form loads the axWebBrowser control does not repaint. It causes a blank area on the screen.
Any ideas what this could be? I'm totally screwed over by this one.
modified 30-Aug-22 21:01pm.
|
|
|
|
|
Do you navigate the WebBrowser to any page in the form's load event? If you don't it wont actually do anything. Try this:
Object obj = null;
axWebBrowser1.Navigate ("http://www.codeproject.com", &obj, &obj, &obj, &obj);
- monrobot13
|
|
|
|
|
I know that in C# you can't directly inherit from two different base classes...
(1) (2)
\ /
\ /
(New Class)
but can you indirectly inherit from two different base classes?
(1) (2)
\ /
\ /
(3)
|
(New Class)
I'm wanting to have the same base class for both forms and controls.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Based on your own diagrams, if scenario 1 isn't possible, then scenario 2 couldn't be.
While you cannot have multiple inheritance in c#, your classes can implement as many Interfaces as you like. It's sometimes limiting, but also essential given the object structure of .Net, and the type-safe system it uses.
What are the two classes you'd like to derive from? Is there any way you can merge them into one bigger class that could be inherited from? If you just need to knwo that certain methods or properties ar available in each of your classes, have you looked into implementing an Interface?
|
|
|
|
|
you couldn't do either of those. The best you could do would be:
(1)
|
|
(2)
|
|
(new class)
or
(1) (I2)
\ /
\ /
\/
(new class)
|
|
|
|
|
wow, don't know what I was thinking there. My old arch enemy "spaces and formatting".
Hopefully you get the gist of it though. You have to inherit straight down with no branches. You could use interfaces, and have as many as you wanted, but then again that's not quite the same as inheriting is it.
|
|
|
|
|
hi all, somebody can help me to do this
how to search SQL Server in my LAN with C# ???
Thanks !!!
Nho'c Ti`
|
|
|
|
|
This is a very broad question. What exactly are you trying to do?
- query a SQL server?
- find all available SQL servers?
|
|
|
|
|
yes, I want find all SQL Server avariable in my LAN
Nho'c Ti`
|
|
|
|
|
You can use SQL-DMO for this: Application.ListAvailableSQLServers()
Alexandre Kojevnikov
MCAD charter member
Leuven, Belgium
|
|
|
|
|
|
I have built a .net control which works well in XP and Win 2000, but fails in NT 4.0 and throws an exception FileLoadException.
Why would it fail in NT and work well in Win2000 and XP?
In my code, where I am declaring P/Invoke functions, I have the following:
[DllImport("uxtheme.dll")]
static public extern int SetWindowTheme(IntPtr h, string s1, string s2);
But the thing is I do not call this unmanaged function in my entire control's source code.
Its just declared. That's all.
Do you think this could be causing the problem of FileLoadException when I try to run it in NT 4.0 (because there is no uxtheme.dll in NT 4.0).
Note that although I have declared it in my code, I never call this function at all.
Do you think I need to remove this declaration from my code and rebuild it to run it in NT 4.0 box.
|
|
|
|
|
Wow! I'm amazed you actually got it to work on windows 2000.
uxtheme is a feature for windows xp and newer only. its not possible for it to work on older version of windows
|
|
|
|
|
No need to be amazed at all!
I found the answer to my problem.
Anyway, for your information, it will work in Win 2000 without any problem because the uxtheme P/Invoke function was "just declared" in the code and "was never actually used" or "called" and hence there is no issue for it to be running properly in Win 2000.
|
|
|
|
|
Hi!
How do you detect the duration of the dial-up connection?
Please help me!
And one more question, is it possible to use C# to transfer files programmatically?
"To teach is to learn twice"
|
|
|
|
|
I'm trying to use the Regex class to evaluate data entered by the user. However, since I'm doing the evaluation as the user types, I'd like the match to be successful even if all the data has not been entered yet.
For example, if I have:
Regex re = Regex("abcd");
And the user enters:
ab
I want re.IsMatch("ab") to be successful. Yes I know it's not a true match, but it's only because there's insufficient data. Is there an easy way to know this?
Thanks in advance!
Alvaro
If you want to get to the top, prepare to kiss a lot of bottom. -- despair.com
|
|
|
|
|
Hmm.
One way would be to use a pattern like:
Regex("a(b(c(d)?)?)?)");
Not too elegant, but it would work.
|
|
|
|
|
Alvaro
Any answer would of necessity be a specific workaround for a specific regex string. There is no way to generalize it, I'm afraid (apart from writing your own regex engine that allowed for partial matching).
Cheers, Julian
Program Manager, C#
This posting is provided "AS IS" with no warranties, and confers no rights.
|
|
|
|
|
I have this code to a DataGrid
dgDataGrid1.CurrentCell = new DataGridCell(0,0);
but it says I cant use it yet but if I move it to formLoad it will. And it is in formLoad event!
what gives?
nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
This is just a wag, but maybe dgDataGrid1 hasn't been instantiated yet. Put a breakpoint on where you assign CurrentCell and another breakpoint on where dgDataGrid1 is constructed, and see which happens first.
Hope that helps.
Marc
STL, a liability factory - Anonymously A doable project is one that is small enough to be done quickly and big enough to be interesting - Ken Orr
Latest AAL Article
My blog
|
|
|
|
|
Without seeing your code it's hard to provide a specific answer, but here's some suggestions:
Ensure your DataGrid is instantiated in the Constructor.
If your DataGrid is already populated, set the CurrentCell to a reference of a cell that actually exists - your code sets it to a reference of a new cell.
If your DataGrid is not already populated, you may have to define columns/rows before being able to set a cell.
|
|
|
|
|
FormLoad()
{
dgDataGrid1.DataSource = myList;
dgDataGrid1.CreateTableDefition(); // creates my table styles and applies them
.. the current cell code ...
}
thats what it looks like. its instantiated, a data source has been set and a table style is created then a call to current cell
go figure
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|