Ketsuekiame 860 Master Poster Featured Poster

I suggest you use OpenPOP (as deceptikon mentioned) if you're not interested in learning the mechanics behind POP Mail. You will need to build the services around it for your application.

I would first start with building a one-way WCF service (You call it and it gives you a response). Once you have built that up, it will be easier to teach you how to implement callback contracts for two-way service communication.

Visual Studio has a nice template for a basic WCF service. I suggest you take a look at that and run through some WCF tutorials.

A quick google and This looks like a decent WCF Tutorial to get you started.

Ketsuekiame 860 Master Poster Featured Poster

Create a TcpClient and connect to the POP3 server, open a NetworkStream that uses the client and download all the data available. You can then parse this using the POP3 specification.
You can parse this data into a class for storage (file or database)

In your client application you need to be able to connect to your service (I suggest WCF as it allows some pretty cool features) and you grab your mails from this service.

If you're using WCF then you can issue a callback to any connected client saying that mail is ready for it to collect, or, simply send the mail down the callback (although I avoid this scenario, simply telling the client that mail is ready for collection is enough and avoids locking the service while it sends data down the callback channel).

Ketsuekiame 860 Master Poster Featured Poster

Working in healthcare IT myself, I find it absolutely unbelievable that a single system, even with the "state exchange" system everyone is ranting on about, cost $634M. That is a staggering amount of cash! (Even if they built their own datacenters)

Ketsuekiame 860 Master Poster Featured Poster

It's because you're making the buttons appear and disappear.

When you move your mouse over them, your mouse "leaves" the form window and enters the button window, causing your Form2_MouseLeave method to execute, causing your buttons to become invisible. This causes your mouse to "enter" the form window, causing Form2_MouseEnter to execute. This makes your button reappear, causing your mouse to "leave" the form window...An infinite cycle now starts of the button appearing and disappearing.

Ketsuekiame 860 Master Poster Featured Poster

Did you check that the file still exists in the output folder of your build? Visual Studio could be deleting the DLL because you're doing a rebuild. (Performs a 'Clean' step)

Ketsuekiame 860 Master Poster Featured Poster

This question is a bit too involved for me to answer quickly in the time I have available. However, there is a tutorial on dynamic control creation available at Tech Pro which should get you headed in the right direction.

Ketsuekiame 860 Master Poster Featured Poster

If you call PlaySync instead of Play it will queue the audio so that they play one after the other, not over the top of each other.

If you want any more complicated scenarios then you will need to create your own audio manager.

Mike Askew commented: Epeen++; +7
Ketsuekiame 860 Master Poster Featured Poster

Hi tinstaafl,

That gets the currently selected row of the currently selected cell. It seems like the OP is iterating every row in his view.

OP, this MSDN link should help. The GridView raises a RowUpdated event when you click the update button.

Ketsuekiame 860 Master Poster Featured Poster

Did you add the viewmodel to the window datacontext?

<Window /* Add a namespace location for your viewmodel class eg. vm */>
    <Window.DataContext>
        <vm:MultipleDatumFilterVM />
    </Window.DataContext>
....
</Window>

Then in your code behind, in the constructor, point your Window DataContext to the ViewModel instantiation.

public partial class MyWindow : Window
{
    public MultipleDatumFilterVM ViewModel = new MultipleDatumFilterVM();

    public MyWindow()
    {
        IntialiseComponent();

        DataContext = ViewModel;
    }

    ...
}

Remember that when you fire the checkbox changed event, to fire OnPropertyChanged for the other items you're bound to, otherwise they won't pick up the changes (if you don't make manual adjustments).

eg

public class CheckBoxViewModel : INotifyPropertyChanged
{
    public CheckBoxViewModel()
    {
        IsChecked = false;
    }

    private bool _isChecked;

    public bool IsChecked
    {
        get { return _isChecked; }
        set { _isChecked = value; FireEvent("IsChecked"); FireEvent("Output"); }
    }

    public string Output
    {
        get { return IsChecked.ToString(); }
    }

    private void FireEvent(string paramName)
    {
        if (PropertyChanged != null)
            PropertyChanged(this, new PropertyChangedEventArgs(paramName));
    }

    public event PropertyChangedEventHandler PropertyChanged;
}

If I didn't manually fire the event for "Output" then anything watching that property would never get updated.

Ketsuekiame 860 Master Poster Featured Poster

Essentially you're submitting every row to the update method.

Instead, you need to select the current row you're working on and check whether it is "dirty".

foreach(GridViewRow rowView in dgv.Rows)
{
    DataRow row = rowView.Row;
    dgv.CurrentCell = dgv.Rows[rowView.Index].Cell[0];
    if(row.RowState != DataRowState.Unchanged || dgv.IsCurrentRowDirty)
    {
        maDDL.submitItem(.....);
    }
}

This is probably the easiest way I know of. I'm sure there's a cleaner way but I can't think of one off hand.

Ketsuekiame 860 Master Poster Featured Poster

Personally speaking, a combobox is the wrong object for this job. It would be much better (and simpler) for the user, if you populated DataTables. Your functionality would still exist, only they UI would be better.

I would do this in a class structure that your ViewModel will utilise.

Create a Table and column class such as:

class TableViewModel : INotifyPropertyChanged
{
    string TableName;
    List<Column> Columns;
    bool IsSelected;

    /* Interface Implementation */
}

class ColumnViewModel : INotifyPropertyChanged
{
    TableViewModel ParentTable;
    String ColumnName;
    bool IsSelected;

    /* Interface Implementation */
}

Then in your Window ViewModel:

class CreateQueryViewModel
{
    List<TableViewModel> Tables;
}

Then you need to bind your first DataGridView (or even a TreeView) to the Tables object on your ViewModel.
Hook into the OnPropertyChanged event for each of your TableViewModel and everytime you detect that one has been selected, add a DataGridView for that Table and bind the column list to the Columns property.

Ketsuekiame 860 Master Poster Featured Poster

What's the actual problem you're having?

Ketsuekiame 860 Master Poster Featured Poster

I suggest you create an object that records coordinates and rotation. Inside that object let it have its own drawstring method that calls the Graphics.DrawString method. That way you can keep track of it. Not sure there is any other way to do it and methods themselves cannot be objects.

Ketsuekiame 860 Master Poster Featured Poster

Can you provide an example of what you're doing in code? I don't quite understand you.

Ketsuekiame 860 Master Poster Featured Poster

Set a property such as IsHeader on the object you're adding to true. This will act as a marker for your style trigger.

MyObject cbiHeader = new MyObject { Text = "Header 1", IsHeader = true };

You also need to set up a style trigger based on your databinding.

So if you have a ComboBox object in your WPF...

<ComboBox ItemsSource="{Binding}" DisplayMemberPath="Text">
    <ComboBox.ItemContainerStyle>
        <Style TargetType="MyObject">
            <Style.Triggers>
                <DataTrigger Binding="{Binding IsHeader}" Value="True">
                    <Setter Property="IsEnabled" Value="False"/>
                    <Setter Property="FontWeight" Value="Bold"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </ComboBox.ItemContainerStyle>
</ComboBox>
Ketsuekiame 860 Master Poster Featured Poster

Make the header a seperate control and change the font of that control.

Label headerLabel = new Label
{
    Text = mychk.Content.ToString(),
    FontWeight = FontWeight.Bold
};

GroupBox myGroupBox = new GroupBox
{
    myGroupBox.Header = headerLabel,
    myGroupBox.Content = myStack
};
Ketsuekiame 860 Master Poster Featured Poster

Unfortunately, there's nothing communicating over your COM1 port. However, you might be able to get a list of the com ports available on your machine and then select the correct one for your device.

SerialPort.GetPortNames will return a list of com ports to you. But you might need to do some registry queries to get the right com port by the vendor and device id.

Otherwise, you will have to treat your scanner as a Keyboard emulator (probably the default mode) and make sure that the relevant text boxes are focussed when a scan takes place.

Ketsuekiame 860 Master Poster Featured Poster

Not exactly sure what you're struggling with...Bind the checkbox to a boolean on your model and check the result when you save.

Ketsuekiame 860 Master Poster Featured Poster

First thing I noticed is that you accept a list of type General but you say you only want a single instance. I suggest you change that method to only take a single object.

Additionally, as you're going to be working with an existing XML set, it might be worthwhile using an XmlDocument or XDocument class so that it's easier to work with and modify the node-set.
An additional advantage of using these objects is that you can query them with XPath.

Finally, unless you want all the class and library metadata, I wouldn't bother using the built in XmlSerializer but instead pull each setting out manually. I understand that the serialiser is easier, however, you lost a lot of control by using it.

Ketsuekiame 860 Master Poster Featured Poster

Well, you need to bind your checkbox to something like an MarkForDelete on the thing you want to delete. When you click on Delete, iterate through all the data and filter out based on this flag. Delete as required.

On the last point, you could set your datagrid into edit mode when you click, then pick up the OnKeyPressed event and check for the Return key, or any mouseclick outside the control.

Ketsuekiame 860 Master Poster Featured Poster

First, expand your catch to retrieve the exception.

catch(XmlException exc)

Then, actually log/display the exception message that is contained in exc.Message. It will also give you a handy point to break on.

Unfortunately you can't tell if XML is well formed before you load it unless you write your own parser.

Ketsuekiame 860 Master Poster Featured Poster

You need to set your application to target CPU Type x86.

Ketsuekiame 860 Master Poster Featured Poster

You don't need the second loop as you can call cout immediately after you have written the value in the first loop.

Additionally, I would have picked better variable names for your loop indexers, but this is only personal preference.

Your variable naming doesn't follow a single style/standard, pick one and stick to it :) Points noted were your use of capitals and miniscule on the first word of local variable names and method names should start with a capital letter.

class MyClass
{
    private: int _member;
    public: int Member;

    void Method()
    {
        MyLocalVariable localVariable;
    }
};

Above is the style I use :)

The arithmatic on line 30 can be placed inside your if statement on line 23. There's no need to do a second check as you already know that the statement will be true here. Also you don't need the else if just else will do. There can't be any other condition and so saves doing another condition check.

That is my quick evaluation :)

Ketsuekiame 860 Master Poster Featured Poster

Aggregated
Nitrates
In
Meadows
Are
Trashing
Industrial
Organic
Nurseries

Acetate

Ketsuekiame 860 Master Poster Featured Poster

Can you change it to something that isn't your name and then back to your name?

But yeah, I agree, a simple logic gate that checks if your old username matches your new username (at a case insensitive level) hopefully wouldn't stress the development resource too much :)

Ketsuekiame 860 Master Poster Featured Poster

Just realised, iamthwee, that no one did your acronym of: ふあししはそひ

Do I have to use the character you used, or can I use the phonetic (Fu A Shi Shi Wa So Hi)?

Ketsuekiame 860 Master Poster Featured Poster

Serialisation
Of
Files
To
Web
Aware
Result
Entities

Hmmm, better entries for this one? I'm in agreement with Jim, let's at least give the resulting sentence meaning ;)

Jim if that was a poke at mine for Herioc, did I use Integument incorrectly? I thought it meant container/cover. I generally try and have the resulting expansion make sense as a whole.

Next:
Agitate

Ketsuekiame 860 Master Poster Featured Poster

Most
International
Schools
Solicit
Internship
Showing
Scholarship
Is
Principally
Profit
Induced

BOOM! :D

Ultra Epic Hard Mode
Deinstitutionalisation

Stuugie commented: Nice! lol, I'm leaving Deinstitutionalisation alone. +0
<M/> commented: thank god i didn't attempt it +0
Ketsuekiame 860 Master Poster Featured Poster

Haptic
Eroticism
Readies
Ovarial
Integument
Coition

Hard mode on
Disassociation

Ketsuekiame 860 Master Poster Featured Poster

Vineyard Inspectors Need Ethanol

Gyroscope

Ketsuekiame 860 Master Poster Featured Poster

Horticultural Oratory Rallies Occupationalists With Immediate Zeal!

M you aren't even trying :P

Awareness

Ketsuekiame 860 Master Poster Featured Poster

Xenophobic Yobs Livid Over Interracial Dependence

(Why do I always have to do the hard ones? :P)

Nomenclature

Ketsuekiame 860 Master Poster Featured Poster
timmyjoshua commented: pls, can you help me.. have done the one for .txt but my c# form has got a .jpg picture that i want it to show in the file... +0
Ketsuekiame 860 Master Poster Featured Poster

Habitually Altruistic Relatives Distribute Care Of Domestic Emancipated Descendants

Incarcerate

Ketsuekiame 860 Master Poster Featured Poster

Yes, which is now where your thread is located :)

Ketsuekiame 860 Master Poster Featured Poster

Hmm, if you're not using MVC then I honestly don't know. I can't imagine why not. If you have a general landing page, your links out of the page need to be your encoded values.
When you post to the page, you send your encoded values and then decode them with your mid.cs file. Once decoded you should be able to select the appropriate file for rendering.
As you will need to redirect your output, I don't know how this will be handled in normal ASP.NET (WebForms). In MVC, you can set the View explicitly so that the target filename will never be displayed.

I will ask a mod if your question can be moved to the ASP.NET forum, they might be able to give you a better answer than I can.

Ketsuekiame 860 Master Poster Featured Poster

Well it's certainly possible, but you will need to adjust your routing so that you only ever have the root controller. When you retrieve the encoded section, you will need to decode it and load the appropriate view.

This can all be done in MVC 4

Ketsuekiame 860 Master Poster Featured Poster

District Attorney Naughtily Insinuated Wearing Elastic Bloomers

Android

Ketsuekiame 860 Master Poster Featured Poster

But, if you encode the website uri, then the page name effectively becomes the encoded value. You don't actually gain anything other than obfuscating the original filename...

You could do it using symmetric encryption and a datetime stamp salt to vary the generated content, decrypt that and load your page. But considering that this is so much work for what I'd consider to be no gain, please consider the actual requirement as to why you need to obfuscate the file name.

Ketsuekiame 860 Master Poster Featured Poster

Why would you need to do that?

Ketsuekiame 860 Master Poster Featured Poster

Well, release mode is where you put in all your optimisations. The idea is that in release mode you want your application to un as efficiently as possible. Also, any test data or settings you might've set need to be removed. By going into "Release" mode, you have the option to turn these off without altering the code of your application. Strictly speaking, "Release" mode is just a configuration, you could have "Release_64" for 64bit releases or "Release_OGL_FPS" which is release mode with opengl and an fps counter...

What you do in release mode is pretty much up to you as the developer.

Ketsuekiame 860 Master Poster Featured Poster

When you define DEBUG you can adjust what your code does based on this definition.

So you could do;

#define _DEBUG
#include <iostream>

int main(int argc, char** argv)
{
#ifdef _DEBUG
    std::cout << "DEBUG MODE ON" << std::endl;
#else
    std::cout << "DEBUG MODE OFF" << std::endl;
#endif

    return 0;
}

In this case, when you compile, only the line of code that says "DEBUG MODE ON" is compiled into the application, the other condition is completely skipped and not part of the binary.

Many people do this when developing for cross-compatibility. Such as #ifdef _WIN32 so you can switch between code that will only work on a particular system.

Ketsuekiame 860 Master Poster Featured Poster

I get this I think because Facebook is blocked at work so I get the proxy error message there instead, but yes, it drops the icons down to the next line.

Ketsuekiame 860 Master Poster Featured Poster

People Investigating Technology

VOICE

Ketsuekiame 860 Master Poster Featured Poster

You could always just check the contents of word and if it is empty, then you don't need to write anything out.

Ketsuekiame 860 Master Poster Featured Poster

You should do what ddanbe says and remove line 33 not line 38...

Ketsuekiame 860 Master Poster Featured Poster

Strictly speaking you should put it in a using statement too :)

Ketsuekiame 860 Master Poster Featured Poster

is it possible that there is whitespace in your file that has a tab after it? Or a tab and then a newline? That would cause you to get empty lines showing up

Ketsuekiame 860 Master Poster Featured Poster

What do you mean by "line spaces"? It could mean a couple of things in this context, could you clarify please? :)

Ketsuekiame 860 Master Poster Featured Poster

If you put it into the session, you can grab it anywhere yes. If you put it on the form, you will need to retrieve it from the form values and place it onto the next form ad infinitum until you need to use it.

Either way is acceptable really, but if you want to use it throughout the application, it would be better sitting in Session.