|
Hey guys i need help with a program im working on.
I have two WPF Windows, one is for entering information which will load the entered info into the second window.
And depending on what option selected in the combobox it must load a logo at the top of the second window and its related address below it.
Thanks
The Layout:
Mainwindow:
<Window x:Class="Other_Stuff.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Entry Form" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"></ColumnDefinition>
<ColumnDefinition Width="7*"></ColumnDefinition>
<ColumnDefinition Width="36*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Grid.Row="0" Content="Client"></Label>
<Label Grid.Column="0" Grid.Row="2" Content="Pharmacy" Margin="-5,5,5,5"></Label>
<Label Grid.Column="0" Grid.Row="3" Content="Script Number"/>
<Button x:Name="Submit" Grid.Column="0" Grid.Row="4" Content="Submit" Click="Button_Click"/>
<TextBox Name="client" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2"></TextBox>
<ComboBox Name="PharmacyComboBox" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" Margin="0,0,0,10" >
<ComboBoxItem Content="Dischem" ></ComboBoxItem>
<ComboBoxItem Content="Clicks" MouseLeftButtonUp="ComboBoxItem_MouseLeftButtonUp"></ComboBoxItem>
</ComboBox>
<TextBox Name="Scriptnumber" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" Height="55" VerticalAlignment="Top" Margin="5,0,0,0">
</TextBox>
<Label Content="Medicine" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,10,0,0" Grid.Row="1"/>
<ListBox Grid.Column="1" HorizontalAlignment="Left" Height="45" VerticalAlignment="Top" Width="397" Grid.ColumnSpan="2" Grid.Row="1" Name="medlist" Margin="0,5,0,0" Grid.RowSpan="2"/>
<!--<Button Content="Submit" Grid.Column="1" Grid.Row="5" Click="Button_Click" Grid.ColumnSpan="2"></Button>-->
</Grid>
</Window>
ScriptWindow:
Window x:Class="Other_Stuff.Script"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Script" Height="488.06" Width="437.313" Loaded="Window_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"></ColumnDefinition>
<ColumnDefinition Width="7*"></ColumnDefinition>
<ColumnDefinition Width="36*"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Grid.Row="0" Name="LogoImage" Grid.ColumnSpan="3" Margin="0,2,0,43" Grid.RowSpan="2"></Image>
<Label Grid.Row="1" Grid.RowSpan="2" Name="AdresslbLabel" Grid.ColumnSpan="3"/>
<Label Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="3" Name="ScripTextBox"></Label>
<DataGrid Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="3"/>
<TextBox Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="3" Name="RelatedTextBox"/>
<Image Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="3" Grid.RowSpan="2" Name="AdverTextBox"/>
<Button Content="Button" HorizontalAlignment="Left" Margin="10,10,0,0" Grid.Row="7" VerticalAlignment="Top" Width="100" Height="39" Click="Button_Click"/>
</Grid>
</Window>
|
|
|
|
|
Well, you could try the WPF forum: http://www.codeproject.com/Forums/1004257/Silverlight-WPF.aspx[^]
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
You would have been better off posting this in the WPF forum - WPF / Silverlight[^]. Secondly, you haven't really asked a question or told us where you are stuck. Thirdly, when you put code into a post, you should use pre tags so that your code retains it's formatting (use the code menu item above the post entry box). It's also much easier to read.
Everyone dies - but not everyone lives
|
|
|
|
|
the address needs to be retrieved from a database
|
|
|
|
|
Always format the code using Code-block. You have posted the same question at silverlight forum without formatting the code.
|
|
|
|
|
|
Hi, I want to get the inner text of this single line xml. I have parsed a properly written xml document, but I can't figure out how can I parse this single line.
<double xmlns="http://www.somewebservice.com/">168.0543</double>
|
|
|
|
|
Try a regex:
(?<=\<.+\>)([^<]+)(?=\<.*\>)
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Thanks a lot. I had to modify it a bit and it worked.
The new regex loked like this
"(?<=\">)(.*)(?=<)"
|
|
|
|
|
Is there a tutorial that shows how to inject code into the bootscreen of windows 7? Also a tutorial as to what happens at first boot? And shows c/c++ code that injects code
into each?
John
|
|
|
|
|
1. Possibly, but you need to ask Google.
2. What does this have to do with c#?
|
|
|
|
|
I am using windows 7, ActiveMQ messaging, and C#. I have a need to communicate with a MEF button running in another application. My service will receive messages from the button, but the button will not receive messages from the service. I believe it is a threading issue, and I am not sure about how I should tackle this issue. Any ideas?
|
|
|
|
|
One way would be to stop attempting to figure it out in two different applications and instead create two test applications and make them do nothing but two way communication first. And no UI components.
After that works then add a UI component and get that to work.
|
|
|
|
|
At work we image a lot of machines and prepare them for the users, There is a pre deployment Check-Off guide of things we have to configure before we send the machine off. I am trying my best to automate this, and am stuck at one part i cant seem to get using vbs, .bat, or c#. I am not a veteran coder what so ever, i usually just google what i need and start piecing together to fit what im looking for.
What i need help with is Editing/Enabling 2 local machine Policies i will paste what im trying to automate below:
1) Run gpedit.msc > Navigate to Computer Configuration > Administrative Templates > Windows Components > Windows Logon Options > Open "Disable or enable software Secure Attention Sequence" > Enable & Select "Services and Ease of Access Applications" in the drop down menu > Apply > Ok
2)Run gpedit.msc > Navigate to Computer Configuration > Administrative Templates > Printers > Point and Print Restrictions > Enable & In drop down menu for "When installing Drivers for a new connection" select "Do not show warning or elevation prompt" > In drop down menu for "When updating drivers for an existing connection" select "Do not show warning or elevation prompt" > Apply > Ok
These machines are all Windows 7 with latest .net framework installed. I will be doing a C# windows form application using Visual Studio 2010. I have tried making such changes in the registry but have had no luck. For testing purposes i have a simple form with a button. Trying to complete the changes above with the press of a button.
If anyone has any help or information they could point me to that would be awesome, If you could provide me snippets of code and any resources i may need to import to complete this task, that would be even more amazing.
Thank you in advance
|
|
|
|
|
|
|
Hi
I am using the Cisco Unified Communications Manager Express at the office.
I would like to know can I determine the incoming calls to show a notification on the user PC using C# application?
Anyone tried to do this?
Thanks
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
What does this have to do with C# and wouldn't you think that this would be better posted on Cisco's forums? You know, where the number of users of Cisco Unified Communications Manager would be a lot higher than it is here!
|
|
|
|
|
the one time I had to interact with a phone system, the system provided dll´s you could use to plugin into the system. It would pass information like incoming/outgoing...
|
|
|
|
|
How to install a windows application in a specified drive(like D:\, E:\ etc) silently using c# code
|
|
|
|
|
Why?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Because you don't want to announce the installation of malware .
Alberto Brandolini: The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.
|
|
|
|
|
That was my first thought as well...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
What do you mean by "silent"? You can create an installer that does not show or report anything (even when it fails), but that does not affect UAC. For that, your app must be "trusted" or from a trusted source.
Allowing untrusted things to install without any warning or notification is a security-issue. It's how virusses work
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I need this to install with a basic user interface using c#. I can be done easily for default drive (usually C:\- Windows drive) but I want to install it in a different drive other than windows. If anybody has the answer for it then please reply.
|
|
|
|