|
hi
when i open my access db exclusively and set password and when i add oledbdataadapter to my form and in configuration window set neccessary properties and enter my pass and click test connection button,the follow message shown for me :
---------------------------
Microsoft Data Link Error
---------------------------
Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
---------------------------
OK
---------------------------
user : Admin
Pass : 123
How to solve my problem and add my db in c# ?
|
|
|
|
|
When you have the database open in Access, you can't also open it from C#. Close Access.
---
b { font-weight: normal; }
|
|
|
|
|
when access was close that message shown again.
|
|
|
|
|
hdv212 wrote:
---------------------------
Microsoft Data Link Error
---------------------------
Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
---------------------------
OK
---------------------------
user : Admin
Pass : 123
[disclaimer]
I’m still not up to speed with .NET, but I recognize this type of error for ADO.
[/disclaimer]
I assume your supplying a username along with the password, right? If you just want the database password protected don’t worry about setting a password on the user, just set the password on the database and don’t worry about the user name in the connection.
|
|
|
|
|
Can somebody tell me the deployment steps for the window application in C#
Thank You
Pankaj Garg
|
|
|
|
|
You simply need to "copy and paste" the executable and any support files onto the target machine, which has to have the .NET Framework installed.
I'm not sure about how to do this using the VS Installer Projects but using something like NSIS gives you more flexability.
Alot depends on how complex your application is and what your requirements are, if you need further help then please be more specific.
Ed
|
|
|
|
|
how can i find bluetooth devices mac addresses in my area then store them in a array?
|
|
|
|
|
I'm using Open GL with C# and I want to import objects from 3D Max. How Can I do that??
|
|
|
|
|
I already answered your question here[^]. Please don't post the same question multiple times in the forum, once is sufficient.
|
|
|
|
|
|
hi all
anyone know how to do the no titlebar and resizable form in C#
thanks
|
|
|
|
|
Right-click the form, choose properties and set ControlBox=False and Text="" and set MinimumSize the same as MaximumSize.
jhaga
It would be glorious to see mankind at leisure for once. It is nothing but work, work, work. I cannot easily buy a blank-book to write thoughts in; they are commonly ruled for dollars and cents. A[man], seeing me making a minute in the fields, took it for granted that I was calculating my wages. — business! - I think that there is nothing, not even crime, more opposed to poetry, to philosophy, ay, to life itself, than this incessant business.
Henry David Thoreau
-- modified at 19:41 Saturday 15th April, 2006
|
|
|
|
|
in my site i have form to upload image
this image may be very big or very small
but
after user upload this image i want make some imagte prossessing as
(
1- i want to make two image from the original image
2- the first image have (50*50) cordinate
3- the secode image have (200*200) as max hight and max wiedth
4-i want for each image to take new name
)
u can see example in this site
http://www.blocket.se/vi/7874861.htm?ca=10_s
u can see tow image one small and one big
how can do as this in my site
Palestine
|
|
|
|
|
You can use the classes in System.Drawing and System.Drawing.Drawing2D namespaces to manipulate images. You can use System.IO.Path.GetTempFile method to create and return a unique file on disk.
If you need more specific answers, please post a more specific question or problem.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: I luv teh choco
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
try something like this
Stream imgStream = UploadFile.PostedFile.InputStream;
int imgLen = UploadFile.PostedFile.ContentLength;
string imgContentType = UploadFile.PostedFile.ContentType;
string imgName = txtImgName.Value;
byte[] imgBinaryData = new byte[imgLen];
int n = imgStream.Read(imgBinaryData,0,imgLen);
//thumb
MemoryStream stream = new MemoryStream();
System.Drawing.Image thumb = System.Drawing.Image.FromStream(imgStream);
System.Drawing.Image thumbnail = thumb.GetThumbnailImage(50, 50, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);
thumbnail.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] thumbBinaryData = new byte[stream.Length];
stream.Position = 0;
int m = stream.Read(thumbBinaryData, 0, (int)stream.Length);
//
SaveToDB(imgName, imgBinaryData, imgContentType, thumbBinaryData);
Good luck
-- modified at 8:12 Sunday 16th April, 2006
|
|
|
|
|
I would like to import the C function:
int compress2(Bytef * dest, uLongf * destLen, const Bytef * source, uLong sourceLen, int level);
in my C# application.
But I have no idea what "Bytef" and "ulongf" types are. ( C is unknown for me. )
I though byte[] and ulong, but the compiler will not accept it.
Keep breathing, foks!
|
|
|
|
|
I don't believe those are built-in types. In C and C++, you can alias types using the #define keyword.
#define MyFoo int
...
MyFoo f = 5;
Most likely Bytef is just an aliased type. You'll need to look into the dll source or documentation to find the definition of Bytef.
|
|
|
|
|
Hi all,
i am looking a way to do this:
when the explorer runs and the current page have a link inside it, i want to add a new item in the menu that opens when you right-click that link.
so when i will right-click a link on the explorer, i will have a new option there that will cause my function to run.
also i need to be able to get the current URL and the current document.
any ideas?
Thanks alot,
Ran.Z
R.Z
|
|
|
|
|
You might want to take a look at this[^] article from MSDN. You will need to use 0x20 as the value of your Contexts registry key so that it only works on links.
Once you've added the necessary registry keys, you're going to need to write a script that loads your C# application and passes it the information about the link clicked (take a look at number 2 of the "Implementation Steps" section of the link above for some links about writing this script).
Hope this helps
Cheers,
Will H
|
|
|
|
|
Hi
sorry for the late reply but it took sometime for me to test it.
i managed to create and run a script that knows the URL new shortcut (its great!)
but since i'm so bad in javascript , i dont know how to execute my EXE (c#) with that parameter(url shortcut).
how can i do it?
Thanks alot,
Ran Z.
R.Z
|
|
|
|
|
I'm sorry but I have no experience with JavaScript at all. It seems to be quite difficult to launch an external program from a script though, for security reasons.
I did, however, find this[^] discussion. There is one part that may interest you:
IF you have access to each client to add a regsitry key you can do what you want seamlessly ...
To execute c:\my prog\prog.exe %a %b %c
Add to a new key to HKEY_CLASSES_ROOT called 'myprog'
Add an empty string to this key called 'URL Protocol'
Add the sub-keys: \shell\open\command
Set the value of the default string inside the command key to: "c:\my prog\prog.exe %1"
On your web page have your link as:
<A HREF="myprog: %a %b %c">run myprog</A> (%a, %b and %c are arguments i think).
I know you are doing this from a script, but you can probably do some sort of redirect to call the link. I have no idea, but
location.href= "myprog: %a %b %c"; might work.
Maybe you could try asking about how to run a program on the client computer when you have access to the registry in a JavaScript specific forum.
Sorry I can't be of more help.
Cheers,
Will H
|
|
|
|
|
nice idea man
i have done something else.
since the script is local on my computer, it do not alert any security issues when i execute a program using Shell.run("blabla.exe")
so i just add a parameter to the execution with the current link.
its working. now i draged it into c# issue and it will be easier for me.
thanks alot,
Ran Z.
R.Z
|
|
|
|
|
ranzask wrote:
since the script is local on my computer, it do not alert any security issues when i execute a program using Shell.run("blabla.exe")
That seems like a much better way than my idea.
I'm glad you've got it sorted
Cheers,
Will H
|
|
|
|
|
Hi guys...
when i use "RowFilter" property of a DataTable that's created from a simple select statement(without join i mean) i can filter my DataGridView but when i use join in my select statement it doen not respond.
Could you please tell what to do , its so urgent.....
THANK YOU
|
|
|
|
|
can anyone tell me is there anyway by which I can convert a String to a DateTime? I have a DateTime object and I store it into a String object, is there any possible way to convert that String back to its DateTime?
|
|
|
|