|
Thank you for the link, I knew it and used that samples but without success.
Have you tried that connection between servers yourself?
Чесноков
|
|
|
|
|
Try This:
"Data Source=.\SQLEXPRESS;AttachDbFilename=\\[A]IP\[C]SharingLabel\dbs\database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
EX:
"Data Source=.\SQLEXPRESS;AttachDbFilename=\\192.168.0.1\sanforjackass(C)\dbs\database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
|
|
|
|
|
That is a nice trick to try, but it should work with user\pass items in any case
Чесноков
|
|
|
|
|
In order to use the Username and Password options in the connection string, you have to remove the "Integrated Security" option.
|
|
|
|
|
Dear Friends,
I have installed my application with .NET 2003 and crystal report 10 but still I am not able to display the out put on crystal report. When I debug it gives no error when it tries to create object of crystal report
rptAssetCondition rpt=new rptAssetCondition
Windows gives me error message IIS worker process stopped working.
I am really very upset with Windows 2008 server even I have installed everything as my development environment still I am not able to trace the error .
Your quick help will be highly appreciated.
Thansk and best regards
Murtuza Patel
|
|
|
|
|
did you check whether the IIS working process has previledge on that folder which loads the Report.
Also check whether Crystal Report component is loaded correctly. .NET 2003 is very old now(at least for 2008 Server). I never tried to work with .NET 2003 in Windows Server 2008, but I think this would be a problem of website configuration.
|
|
|
|
|
Crystal 10 is not compatible with IIS 7. I found it the hard way though. If your application cannot be upgraded to use Crystal Reports for VS2005 or VS2008, then you'll have to do a lot of wokaround. Let me know if you need more information on how to get around this.
|
|
|
|
|
hi dudes,
i developed a windows application,i put a rectangle picture as a background pic for my form,in that pic out side the rectangle is collored by red.in my form i set that color as tranparency color,so it would show only that rectangle or any other shape as a form,it works well in my own computer,but whenever i try to use it in another computer which also .net framework is installed there,that color does not hide and the transparency does not work,it shows both the rectangle and the backgroung color,what should i do?
i'm using C# in visual studio.that application is written in .net framework 2.0, thank u all for ur help.
|
|
|
|
|
Hi
I need to use the FFMPEG dll in my C# project. I didn't find any source code for FFMPEG in C#.net. I found some code in C++ with .c and .h extention file. But I want a ffmpeg source code which is developped in Visual Studio. either in Using Visual C++ language or any other language. But I want the source code which is compatable with visual studio then I can Integrate the source code with my C#.net, that i could make the ffmpeg dll and able to use it in my C#.NET PROJECT.
How can i get this. please help me by givving some suggestions.
Balaji.V
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:19am.
|
|
|
|
|
Hi stancrm
Thank you very much for your reply, I got download the sharpFFMPEG and i add that project to myC#project, I am able to generate the sharpFFMPEG dlls. Now My requirement is I need to convert one video to another video format.
eg: video1.wmv to video1.flv
video2.mp4 to video2.flv
So, I will give input of one video format to SharpFFMPEG and i need to get the output of another video format. How can write code to get this by using sharpFFMPEG dll.
Is sharp FFMPEG have any methods , which converts a video to another video format.
Please help me. Thanks in advance.
Balaji.V
|
|
|
|
|
I have the same problem with you, but i want to convert flv to mp4 by c#, i hope, all you can help me to resolve it.
|
|
|
|
|
My company are using this library Solid FFmpeg C# .Net Wrapper . It's a quite good and powerful ffmpeg wrapper. Especially for beginners. You can try it and decide by yourselves.
|
|
|
|
|
Hi,
I have an interesting problem.
I have a tray utility program with various menu options that in turn bring up different dialog boxes. I want each dialog box to work as if they were modeless, but track them as if they were modal. I have solved this by making each box modal but have them on individual threads with a boolean to track if it is open or not.
Some code...
#region Configure MenuItem
private bool MyFormStarted = false;
private MyForm MyDlg;
private void MyDlgMenuItem_Click(object sender, EventArgs e)
{
if (MyFormStarted)
{
if (MyDlg.InvokeRequired)
{
MyDlg.BeginInvoke((ThreadStart)delegate()
{
});
}
else
{
}
}
else
{
MyFormStarted = true;
new Thread(new ThreadStart(delegate
{
MyDlg = new MyForm ();
MyDlg.ShowDialog();
MyDlg.Dispose();
MyFormStarted = false;
})).Start();
}
}
#endregion
I have a block of code similar to this for each dialog that the tray utility is to open. By doing it this way, I can allow the opening of multiple dialog boxes at the same time while ensuring that each dialog can only be opened once.
What the problem is though, I cannot work out how to put the selected dialog on top. I have rem'ed out the MyDlg.Show() because this does not seem to work. I have tried
MyDlg.BringToFront();
MyDlg.Focus();
As well, but while the form obtains the focus, I cannot get it to display on top. I think it might have something to do with the threads.
So I guess ultimately my question is this: Is there a way to bring one thread in front of the other as 'BringToFront' would do to to the form?
Obviously, I will have to use a private class variable to hold the thread instance, but then what should I do with it.
Regards,
David
|
|
|
|
|
|
Thanks Shameel,
That worked. I had to follow it immediately with a:
MyDlg.TopMost = false;
So it did not stay on top. But that was the answer I was looking for.
Thanks again,
David Bailey.
|
|
|
|
|
HI,
I have wriiten the code to set the DHCP options such as DNS IPaddresses, Router IPAddress etc.
using DhcpSetOptionValueV5 API in c#.
The API add the option in the DHCP server but doesn't add the value for it, But same works on windows 2003 server.
All the DHCP management are used using p/invoke.
Regards
"A winner is not one who never fails...but the one who never quits"
modified on Monday, November 9, 2009 3:17 AM
|
|
|
|
|
I'm working on a application which simulates a pdf reader. I have a issue with traversing the page. Following are the details.
there are two buttons called, "Previous View" and "Next View". These fulnctionality of these two buttons is I can navigate to the previously visited pages.
My requirement is as follows.
Lets say I visit page 1, followed by 10, followed by 15, followed by 12 and back to 10.
i.e, 1->10->15->12->10.
Suppose If I'm @ page 12. if I click on "Previous View", I should nagigate to page 15 and If I click "Next View" I should go to page 10.
My issue is, Suppose I'm @ the last visited page. that is page 10, after page 12. If I click I "Next View" it should not navigate, because it is the last visited page. But what happening is it is navigating to page 15. The reason for that is I'm checking only for the first occurenece of a element. which is @ 2nd position.
this happens only if there is multple occurenec of a element.
I need help in developing the logic.
any suggestion is appreciated.
|
|
|
|
|
Well, maintain your position / index in the array; don't start searching for the page "you know you are already on".
Based on your scenario, your "index" should be 4 (i.e. the last "10") and you know you can't move "next" because the "count" of the items in the array is not greater than index + 1 (using 0 based addressing).
Moving to a new page directly, you simply add that page number to the end of the array, and set the current index to that entry.
Moving "previous", decrement the index; until it reaches 0, at which point you know you're at the first page visited.
|
|
|
|
|
search CP articles about "history" or "undo/redo". There is at least one very good one I remember.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
int index = 0;
string[] pages = .....;
void NextView() {
if (index < pages.Count-1) {
index++;
View.CurrentPage = pages[index];
}
}
void PreviousView() {
if (index > 0) {
index--;
View.CurrentPage = pages[index];
}
}
|
|
|
|
|
Hi
I am trying to insert a DataGridViewComboBoxColumn, the column is getting inserted but without values (options) in the combobox.
The Code is as under
<br />
DataGridViewComboBoxColumn column = new DataGridViewComboBoxColumn();<br />
column.HeaderText = "SELECT";<br />
column.Name = "ItemSelect";<br />
column.CellTemplate = new DataGridViewComboBoxCell();<br />
column.Items.AddRange("One", "Two", "Three");<br />
column.DropDownWidth = 160;<br />
column.Width = 90;<br />
column.MaxDropDownItems = 3;<br />
column.FlatStyle = FlatStyle.Flat;<br />
myDataViewGrid.Columns.Insert(0, column);<br />
When I run the code, in datagridview all cells except 1st are populated properly, in first cell I see only empty combobox.
Also, after showing the value, which event should I use to get the selected value of combobox?
Please guide
Thanks in advance
|
|
|
|
|
Hi
I got the Ping Monitor
Alberto Venditti -
given sample code but when I am running the program ,the Host name and ,OFF,ON are not displaying on the Grid Control.
I created the PingLog and ,HostList Tables in the SQL server 2005.Whatever I addded in the Hostlist through the GUI it is updating in the database.but,The ON and Off status are unable to view on the Grid control.
I just coped whole code and created the Database,And my running host name I added in the List of GUI.
Can u pls. tell me what I have to do to see the List of ON and OFF host details.If I missed ...something.
Advance Thanks.
Pandu
|
|
|
|
|
medara wrote: If I missed ...something
Yes you are missing something. You would be way better off posting your question here[^] since he more likely to see it there than here. And posting a question about a VB article in the C# forum is almost certainly not going to get you an answer.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
My C# program is set to target the 2.0 version of the .NET Framework.
I used one of the overloads of WaitHandle.WaitAny that's only available in the 3.0 version of the framework, and it let me build the program and run it!
Is this supposed to occur?
The problem is that when I run the program on a machine that only has version 2.0 of the framework, the program crashes, of course.
But why did Visual Studio allow me to use an overload from the 3.0 version when it shouldn't have?
|
|
|
|