|
Well according to the documentation[^] 1311 is ERROR_NO_LOGON_SERVERS - There are currently no logon servers available to service the logon request. 1789 is ERROR_TRUSTED_RELATIONSHIP_FAILURE - The trust relationship between this workstation and the primary domain failed. Not sure how to fix it, but you may want to google ERROR_TRUSTED_RELATIONSHIP_FAILURE and see what you can come up with.
|
|
|
|
|
Hi,
I'm probably missing something really simple here, but i'm stuck.
Basically I have a listbox, which a user puts items into via a textbox and button, this works fine, the items go in.
Now, on exit the items save to a text file, this also works fine, ive checked all the items are contained in the text file. Now, when the user re-opens the application there is a button called load previous items, when i click this i have a streamreader reading the text document, also works fine, checked with a messagebox, and it saves it to the string
Now, I want the string to be saved into a array which is then put back into the textbox, the problem being, I dont know how to count the items in the string (each on a diffrent line) to put them into a array, and then after that I need a example of adding the array into my listbox.
Im guessing its something to do with the
listbox1.Addrange();
command.
Cheers,
Ben.
|
|
|
|
|
If the file content is indeed strings each on a new line, then the easy way is:
string[] lines = File.ReadAllLines(@"c:\Temp.txt");
ListBox1.Items.AddRange(lines);
Which means you don't need to know how many lines there are.
[edit]Where did my "[" and "]" characters go? Must remember to preview...[/edit]
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Legendary
Thanks Alot
Ben.
|
|
|
|
|
Hi
I am developing a windows application using c#.net
in my application i have two rich textbox controls
if the user enters some text in the rich text box, after the rich text box is completed
he should redirect to the second rich text box
that is when ever the text in the first rich text box is completed
scroll bar should not be visible instead he should be directed to second rich text box
i have to achieve this by with out considering the
number of lines and character count for a rich text box
i have to limit the content in the rich text box to the text which is displayed to the user only.
can any body suggest me how to achieve this ??
Thanks
Anil Veeraghattapu
|
|
|
|
|
Hi everyone.... There a lot of examples in the internet that discussed how to send & received SMS messages using GSM modem, messages that are initiated from PC and not from mobile phone... But i never find any program that will monitor outgoing SMS messages initiated from Mobile phone connected to pc....
There are some mobile phones especially china-made mobilephones that don't have an outgoing records stored either in SIM or in Phone memory. I really want to know every message that comes IN and OUT in the mobile phone which is connected in my PC....
Thanks in advance....
xxx
|
|
|
|
|
Hello,
This is probably a dumb question so I'm sure you'll be able to help.
On a typical form; you can set the width & height, but it sets the size of the whole form (including the windows buttons and borders). How to set the size of the drawable part of the form only.
eg: On this window, how to setup the blue part to be 640x480; not the whole thing?
Thank you!
|
|
|
|
|
Set the ClientSize property
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Well yeah; I knew this was a dumb question... After more than 3 yrs of .NET I feel ashamed. Thank you dude!
|
|
|
|
|
DaveyM69 wrote: This is probably a dumb question so I'm sure you'll be able to help.
You passed the test
|
|
|
|
|
Yay!
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi all
I created a simple system
But there is a problem in the system is that when I am calling sub-screen from the Home screen the screen behind the main screen .
Thaer
|
|
|
|
|
You'll need to set the parent of the new screen to your home-form;
SubScreenForm myForm = new SubScreenForm();
SubScreenForm.ShowDialog(this);
I are Troll
|
|
|
|
|
Thanks Mr Eddy Vluggen
Good Ans
Thaer
|
|
|
|
|
Hi,
Please if you can advise on following questions on integration with QuickBooks.
1. I need to connect to QuickBooks database. How can I connect and retrieve data from QuickBooks?
2. What type of connection do you use to connect to database?
3. Is there some tool that makes it easier?
Please answer on any questions of this, if you have programmed with QuickBooks.
Note: I am developing in C#
Thanks in advance
John T.
|
|
|
|
|
You need to do some research [^]for this type of question, you are not the first....
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
what connection webcam in c#
|
|
|
|
|
First of all the only guess I could make of this question is that you want to connect to Webcam using C# right?
But, you need to tell us what the problem is and how far you you have done.
Anyways, Google [^]might me helpfull to you.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i have a problem in comparing two dates
string x = textbox1.text
where textbox1.text is in the format of "dd MMMM yy"
i when i'm trying to parse that text to date error message appearse telling me that it's not valid
what i need is to compare this date to another date from another textbox
what should i do?
thanks in advance
|
|
|
|
|
Use
DateTime.ParseExact("datestring", "formatstring", new CultureInfo("en-US"));
I think this will do the trick.
|
|
|
|
|
- use one of the Parse methods in DateTime class to create a DateTime instance; I use TryParse quite a lot.
- compare two DateTimes, don't work with strings for this
|
|
|
|
|
thanks Guys it works
|
|
|
|
|
hi,
I will give an example to what i want.
I made a VB project named Project1, inside it i have Module1 and inside it a function named Fnc_xxx.
if i put this project into a solution together with C# project
how can i make a button in the C# form call the Fnc_xxx from the VB project.
thanks in advance.
|
|
|
|
|
In your C# project, add a reference to your VBProject (Right click "References", "Add Reference..." then select the "Projects" tab and pick "VBProj" or whatever your VB project is called).
Then:
VBProj.Form1 f1 = new VBProj.Form1();
string s = f1.FNC_xxx();
The "Using" statement will work here, too.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
It is workin great, thank you.
can you tell me few more things:
1) how can I make it press a button ? (it seems i can only call functions).
2) how can I make it call a function from a Module in the vb project.
3) whats the full syntax for the "Using" statment ?
forgive my ignorance.
thanks in advance .
|
|
|
|