I have started developing on SharePoint not long ago. A good book you could read is SharePoint 2007 How-To by Ishai Sagi. It got me on the right track. Anyway, I started learning it by reading MSDN library. The content there is not very well written but it is not that bad.
kapax5
Posts
-
Share point Basic -
Programmatically checking DataGridViewCheckBoxCellSay, I have
DataGridviewCheckBoxCell cell
object. I can select/deselect it by doing
cell.Value = true
/
cell.Value = false
. This works until user manually selects/deselects some checkbox - after that this checkbox stops changing after assigning a value. What could be the reason for that?
-
VS designer (C#)Say, I have a resource file Res.resx with strings predefined. Then I create a new form using designer. Is it possible to use the string resources from the designer view to assign the properties, like text, so the line in the designer file would look like:
this.Text = global::My.Namespace.Res.Localized_text;
?
-
How to assign class variable value using loadlibrary function -
How system finds DLLsThank you. I have been looking precisely for this.
-
How system finds DLLsAfter linking C++ project with specific
.lib
s and when I run it, how does a system find the correspondingDLL
s if they are not in the same directory? There should be some rules for that, as far as I know. -
Environment variablesFound a temporary solution for now: I open the Process Explorer, find the right process (devenv.exe, in my case), right-click for properties and go to the Environment tab to see currently defined environment variables. It's a huge help for me. What I am going to do next is either to find a tool or to write some extension that would allow me to access those variables easier and faster.
-
Constraints taking either types in genericsYes, a very good note. I am pretty sure that the author of the question understands why his provided idea is impossible. So, something must be done with inheritance, or maybe if we knew what exactly he is trying to do, we could find a workaround for the problem.
-
Constraints taking either types in genericsI think you cannot do that. But, on the other hand, I see no reason to do that, too. If either of the two types works for you, then they must have some common interface. So, all you have to do is to have both MyClass1 and IMyInterface implement some IGeneralInterface.
-
Environment variablesI usually run Visual Studio from .bat file with some predefined environment variables, so I can later use them in Visual Studio. It is especially useful in WiX toolkit. How do I see all environment variables that are currently set from Visual Studio? I would like to see Visual Studio's environment variables, too.
-
showdialog boxIn WPF you cannot do that because it returns only Nullable<Boolean>. So, a code like this should do the trick:
fDialog.ShowDialog();
if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
{
MessageBox.Show("User clicked on OK / Open");
} -
Generics problemYes, that's what I needed! Simple and elegant. Thank you!
-
Generics problemYou see, if I instantiate this class like this:
new GenericClass<Int32[]>();
, then what xxx() returns is List<Int32[]>, although it should return List<Int32>. Now, if I instantiate the class this way:
new GenericClass<List<Int32>>();
, then xxx() will return List<List<Int32>>, but it should also return List<Int32>. That is why I think that IEnumerable is the way to go for T. I am starting to think that my idea is conceptually wrong, since I cannot think of anything that would work.
-
Generics problemThere are following classes:
public class X
{
Int32[] a;
public List<Int32> xxx()
{ ... }
}public class Y
{
List<Int32> a;
public List<Int32> xxx()
{ ... }
}What I am trying to do is to find a generic way to make the class of similar descent:
public class GenericClass<T> where T : IEnumerable
{
T a;
public List</*Type of the elements in the IEnumerable T*/> xxx()
{ .... }
}No ideas come to my head. Maybe some will come to yours'? I understand that the problem is that IEnumerable is not generic but maybe there will be any clever solutions :)