15,917,321 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Francisco T. Chavez (Top 50 by date)
Francisco T. Chavez
20-Jul-14 1:05am
View
In that case I would advise you to create a UserControl that uses the selected item as its
DataContext
. This control would contain your
WebBrowser
, and you can have it refresh eachtime the
DataContext
is changed. Then have the refresh button raise an event that tells the control that contains your list to select the next item in the list.
You might even be able to get rid of the visual list, and just have some kind of list or array in the code behind that feeds you one item at a time.
Francisco T. Chavez
19-Jul-14 23:52pm
View
I'm going to assume that by .NET IDE, you mean Visual Studio. I'm sorry Wes, but Visual Studio is an IDE for the .NET Framework. In which case this really depends on which version of Visual Studio you are using. The reason I'm saying this is because some versions of Visual Studio have a quick deploy system (which I would advise against). And, some versions let you create an additional project that builds your installer (it's a bit of a pain to figure out, but works fairly well).
There are also scripting programs like Inno Setup that you can use to create Windows Installers. You might want to have your program compiled first, but who knows, maybe there's a way to compile from the script.
Francisco T. Chavez
16-Jul-14 20:15pm
View
I think you might want to rethink your solution a bit. The CheckBox's IsChecked property should be bound to a property within the item you are templating (your TodoItem instance). This way, you only need to check the value of that property in your item, not the value of each CheckBox. One of the nice things about WPF is the seperation of the data from the UI. This doesn't always work (like in the case of the selected items property), but it does a really good job at it.
Francisco T. Chavez
5-Dec-13 21:44pm
View
What about using a pipe to capture the data from console application? This way you won't have to wait for the console to finish with the temp file.
Francisco T. Chavez
21-Nov-13 23:08pm
View
The only way to make a window app that is accessible from any computer is to host it in a location that is accessible from any computer. At that point, wouldn't it be easier to create an MVC 4 website, and connect the site to the database.
*It would cut down on the need to install the a window app on the computer you are using.
*It would open you up to operating systems that aren't windows based.
*It will allow you to connect the site more directly to the database, which would get rid of the need for creating (or finding) network code for communications between the app and database. Don't get me wrong, the site and database will need a way to communicate with each-other, but there are plenty of well established ways to communication between a website and it's database that anyone can get their hands on for free, the same can't be said about a windows app that talks to a database over a network (the free part).
Francisco T. Chavez
15-Nov-13 11:49am
View
Are you able to send the tweet from a console application?
Francisco T. Chavez
15-Nov-13 11:30am
View
This is making me think it might be a good idea to remove the code I posted for the rotating image.
Francisco T. Chavez
15-Nov-13 11:28am
View
So, what's a size L?
Francisco T. Chavez
15-Nov-13 4:24am
View
If I had to guess, I would say that your best bet would be to bind the RenderTransform property of the Image instance to the Value property of the NumericalUpDown instance. I would also create a converte (for that binding) that creates an instance of the RotateTransform class to be used by the Image.
Francisco T. Chavez
15-Nov-13 4:07am
View
Have you looked into render transformations?
Francisco T. Chavez
14-Nov-13 4:08am
View
You're asking quite a bit for a single question. It might be a good idea to break this down into multiple questions.
Francisco T. Chavez
14-Nov-13 3:59am
View
From what I've seen, the Express versions are sub-components (for the most part) of the paid versions.
Francisco T. Chavez
13-Nov-13 7:35am
View
You have a ComboBox inside your XAML, and the NumericUpDown is a numeric box, I just wasn't calling it by it's proper name (NumericUpDown).
Just to be clear, you have a ComboBox, a NumericUpDown, and a ListBox in your XAML code. You then create a List<double> with value ranging from 700 to 1, and insert the List<double> into the DataContext of the NumericUpDown.
I made the assumption that you were trying to control the selected item of the ComboBox by setting the value of the NumericUpDown, I made this assumption because I saw you were placing the List<double> with the cmb object.
Can you please clarify your question.
Francisco T. Chavez
13-Nov-13 6:53am
View
In that case, I would create a binding between the SelectedItem property of the combo box, and the Value property of the numeric box. Before I forget, you might want to change the list to ints. You are going to want discrete values that match up, and a double to int converter might be needed in the binding.
You already said you want the numeric box to change the selected item in the combo box, but do you want the selected item in the combo box to change the value in numeric box?
Francisco T. Chavez
13-Nov-13 6:44am
View
I like this one. I think cigwork should move it to the solution section so that I can give it a 4 or 5 star rating.
Francisco T. Chavez
13-Nov-13 6:38am
View
Ok, just set the min value to 1 and the max value to 700, but that still doesn't tell us what you want to bind the value to.
Are you trying to set the selected value on the list with the numeric box?
Francisco T. Chavez
13-Nov-13 6:34am
View
Why are you trying to learn WPF? I'm not saying it's a bad idea, but based on your question, it almost sounds like you want to learn it in order to do a presentation. I would advise learning to use Power Point for something like that.
As for the purpose of WPF, it's a framework that is used to build an GUI based application. There are plenty of other frameworks that do this, but one of the things that sets WPF apart is that it uses DirectX to draw the GUI on your screen. This reduces the processing power needed to draw certain items by using Vector based graphics.
Francisco T. Chavez
13-Nov-13 6:21am
View
You want to bind the value in the numeric control to what?
Francisco T. Chavez
10-Jun-13 1:48am
View
Is this a WinForm application or a WPF application?
Francisco T. Chavez
10-Jun-13 1:46am
View
Is it the code for getting use user id that's giving you the error or the code for deleting that row?
Francisco T. Chavez
5-Jun-13 18:17pm
View
If the issue is that you don't know anything about control template's then I'd advise reading
this article
as a place to start.
Francisco T. Chavez
29-May-13 3:37am
View
I'm sorry if I wasn't clear about where I was advising the use of the one way binding. What I meant was that when the text box isn't supposed to be bound to an item, I would advise setting a one way binding to a fake property. At that time, you don't need a two way binding, because there isn't suppose to be a binding.
The thing is, I don't know how to get rid of a two way binding. The only reason I know how to get rid of a one way binding is because a coworker of mine ended up setting the value of control's property when that property was bound with a one way binding. I spent nearly two hours trying to figure out why the binding wasn't updating the property value for that control. This is also the reason I
try
not to name a control unless I have to. Naming a control makes it easier to play with it from inside the code behind file. Of course, there are times when the only easy (or quick) way to do something is by doing it in the code behind file.
Francisco T. Chavez
29-May-13 3:25am
View
In XAML, you can set the name of a control with x:Name.
For instance, lets say I have a button that I use to start a race car animation, I might want to name that button AnimationStarter. So my XAML might look something like:
<Button x:Name="AnimationStarter"
Content="Start Your Engine"
.../>
Once I've set the name of the button (or any other control outside of a template), I can point to it from within a binding by placing that control's name inside the bindings ElementName property.
Francisco T. Chavez
27-May-13 20:09pm
View
When you say virtualization, are you talking about the UI or the data?
Francisco T. Chavez
27-May-13 19:59pm
View
3) mostly, there are a few ways to access those string if they haven't been garbage collected, but it would be a lot simpler to just store them yourself and access them. Also, .net tries not to have multiple instances of identical strings, so if you recreate one of those strings before it is garbage collected, .net might just end up giving you the original string instead (might).
Francisco T. Chavez
27-May-13 19:48pm
View
Sorry about the delay, works been got busy and this just sort of slipped my mind. I noticed you said that your service is the one having trouble connecting to the hub. My next set of questions are: where is your service running, what kind of service is it, and just to be clear, the service is trying to connect to the hub (it's not playing host to the hub)?
Francisco T. Chavez
27-May-13 19:41pm
View
In that case, I'll have to agree with Solution 5. If it had been something like, someone dropped this project on my lap; it's all build on this WPF (or ASP.NET,WinForms, etc.) then it would have been a lot easier to give you a more directed approach.
I would usually say that "Head First into C#" would be a good book to use as a starting point for learning C#, but there might be a language barrier there.
Francisco T. Chavez
26-May-13 21:56pm
View
As I mentioned before, the part I got stuck on was deciding how to protect the passwords that I was storing. I'm not sure how helpful this will be. But, I'd advise you to read this, to help you get started on the security aspect of the application.
http://msdn.microsoft.com/en-us/library/e970bs09.aspx
This is the one part where I can't provide you with very much help, but it may also be the most important part. Placing it on a mobile platform will make it even more important.
Francisco T. Chavez
26-May-13 17:43pm
View
Are you trying to learn C# because of a specific application, or because you want to learn C#?
Francisco T. Chavez
26-May-13 17:31pm
View
If my last comment scared you off, please don't let it do that. An account password storage and retrieval system will take some work, but it's a good project for starting out your summer.
Start with the most relevant questions first.
* When you create an account, what information do you need to give them?
* Out of that information, which items do you want to be able to look up? (password would be my guess)
* What items do you want to use to look up your information? (again I'm going to take a guess here and say: account service & account name)
The thing is, when it comes to storing and retrieving information, you need to set a format (schema) for that information. The closer you get to the correct schema early on, the less changes (and work) you'll have to do. I'm not saying it has to be perfect, but it's always nice to get it in the ballpark.
Francisco T. Chavez
26-May-13 1:04am
View
Truth be told, you can output this to just about anything the computer can output stuff to. XML, binary file, JSON, a database, the application settings file, ini, raw text, etc. As long as it's something that the computer can write to and read from, it can be done. To be honest, this part may be one of the easier parts.
There are a few additional things that you might want to consider:
* Do you only want to be able to store the values for one account or multiple accounts?
* Do you want to be able to see what secret questions you used for that account and what the answers were?
* How are you going to go about encrypting and decrypting the password in case someone makes a copy of what you're storing (this is the part that stopped me in my tracks)?
* These next questions can be ignored if you only have one account being stored.
* How are you going to go about access this information?
* How are you going to go about inserting new information?
* Do you want to be able to add tags to your accounts so that you can group things together by subject and stuff (for example: email, video gaming, forms, porn, etc.)?
Francisco T. Chavez
26-May-13 0:44am
View
I have to ask, what is this new Window doing that's causing the main window not to work?
Francisco T. Chavez
25-May-13 23:24pm
View
This sounds a lot like the beginning of a password manager. The username and account part won't be too difficult, but keeping the passwords safe from hacking is something that will take a lot of work. Are you sure want to do this?
Francisco T. Chavez
25-May-13 23:18pm
View
I agree that the solution is dependent on what the threads should do.
Francisco T. Chavez
16-May-13 2:16am
View
What's the client running on? I've noticed that the done part of start().done(...) doesn't get called when I use .Net forms web site.
Also, where's the code for the hub, so that we can see if you called the correct Hub when you set the hub variable.
Also, have you checked to make sure that javascript is enabled in your browser?
Sorry if I'm all over the place, but it's a bit hard to narrow down on the problem without any details.
Francisco T. Chavez
14-May-13 4:09am
View
So you're asking how much work it would take to have dynamically generated XAML pages with drag & drop functionality.
My net question is, where are you dragging from? I've played around a little bit with drag & drop, and I found that this can make a big difference in the amount of work that would be needed. Well, a more honest answer would be that there are short cuts to the amount of work that's needed based on where you are dragging to and from.
Francisco T. Chavez
14-May-13 3:41am
View
Are you using the drag and drop to set up the look and content of the XAML page that you are trying to generate? Or, are you asking about the feasibility of two separate issues in the same question. If they aren't separate issues, but they don't relate to each other in the way that I asked, then how do they relate?
Francisco T. Chavez
6-May-13 15:47pm
View
Are you feeding the collection directly to the items source, or are you binding the items source to the collection?
What exactly are you changing?
* Adding items to the collection.
* Removing items from the collection.
* Moving items around in the collection.
* Changing the property values of the items in the collection.
Francisco T. Chavez
29-Apr-13 14:06pm
View
In that case, what program did you guys use?
Francisco T. Chavez
26-Apr-13 18:54pm
View
I can't help but noticed that you didn't say anything about the end result.
Francisco T. Chavez
26-Apr-13 18:46pm
View
I'm not 100% sure, but I think you need to change "var proxy = $.connection.MyHub1;" over to "var proxy = $.connection.myHub1;" in your js.
I would throw in a few lines of js to print out how far you get in that js code. In my limited experience, the js code tends to stop as soon as it hits an error, so knowing where you hit the error would be useful.
Francisco T. Chavez
26-Apr-13 18:38pm
View
Why don't you just loop through the list and add the each item to the table?
Francisco T. Chavez
11-Apr-13 16:57pm
View
stibee is right, doing this the WPF way would require you to build a converter class, instantiate it, and then reference it in your binding. I guess, you could also create a bool type property and bind to that, but you would still end up setting that bool type property in code the same way you are setting the IsEnabled property for the button. And, I've had issues with using bindings with the IsEnabled property, it works fine on some controls, but not on all controls.
I think your in-code solution may be the optimal solution in this case. The only thing I would change is that I would set the IsEnabled property with the result of the 'is' operator, but that's more about my own personal preferences.
Francisco T. Chavez
11-Apr-13 16:28pm
View
Are you putting items from different tables (with different columns) into the same data grid at the same time?
Francisco T. Chavez
11-Apr-13 14:16pm
View
It was the first solution that went through my mind. I just figured that bindings might be easier than messing around with the resource dictionary. Your solution seems sound when I think about it, so my best guess is that it is a good solution.
Francisco T. Chavez
11-Apr-13 13:47pm
View
If Bindings to the DataContext are not an option, what about a Binding to a RelativeSource that's a bit higher up the VisualTree. Somewhere along the line, your grid has to be placed in some control that you can add properties too.
Francisco T. Chavez
18-May-12 21:44pm
View
Sorry, but the question was how to do this with the new builds, not the old ones.
Francisco T. Chavez
26-Jan-12 13:44pm
View
I did the pinging by IP, which is also how I set the address for the TcpClient. Right now, I'm communicating with IT, in order to add an exception to the computer's firewall for the program.
Francisco T. Chavez
25-Jan-12 18:55pm
View
I've connected the client machine to the server machine using a network router. I can now successfully ping the each machine from the other machine. Yet, when I tell the client machine's TcpClient object to connect, I get a timeout error.
Francisco T. Chavez
25-Jan-12 14:32pm
View
Just before leaving work last night, I noticed that the server machine had a red light where we plug in the network cable. So, I tried plugging it back into the regular network to see what would happen, and the light turned green. At that point we figured that the two probably didn't want to talk directly to each-other and that we would need to try using a hub next.
Show More