|
would be nice if you shared your solution so that everyone can learn from it.
|
|
|
|
|
hi
How to get only numbers from string ?
for example:
abcde123.45po => 123.45
ab, 098,zx => 98
thanks
|
|
|
|
|
Try a regex:
\d+(\.\d+)? Should do it.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Private void GetNumbers()
{
String str = "avinash9499483Kumar92938Singh";
MatchCollection mc=Regex.Matches(str, @"\d+");
String result="";
for (int i = 0; i < mc.Count; i++)
{
result+=mc[i].Value.ToString();
}
MessageBox.Show(result.ToString());
}
Avinash Kr Singh
Software Lead Developer
Kreativevistas Solutions Pvt. Ltd.
New delhi-110088 India
|
|
|
|
|
Hi there,
These are my first steps in C#, i generally develop in C for micro Controllers. I am fighting with the problem that I cannot create a reference in Visual Studio Express 2015 to the office PIA.
I found this desription and installed the the redistributable following point (1).
https://msdn.microsoft.com/en-us/library/4xa0e82x%28v=vs.90%29.aspx[^]
Is there a possibility to varify if it is installed properly? I cannot find the dll (Microsoft.Office.Interop.Outlook.dll) on my PC, where is it supposed to be located?
Here is the procedure of how to create the reference, however, in the framework tab, the office PIA is not available to select
https://msdn.microsoft.com/en-us/library/dww0e04a%28v=vs.90%29.aspx[^]
I am wondering if it is basically possible to use the office interlop in VS express. Here it is stated that that you need professional for office solutions. However, I thought it is only related to the creating of the project.
https://msdn.microsoft.com/en-us/library/bb398242%28v=vs.120%29.aspx[^]
If it is not possible, what alternatives do I have to develop a litte private application that needs to use the Microsoft.Office.Interop.Outlook?
|
|
|
|
|
You might want to take a look at the Visual Studio 2015 Community Edition[^], it is basically Professional under a free license (for small teams/student/private use/etc). I have it installed, and it comes with Office Developer Tools.
The installer you used installs to the Global Assembly Cache, which is why you can't find them.
There are a number of programs to help with finding libraries in the GAC, such as GAC Manager[^] (comes with an API) and GAC Explorer[^] (My preferred program). GAC Explorer can also copy assemblies out of the GAC. I am not sure if GAC Manager can do that.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Please help me with simple way
|
|
|
|
|
Create a WPF project
Add a View to the project
Open the toolbox tab on the left of the ide
drag the gridview object onto the designer.
Simples!
Get a book, work through some examples and articles you will find if you do the most rudimentary research.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Many ways, the best one (IMO) is already shared in first reply. Other ways include using C# code,
DataGrid dGrid = new DataGrid();
Other than that, you can also write the XAML markup in your code.
<DataGrid Name="dGrid" />
These methods are used to create a DataGrid. Then you need to pass the data as a value for ItemsSource property to actually render the values in it.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Let say I want to write a simple document editor, say I want to make (yet another) Notepad2 app!!
How unrealistic an endeavor is that?
My particular problem is that creating FileStream to random location on the file system seem completely impossible!
In my case I am making some proprietary format file editor. I would like to use Windows store
API AND I would like to open previously open file when the app start and also save edited file when user press CTRL+S (without going through a file picker)
But this scenario seems to be a show stopper... since I don't have file access....
Am I missing something?
|
|
|
|
|
Hi, I am not totally sure this is relevant, but Pete O'Hanlon has a series of articles that began in May where he is building an app with Portable Class LIbraries: [^].
And, a focus of this series is the architectural strategies he uses (based on the SOLID "school" of development theory).
cheers, Bill
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
|
|
|
|
|
It might not be relevant... but it's worth having a look at Peter's good work!
|
|
|
|
|
I don't think it's possible to access random files from a store app without user interaction.
This blog[^] suggests that you can read and write specific file types within the documents library by changing your manifest. Beyond that, everything I've seen suggests that you're limited to the isolated storage folders for your own app.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yeah, I guess Windows Store app is not for me! :/
Too bad!
|
|
|
|
|
Hi,
I am trying to migrate my utility library (formerly a plain .NET4.5 library) to a PCL library which supports both .NET 4.5 and the Windows Universal app (for Windows 10) app.
I got some issue working out why some things are working and some are not.
For example Task is fine. I can do Task.Run() on both .NET4.5 app (obviously!) and Universal app.
But Thread is not. new Thread() will fail to compile for Universal app.
Trying to use the documentation is of no help. In either project it send me to the same location! From which I am lead to believe that (System.Threading.)Thread class does exists! Though it doesn't! (in Universal app, that is)
Is there any tip / trick / reference (other than the compiler complaining) that will let me know in advance which .NET4.5 class will be supported in a Universal library and which is not?
|
|
|
|
|
Look at the .NET API you want to use and look for this image[^]. That tells you if the API can be used in a PCL project.
No Thread constructors are marked with that image, so you cannot create new threads.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Oh... this Icon is not present on either Task or Thread in the offline documentation!
Mm... so there is a few extra on the online documentation hey?!
Thanks!
|
|
|
|
|
I remember seeing a red shopping bag like icon on local versions of the documentation. I think that means the same thing.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Well the offline documentation in VS2015 doesn't seem to have anything!
Well I can see whether it works on Silverlight, Windows Phone (silverlight), etc.. But Windows Runtime support doesn't seems to have any distinct UI with it!...
|
|
|
|
|
I see the icons on my local docs. VS2015 Community. Are you sure you have the local docs installed?
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
hi my name is bigboy. im teaching myself c# and my goal at this point is to make a trading card game, in a console application due to no art skills, does anyone have any reads that would help me accomplish my goal, or a search option to find what im looking for.
|
|
|
|
|
Search for "card game"? There are some projects in codeproject such as
[^]
|
|
|
|
|
Please, don't try to teach yourself C# by writing code: get a book, or a course, and work your way through it.
Writing code can get you to a point where you feel comfortable writing code - but you can miss out on huge chunks of language and framework which would make it a lot easier and more efficient. A structured book or course introduces each part in a logical sequence, so nothing gets missed out.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I'm replying to your direct comment because it's relevant to more that just you!
OK, so you have a budget to $0 - that doesn't mean you can't learn properly!
Yes, you could learn to fly a plane by watching a pilot do it and (provided you started off high enough) you probably be able to get it into roughly straight and level flight (and possibly even in the right direction). But...you'd be in real trouble when you approach an airport!
Development is the same: you can pick up some coding ability by "try it and see" but that doesn't mean that you know why you do things like that - go to QA and you will see hundreds of questions a week on the same subject "How do I fix 'Null reference exception'?" - all because they haven;t understood what a variable is, what an instance is, and they probably either ignored that bit or just glossed over it because it was boring. But if you know the basics, it's obvious what the problem is!
Learning by coding won't teach you much that is useful for developing your own applications: at best it teaches you how to create that application, and it's not obvious how that relates to the next one.
So...if you are doing this to get a job in the industry, find the budget for a book. Better, find the budget for a course. Or visit you local public library and see what they have, or can order. (My local public library can get any book in any county library in a few days, in a Welsh library in a week or so, and in England in a little longer. If it isn't held, I can request they purchase it for a small fee. You will probably find that yours can do much the same thing.
Look at Addison Wesley, or Wrox - they both do good (if very thick) books on the subject.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|